public final class SMFService extends ServiceAdapter
isConfigValid()
,
SMFServiceHandler
ServiceAdapter.OSServiceAdapterException
Modifier and Type | Field and Description |
---|---|
static String |
AS_ADMIN_USER_DEF_VAL |
static String |
BASIC_NETADDR_PRIV_VAL |
static String |
MANIFEST_HOME |
static String |
NETADDR_PRIV_VAL |
static String |
NO_START_INSTANCES_PROPERTY |
static String |
PRIVILEGES_DEFAULT_VAL |
static String |
SP_DELIMITER |
static String |
START_INSTANCES_DEFAULT_VAL |
static String |
START_INSTANCES_TN |
static String |
SVCADM |
static String |
SVCCFG |
static String |
TIMEOUT_SECONDS_DV |
Modifier and Type | Method and Description |
---|---|
void |
createServiceInternal()
Creates the service on the given platform.
|
void |
deleteServiceInternal() |
String |
getLocationArgsStart() |
String |
getLocationArgsStop() |
String |
getManifestFilePath()
Returns the absolute location of the manifest file as SMF understands it.
|
String |
getManifestFileTemplatePath()
Returns the absolute location of the template for the given service.
|
String |
getServiceProperties()
Returns the additional properties of the Service.
|
String |
getSuccessMessage()
For safety -- this is similar to the subversion dry-run command.
|
int |
getTimeoutSeconds()
Returns timeout in seconds before the master boot restarter should
give up starting this service.
|
void |
initializeInternal() |
boolean |
isConfigValid()
Determines if the configuration of the method is valid.
|
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.
|
String |
toString()
Returns a String representation of the SMFService.
|
void |
writeReadmeFile(String msg) |
createService, deleteService, getInfo, getLocationArgsRestart, getServerDirs, isDomain, isInstance
public static final String TIMEOUT_SECONDS_DV
public static final String AS_ADMIN_USER_DEF_VAL
public static final String SP_DELIMITER
public static final String PRIVILEGES_DEFAULT_VAL
public static final String NETADDR_PRIV_VAL
public static final String BASIC_NETADDR_PRIV_VAL
public static final String START_INSTANCES_TN
public static final String START_INSTANCES_DEFAULT_VAL
public static final String NO_START_INSTANCES_PROPERTY
public static final String SVCCFG
public static final String SVCADM
public static final String MANIFEST_HOME
public void createServiceInternal()
public void deleteServiceInternal()
public int getTimeoutSeconds()
public void setTimeoutSeconds(int number)
number
- a non-negative integer representing timeout. A value of zero implies infinite timeout.public String getServiceProperties()
public void setServiceProperties(String cds)
must
- be a colon separated String, if not null. No effect, if null is passed.public boolean isConfigValid()
RuntimeException
- if the configuration is not validpublic Map<String,String> tokensAndValues()
public String getManifestFilePath()
public String getManifestFileTemplatePath()
public String toString()
public String getSuccessMessage()
public void initializeInternal()
public void writeReadmeFile(String msg)
public final String getLocationArgsStart()
public final String getLocationArgsStop()
Copyright © 2018. All rights reserved.