Class WindowsService
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
-
- com.sun.enterprise.admin.servermgmt.services.NonSMFServiceAdapter
-
- com.sun.enterprise.admin.servermgmt.services.WindowsService
-
- All Implemented Interfaces:
Service
public class WindowsService extends NonSMFServiceAdapter
Warning: there is lots of file twiddling going on in this class. It is the nature of the beast.- Author:
- Byron Nevins
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
ServiceAdapter.OSServiceAdapterException
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createServiceInternal()
void
deleteServiceInternal()
String
getLocationArgsStart()
Byron Nevins March 2012 There is a bug in the older version of winsw.String
getLocationArgsStop()
String
getSuccessMessage()
void
initializeInternal()
String
toString()
void
writeReadmeFile(String msg)
-
Methods inherited from class com.sun.enterprise.admin.servermgmt.services.NonSMFServiceAdapter
getManifestFilePath, getManifestFileTemplatePath, getServiceProperties, getTimeoutSeconds, isConfigValid, setServiceProperties, setTimeoutSeconds, tokensAndValues
-
Methods inherited from class com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
createService, deleteService, getInfo, getLocationArgsRestart, getServerDirs, getServiceUser, isDomain, isInstance
-
-
-
-
Method Detail
-
createServiceInternal
public final void createServiceInternal() throws RuntimeException
- Throws:
RuntimeException
-
deleteServiceInternal
public void deleteServiceInternal()
-
getSuccessMessage
public final String getSuccessMessage()
-
writeReadmeFile
public final void writeReadmeFile(String msg)
-
getLocationArgsStart
public final String getLocationArgsStart()
Byron Nevins March 2012 There is a bug in the older version of winsw. We MUST double-quote paths. winsw does this automatically for "executable" since it knows that it has to be a path. But not for start/stop arg paths If we upgrade to a 'fixed' later version of winsw I checked and it is looking for already-quoted strings because of the bug. So it won't be necessary to change it here.- Returns:
- all start arguments as a String
-
getLocationArgsStop
public final String getLocationArgsStop()
-
initializeInternal
public final void initializeInternal()
-
-