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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ServiceAdapter.OSServiceAdapterException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.It saves a LOT of error checking...protected String
getServiceUser()
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 interfaceService
-
getInfo
public PlatformServicesInfo getInfo()
-
isInstance
public final boolean isInstance()
- Specified by:
isInstance
in interfaceService
-
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 interfaceService
- Returns:
- the dirs
-
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 interfaceService
-
getLocationArgsRestart
public String getLocationArgsRestart()
- Specified by:
getLocationArgsRestart
in interfaceService
-
getServiceUser
protected String getServiceUser()
-
-