public abstract class AbstractHostedService extends AbstractService<HostedServiceManager> implements HostedService
Modifier | Constructor and Description |
---|---|
protected |
AbstractHostedService() |
Modifier and Type | Method and Description |
---|---|
void |
connectionAdded(Server server,
HostedConnection hc)
Default implementation does nothing.
|
void |
connectionRemoved(Server server,
HostedConnection hc)
Default implementation does nothing.
|
protected Server |
getServer()
Returns the server for this hosted service or null if
the service is not yet attached.
|
getService, getServiceManager, initialize, onInitialize, start, stop, terminate, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, start, stop, terminate
protected Server getServer()
public void connectionAdded(Server server, HostedConnection hc)
connectionAdded
in interface ConnectionListener
public void connectionRemoved(Server server, HostedConnection hc)
connectionRemoved
in interface ConnectionListener