Interface HostedService

All Superinterfaces:
ConnectionListener, Service<HostedServiceManager>
All Known Implementing Classes:
AbstractHostedConnectionService, AbstractHostedService, RmiHostedService, RpcHostedService, ServerSerializerRegistrationsService

public interface HostedService extends Service<HostedServiceManager>, ConnectionListener
Interface implemented by Server-side services that augment a network Server's functionality.
Author:
Paul Speed
  • Method Details

    • initialize

      void initialize(HostedServiceManager serviceManager)
      Called when the service is first attached to the service manager.
      Specified by:
      initialize in interface Service<HostedServiceManager>
      Parameters:
      serviceManager - the manager that is initializing this service
    • 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 interface Service<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 interface Service<HostedServiceManager>
    • terminate

      void terminate(HostedServiceManager serviceManager)
      The service manager is fully shutting down. All services have been stopped and related connections closed.
      Specified by:
      terminate in interface Service<HostedServiceManager>
      Parameters:
      serviceManager - the manager that is terminating this service