Interface Service

All Known Subinterfaces:
Controller, InternalProcessorService, NettyWebSocketService, NetworkService, ScheduleService, ZeroAcceptor, ZeroEngine, ZeroReader, ZeroSocketService, ZeroWriter
All Known Implementing Classes:
AbstractController, AbstractZeroEngine, InternalProcessorServiceImpl, JettyHttpService, NettyWebSocketServiceImpl, NetworkServiceImpl, ScheduleServiceImpl, ZeroAcceptorImpl, ZeroReaderImpl, ZeroSocketServiceImpl, ZeroWriterImpl

public interface Service
All supported APIs that is necessary to form a service.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the service's name.
    void
    Initializes a new service.
    boolean
    Determines whether the service is activated.
    void
    Set the service's name.
    void
    Shutdown the service.
    void
    Start the service.
  • Method Details

    • initialize

      void initialize() throws ServiceRuntimeException
      Initializes a new service.
      Throws:
      ServiceRuntimeException - when something went wrong
    • start

      void start() throws ServiceRuntimeException
      Start the service.
      Throws:
      ServiceRuntimeException - when something went wrong
    • shutdown

      void shutdown()
      Shutdown the service.
    • isActivated

      boolean isActivated()
      Determines whether the service is activated.
      Returns:
      true if the service is activated, false otherwise
    • getName

      String getName()
      Retrieves the service's name.
      Returns:
      the service's name
    • setName

      void setName(String name)
      Set the service's name.
      Parameters:
      name - the service's name