public interface Service
isConfigValid(),
ServiceHandler| Modifier and Type | Method and Description |
|---|---|
void |
createService()
Creates an arbitrary service, specified by certain parameters.
|
void |
createServiceInternal() |
void |
deleteService() |
void |
deleteServiceInternal() |
PlatformServicesInfo |
getInfo() |
String |
getLocationArgsRestart() |
String |
getLocationArgsStart() |
String |
getLocationArgsStop() |
String |
getManifestFilePath()
Returns the absolute location of the manifest file as service understands it.
|
String |
getManifestFileTemplatePath()
Returns the absolute location of the template for the given service.
|
com.sun.enterprise.util.io.ServerDirs |
getServerDirs()
get the dirs with this thread-safe immutable guaranteed object.
|
String |
getServiceProperties()
Returns the additional properties of the Service.
|
String |
getSuccessMessage() |
int |
getTimeoutSeconds() |
void |
initializeInternal() |
boolean |
isConfigValid()
Determines if the configuration of the method is valid.
|
boolean |
isDomain() |
boolean |
isInstance() |
void |
setServiceProperties(String cds)
Sets the additional service properties that are specific to it.
|
void |
setTimeoutSeconds(int number)
Sets timeout in seconds before the master boot restarter should
give up starting this service.
|
Map<String,String> |
tokensAndValues()
Returns the tokens and values of the service as a map.
|
void |
writeReadmeFile(String msg) |
com.sun.enterprise.util.io.ServerDirs getServerDirs()
dirs - int getTimeoutSeconds()
void setTimeoutSeconds(int number)
number - a non-negative integer representing timeout. A value of zero implies infinite timeout.String getServiceProperties()
void setServiceProperties(String cds)
must - be a colon separated String, if not null. No effect, if null is passed.boolean isConfigValid()
RuntimeException - if the configuration is not validMap<String,String> tokensAndValues()
String getManifestFilePath()
String getManifestFileTemplatePath()
void createService()
params - a Map between Strings that represents the name value pairs required to create the serviceRuntimeException - if there is any error is creation of serviceString getSuccessMessage()
void writeReadmeFile(String msg)
String getLocationArgsStart()
String getLocationArgsRestart()
String getLocationArgsStop()
boolean isDomain()
boolean isInstance()
PlatformServicesInfo getInfo()
void initializeInternal()
void createServiceInternal()
void deleteService()
void deleteServiceInternal()
Copyright © 2015. All rights reserved.