|
||||||||||
| 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 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
|
| Method Summary | |
|---|---|
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)
|
| 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 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
| 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 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()
toString in class Objectpublic String getSuccessMessage()
public void initializeInternal()
public void writeReadmeFile(String msg)
public final String getLocationArgsStart()
public final String getLocationArgsStop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||