com.sun.enterprise.admin.servermgmt.services
Class WindowsService

java.lang.Object
  extended by com.sun.enterprise.admin.servermgmt.services.ServiceAdapter
      extended by com.sun.enterprise.admin.servermgmt.services.NonSMFServiceAdapter
          extended by 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

Method Summary
 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, isDomain, isInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

toString

public String toString()
Overrides:
toString in class Object

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()


Copyright © 2012. All Rights Reserved.