|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.servermgmt.services.ServiceAdapter
com.sun.enterprise.admin.servermgmt.services.SMFService
public final class SMFService
Represents the SMF Service. Holds the tokens and their values that are consumed by the SMF templates. The recommended way to use this class (or its instances) is to initialize it with default constructor and then apply various mutators to configure the service. Finally, callers should make sure that the configuration is valid, before attempting to create the service in the Solaris platform.
isConfigValid(),
SMFServiceHandler| Field Summary | |
|---|---|
static java.lang.String |
AS_ADMIN_USER_DEF_VAL
|
static java.lang.String |
BASIC_NETADDR_PRIV_VAL
|
static java.lang.String |
MANIFEST_HOME
|
static java.lang.String |
NETADDR_PRIV_VAL
|
static java.lang.String |
NO_START_INSTANCES_PROPERTY
|
static java.lang.String |
PRIVILEGES_DEFAULT_VAL
|
static java.lang.String |
SP_DELIMITER
|
static java.lang.String |
START_INSTANCES_DEFAULT_VAL
|
static java.lang.String |
START_INSTANCES_TN
|
static java.lang.String |
SVCADM
|
static java.lang.String |
SVCCFG
|
static java.lang.String |
TIMEOUT_SECONDS_DV
|
| Method Summary | |
|---|---|
void |
createServiceInternal()
Creates the service on the given platform. |
void |
deleteServiceInternal()
|
java.lang.String |
getLocationArgsStart()
|
java.lang.String |
getLocationArgsStop()
|
java.lang.String |
getManifestFilePath()
Returns the absolute location of the manifest file as SMF understands it. |
java.lang.String |
getManifestFileTemplatePath()
Returns the absolute location of the template for the given service. |
java.lang.String |
getServiceProperties()
Returns the additional properties of the Service. |
java.lang.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(java.lang.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. |
java.util.Map<java.lang.String,java.lang.String> |
tokensAndValues()
Returns the tokens and values of the service as a map. |
java.lang.String |
toString()
Returns a String representation of the SMFService. |
void |
writeReadmeFile(java.lang.String msg)
|
| Methods inherited from class com.sun.enterprise.admin.servermgmt.services.ServiceAdapter |
|---|
createService, deleteService, getInfo, getLocationArgsRestart, getServerDirs, isDomain, isInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TIMEOUT_SECONDS_DV
public static final java.lang.String AS_ADMIN_USER_DEF_VAL
public static final java.lang.String SP_DELIMITER
public static final java.lang.String PRIVILEGES_DEFAULT_VAL
public static final java.lang.String NETADDR_PRIV_VAL
public static final java.lang.String BASIC_NETADDR_PRIV_VAL
public static final java.lang.String START_INSTANCES_TN
public static final java.lang.String START_INSTANCES_DEFAULT_VAL
public static final java.lang.String NO_START_INSTANCES_PROPERTY
public static final java.lang.String SVCCFG
public static final java.lang.String SVCADM
public static final java.lang.String MANIFEST_HOME
| Method Detail |
|---|
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 java.lang.String getServiceProperties()
public void setServiceProperties(java.lang.String cds)
must - be a colon separated String, if not null. No effect, if null is passed.public boolean isConfigValid()
java.lang.RuntimeException - if the configuration is not validpublic java.util.Map<java.lang.String,java.lang.String> tokensAndValues()
public java.lang.String getManifestFilePath()
public java.lang.String getManifestFileTemplatePath()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getSuccessMessage()
public void initializeInternal()
public void writeReadmeFile(java.lang.String msg)
public final java.lang.String getLocationArgsStart()
public final java.lang.String getLocationArgsStop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||