public class ClientServiceManager extends ServiceManager<ClientServiceManager>
Constructor and Description |
---|
ClientServiceManager(Client client)
Creates a new ClientServiceManager for the specified network Client.
|
Modifier and Type | Method and Description |
---|---|
void |
addService(ClientService s)
Adds the specified ClientService and initializes it.
|
void |
addServices(ClientService... services)
Adds all of the specified ClientServices and initializes them.
|
Client |
getClient()
Returns the network Client associated with this ClientServiceManager.
|
protected ClientServiceManager |
getParent()
Returns 'this' and is what is passed to ClientService.initialize()
and ClientService.terminate();
|
void |
removeService(ClientService s)
Removes the specified ClientService from this service manager, stopping
and terminating it as required.
|
addService, getService, getServices, isStarted, removeService, start, stop, terminate, toString
public ClientServiceManager(Client client)
public Client getClient()
protected final ClientServiceManager getParent()
getParent
in class ServiceManager<ClientServiceManager>
public void addService(ClientService s)
public void addServices(ClientService... services)
public void removeService(ClientService s)