public class HostedServiceManager extends ServiceManager<HostedServiceManager>
| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
HostedServiceManager.ConnectionObserver  | 
| Constructor and Description | 
|---|
HostedServiceManager(Server server)
Creates a HostedServiceManager for the specified network Server. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addConnection(HostedConnection hc)
Called internally when a new connection has been added so that the
  services can be notified. 
 | 
void | 
addService(HostedService s)
Adds the specified HostedService and initializes it. 
 | 
void | 
addServices(HostedService... services)
Adds all of the specified HostedServices and initializes them. 
 | 
protected HostedServiceManager | 
getParent()
Returns 'this' and is what is passed to HostedService.initialize()
  and HostedService.termnate(); 
 | 
Server | 
getServer()
Returns the network Server associated with this HostedServiceManager. 
 | 
protected void | 
removeConnection(HostedConnection hc)
Called internally when a connection has been removed so that the
  services can be notified. 
 | 
void | 
removeService(HostedService s)
Removes the specified HostedService from this service manager, stopping
  and terminating it as required. 
 | 
addService, getService, getServices, isStarted, removeService, start, stop, terminate, toStringpublic HostedServiceManager(Server server)
public Server getServer()
protected final HostedServiceManager getParent()
getParent in class ServiceManager<HostedServiceManager>public void addService(HostedService s)
public void addServices(HostedService... services)
public void removeService(HostedService s)
protected void addConnection(HostedConnection hc)
protected void removeConnection(HostedConnection hc)