|
||||||||||
| 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.NonSMFServiceAdapter
public abstract class NonSMFServiceAdapter
The original implementation of Services had serious design problems. The Service interface is ENORMOUSLY fat and non OO in the sense that outside callers had to set things to make things work. The interface is not generic -- it is very SMF specific It is extremely difficult to implement the interface because it has SO MANY methods that non-SMF don't need. This "Adapter" makes it easier to implement the interface. Eventually we should have one adapter for all services but the SMF code is difficult and time-consuming to change. Meantime I'm adding new functionality (August 2010, bnevins) for instances. I'm moving implementations of the new interface methods to "ServiceAdapter" which ALL services extend.
| Method Summary | |
|---|---|
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. |
String |
getServiceProperties()
Returns the additional properties of the Service. |
int |
getTimeoutSeconds()
|
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. |
| 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, toString, wait, wait, wait |
| Methods inherited from interface com.sun.enterprise.admin.servermgmt.services.Service |
|---|
createServiceInternal, deleteServiceInternal, getLocationArgsStart, getLocationArgsStop, getSuccessMessage, initializeInternal, writeReadmeFile |
| Method Detail |
|---|
public final int getTimeoutSeconds()
public final void setTimeoutSeconds(int number)
Service
number - a non-negative integer representing timeout. A value of zero implies infinite timeout.public final String getServiceProperties()
Service
public final void setServiceProperties(String cds)
Service
public final Map<String,String> tokensAndValues()
Service
public final String getManifestFilePath()
Service
public final String getManifestFileTemplatePath()
Service
public final boolean isConfigValid()
Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||