Class ServiceAdapter
java.lang.Object
com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
- All Implemented Interfaces:
Service
- Direct Known Subclasses:
LinuxService,WindowsService
- Author:
- bnevins
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidCreates an arbitrary service, specified by certain parameters.final voidgetInfo()final com.sun.enterprise.util.io.ServerDirsget the dirs with this thread-safe immutable guaranteed object.final StringReturns the additional properties of the Service.final booleanisDomain()final booleanfinal voidSets the additional service properties that are specific to it.Returns the tokens and values of the service as a map.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.enterprise.admin.servermgmt.services.Service
createServiceInternal, deleteServiceInternal, getLocationArgsStart, getLocationArgsStop, getSuccessMessage, initializeInternal, writeReadmeFile
-
Method Details
-
getServiceProperties
Description copied from interface:ServiceReturns the additional properties of the Service.- Specified by:
getServicePropertiesin interfaceService- Returns:
- String representing addtional properties of the service. May return default properties as well.
-
setServiceProperties
Description copied from interface:ServiceSets the additional service properties that are specific to it.- Specified by:
setServicePropertiesin interfaceService
-
tokensAndValues
Description copied from interface:ServiceReturns the tokens and values of the service as a map. This method converts a service into corresponding tokens and their values.- Specified by:
tokensAndValuesin interfaceService- Returns:
- tokens and values as a Mapinvalid input: '<'String, String>.
-
deleteService
public final void deleteService()- Specified by:
deleteServicein interfaceService
-
getInfo
-
isDomain
public final boolean isDomain() -
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
- Specified by:
getLocationArgsRestartin interfaceService
-