Class ServiceAdapter

java.lang.Object
com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
All Implemented Interfaces:
Service
Direct Known Subclasses:
LinuxService, WindowsService

public abstract class ServiceAdapter extends Object implements Service
Author:
bnevins
  • Method Details

    • getServiceProperties

      public final String getServiceProperties()
      Description copied from interface: Service
      Returns the additional properties of the Service.
      Specified by:
      getServiceProperties in interface Service
      Returns:
      String representing addtional properties of the service. May return default properties as well.
    • setServiceProperties

      public final void setServiceProperties(String cds)
      Description copied from interface: Service
      Sets the additional service properties that are specific to it.
      Specified by:
      setServiceProperties in interface Service
    • tokensAndValues

      public final Map<String,String> tokensAndValues()
      Description copied from interface: Service
      Returns the tokens and values of the service as a map. This method converts a service into corresponding tokens and their values.
      Specified by:
      tokensAndValues in interface Service
      Returns:
      tokens and values as a Mapinvalid input: '<'String, String>.
    • deleteService

      public final void deleteService()
      Specified by:
      deleteService in interface Service
    • getInfo

      public PlatformServicesInfo getInfo()
      Specified by:
      getInfo in interface Service
    • isDomain

      public final boolean isDomain()
      Specified by:
      isDomain in interface Service
    • isInstance

      public final boolean isInstance()
      Specified by:
      isInstance in interface Service
    • getServerDirs

      public final com.sun.enterprise.util.io.ServerDirs getServerDirs()
      Description copied from interface: Service
      get the dirs with this thread-safe immutable guaranteed object. It saves a LOT of error checking... You should set the variable in the constructor. You are not allowed to change it later
      Specified by:
      getServerDirs in interface Service
    • createService

      public final void createService()
      Description copied from interface: Service
      Creates an arbitrary service, specified by certain parameters. The implementations should dictate the mappings in the parameters received. The creation of service is either successful or not. In other words, the implementations must retain the original state of the operating platform if the service creation is not successful completely.
      Specified by:
      createService in interface Service
    • getLocationArgsRestart

      public String getLocationArgsRestart()
      Specified by:
      getLocationArgsRestart in interface Service