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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, start, stop, terminateprotected Server getServer()
public void connectionAdded(Server server, HostedConnection hc)
connectionAdded in interface ConnectionListenerpublic void connectionRemoved(Server server, HostedConnection hc)
connectionRemoved in interface ConnectionListener