Class Service

java.lang.Object
org.serviceconnector.service.Service
Direct Known Subclasses:
CascadedFileService, CascadedPublishService, CascadedSessionService, FileService, StatefulService

public abstract class Service extends Object
The Class Service.
Author:
JTraber
  • Constructor Details

    • Service

      public Service(String name, ServiceType type)
      Instantiates a new service.
      Parameters:
      name - the name
      type - the type
  • Method Details

    • getName

      public String getName()
      Gets the service name.
      Returns:
      the service name
    • getType

      public ServiceType getType()
      Gets the type.
      Returns:
      the type
    • isEnabled

      public boolean isEnabled()
      Gets the current service state.
      Returns:
      the state
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets the enabled.
      Parameters:
      enabled - the new enabled
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • dump

      public abstract void dump(XMLDumpWriter writer) throws Exception
      Dump the service into the xml writer.
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception