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 TypeMethodDescriptionvoid
initialize
(HostedServiceManager serviceManager) Called when the service is first attached to the service manager.void
start()
Called when the service manager is started or if the service is added to an already started service manager.void
stop()
Called when the service is shutting down.void
terminate
(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:
initialize
in 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:
start
in 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:
stop
in interfaceService<HostedServiceManager>
-
terminate
The service manager is fully shutting down. All services have been stopped and related connections closed.- Specified by:
terminate
in interfaceService<HostedServiceManager>
-