use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class DefaultServerService method startService.
public void startService() throws Exception {
if (queueHandlerContainerServiceName == null) {
throw new IllegalArgumentException("QueueHandlerContainerServiceName is null.");
} else {
queueHandlerContainer = (QueueHandlerContainer) ServiceManagerFactory.getServiceObject(queueHandlerContainerServiceName);
}
if (sequenceServiceName != null) {
sequence = (Sequence) ServiceManagerFactory.getServiceObject(sequenceServiceName);
}
Request request = (Request) requestClass.newInstance();
Response response = (Response) responseClass.newInstance();
dispatchDaemon = new Daemon(new DispatchDaemonRunnable());
dispatchDaemon.setName("Nimbus TCP Server dispatch daemon " + getServiceNameObject());
connect();
dispatchDaemon.start();
}
use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class AbstractKeepAliveCheckerService method postStartService.
public void postStartService() throws Exception {
if (checkInterval > 0) {
try {
isAlive = checkAlive();
} catch (Exception e) {
isAlive = false;
}
keepAliveChecker = new Daemon(new KeepAliveCheckerRunnable());
keepAliveChecker.setName("Nimbus KeepAliveChecker " + getServiceNameObject());
keepAliveChecker.start();
}
super.postStartService();
}
use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class DefaultPingPongHandlerService method createService.
@Override
public void createService() throws Exception {
sessionSet = new HashSet();
daemon = new Daemon(this);
daemon.setName("Nimbus WebSocket PingSendAndPongCheckDaemon " + getServiceNameObject());
}
Aggregations