Package com.jme3.network.service
Interface HostedService
- All Superinterfaces:
ConnectionListener,Service<HostedServiceManager>
- All Known Implementing Classes:
AbstractHostedConnectionService,AbstractHostedService,RmiHostedService,RpcHostedService,ServerSerializerRegistrationsService
Interface implemented by Server-side services that augment
a network Server's functionality.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(HostedServiceManager serviceManager) Called when the service is first attached to the service manager.voidstart()Called when the service manager is started or if the service is added to an already started service manager.voidstop()Called when the service is shutting down.voidterminate(HostedServiceManager serviceManager) The service manager is fully shutting down.Methods inherited from interface com.jme3.network.ConnectionListener
connectionAdded, connectionRemoved
-
Method Details
-
initialize
Called when the service is first attached to the service manager.- Specified by:
initializein interfaceService<HostedServiceManager>
-
start
void start()Called when the service manager is started or if the service is added to an already started service manager.- Specified by:
startin interfaceService<HostedServiceManager>
-
stop
void stop()Called when the service is shutting down. All services are stopped and any service manager resources are closed before the services are terminated.- Specified by:
stopin interfaceService<HostedServiceManager>
-
terminate
The service manager is fully shutting down. All services have been stopped and related connections closed.- Specified by:
terminatein interfaceService<HostedServiceManager>
-