Class ServiceAdapter
- java.lang.Object
-
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateService()Creates an arbitrary service, specified by certain parameters.voiddeleteService()PlatformServicesInfogetInfo()StringgetLocationArgsRestart()com.sun.enterprise.util.io.ServerDirsgetServerDirs()get the dirs with this thread-safe immutable guaranteed object.booleanisDomain()booleanisInstance()-
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:
deleteServicein interfaceService
-
getInfo
public PlatformServicesInfo getInfo()
-
isInstance
public final boolean isInstance()
- Specified by:
isInstancein interfaceService
-
getServerDirs
public final com.sun.enterprise.util.io.ServerDirs getServerDirs()
Description copied from interface:Serviceget 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:
getServerDirsin interfaceService
-
createService
public final void createService()
Description copied from interface:ServiceCreates 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:
createServicein interfaceService
-
getLocationArgsRestart
public String getLocationArgsRestart()
- Specified by:
getLocationArgsRestartin interfaceService
-
-