Interface ServiceManager

All Superinterfaces:
Object

public interface ServiceManager extends Object
Administers the services of an IceBox server.
  • Method Details

    • startService

      void startService(String service, Current current) throws AlreadyStartedException, NoSuchServiceException
      Starts a service.
      Parameters:
      service - The service name.
      current - The Current object of the incoming request.
      Throws:
      AlreadyStartedException - Thrown when the service is already running.
      NoSuchServiceException - Thrown when IceBox does not know a service named service.
    • stopService

      void stopService(String service, Current current) throws AlreadyStoppedException, NoSuchServiceException
      Stops a service.
      Parameters:
      service - The service name.
      current - The Current object of the incoming request.
      Throws:
      AlreadyStoppedException - Thrown when the service is already stopped.
      NoSuchServiceException - Thrown when IceBox does not know a service named service.
    • addObserver

      void addObserver(ServiceObserverPrx observer, Current current)
      Registers a new observer with this service manager.
      Parameters:
      observer - The new observer.
      current - The Current object of the incoming request.
    • shutdown

      void shutdown(Current current)
      Shuts down all services.
      Parameters:
      current - The Current object of the incoming request.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceBox::ServiceManager"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.