com.sun.enterprise.admin.servermgmt.services
Class ServiceAdapter

java.lang.Object
  extended by com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
All Implemented Interfaces:
Service
Direct Known Subclasses:
NonSMFServiceAdapter, SMFService

public abstract class ServiceAdapter
extends Object
implements Service

Author:
bnevins

Method Summary
 void createService()
          Creates an arbitrary service, specified by certain parameters.
 void deleteService()
           
 PlatformServicesInfo getInfo()
           
 String getLocationArgsRestart()
           
 ServerDirs getServerDirs()
          get the dirs with this thread-safe immutable guaranteed object.
 boolean isDomain()
           
 boolean isInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.enterprise.admin.servermgmt.services.Service
createServiceInternal, deleteServiceInternal, getLocationArgsStart, getLocationArgsStop, getManifestFilePath, getManifestFileTemplatePath, getServiceProperties, getSuccessMessage, getTimeoutSeconds, initializeInternal, isConfigValid, setServiceProperties, setTimeoutSeconds, tokensAndValues, writeReadmeFile
 

Method Detail

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 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


Copyright © 2012 GlassFish Community. All Rights Reserved.