poolSize = 1;
pollInterval = 1000;
}
protected void initService () throws Exception {
QFactory factory = getServer().getFactory();
dirPoll = createDirPoll();
dirPoll.setPath (getPath ());
dirPoll.setThreadPool (new ThreadPool (1, poolSize));
dirPoll.setPollInterval (pollInterval);
if (priorities != null)
dirPoll.setPriorities (priorities);
dirPoll.setLogger (getLog().getLogger(), getLog().getRealm ());
Configuration cfg = factory.getConfiguration (getPersist());
dirPoll.setConfiguration (cfg);
dirPoll.createDirs ();
Object dpp = factory.newInstance (getProcessor());
if (dpp instanceof LogSource) {
((LogSource) dpp).setLogger (
getLog().getLogger(), getLog().getRealm ()
);
}