use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class CPUResourceUsageService method startService.
public void startService() throws Exception {
if (operationSystem == null && operationSystemServiceName == null) {
throw new IllegalArgumentException("OperationSystem is null.");
}
if (operationSystemServiceName != null) {
operationSystem = (OperationSystem) ServiceManagerFactory.getServiceObject(operationSystemServiceName);
}
cpuTimesChecker = new Daemon(this);
cpuTimesChecker.setDaemon(true);
cpuTimesChecker.setName("Nimbus CPUResourceUsage Checker " + getServiceNameObject());
cpuTimesChecker.start();
}
use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class ServerConnectionImpl method initClientAcceptor.
private void initClientAcceptor(SocketAddress localAddress) {
clientAcceptor = new Daemon(new ClientAcceptor());
clientAcceptor.setName("Nimbus Publish(UDP) ServerConnection ClientAcceptor " + localAddress);
clientAcceptor.setDaemon(true);
clientAcceptor.start();
}
use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class ServerConnectionImpl method initClientAcceptor.
private void initClientAcceptor(SocketAddress localAddress) {
clientAcceptor = new Daemon(new ClientAcceptor());
clientAcceptor.setName("Nimbus Publish(TCP) ServerConnection ClientAcceptor " + localAddress);
clientAcceptor.setDaemon(true);
clientAcceptor.start();
}
use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class ServerConnectionImpl method initSendBufferChecker.
private void initSendBufferChecker(SocketAddress localAddress) {
if (bufferTime > 0 || bufferSize > 0) {
sendBufferChecker = new Daemon(new SendBufferChecker());
sendBufferChecker.setName("Nimbus Publish(TCP) ServerConnection SendBufferChecker " + localAddress);
sendBufferChecker.setDaemon(true);
sendBufferChecker.start();
}
}
use of jp.ossc.nimbus.daemon.Daemon in project nimbus by nimbus-org.
the class ThinOutClientConnectionImpl method setMessageListener.
public void setMessageListener(MessageListener listener) {
if (thinOutTimeoutChecker != null) {
thinOutTimeoutChecker = new Daemon(new ThinOutTimeoutChecker());
thinOutTimeoutChecker.setName("Nimbus Publish ThinOutClientConnection ThinOutTimeoutChecker " + clientConnection);
thinOutTimeoutChecker.setDaemon(true);
thinOutTimeoutChecker.start();
}
messageListener.setMessageListener(listener);
if (clientConnection != null) {
clientConnection.setMessageListener(messageListener);
}
}
Aggregations