|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.denova.runtime.WindowsServices
public class WindowsServices
Manage Windows services.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
WindowsServices()
|
|
| Method Summary | |
|---|---|
boolean |
installService(java.lang.String executable)
Install a service using .Net utility. |
boolean |
installService(java.lang.String serviceName,
java.lang.String executable)
Install a service. |
boolean |
installService(java.lang.String serviceName,
java.lang.String serviceLabel,
java.lang.String executable,
boolean automatic)
Install a service. |
boolean |
removeService(java.lang.String serviceName)
Deprecated. |
boolean |
removeService(java.lang.String serviceName,
java.lang.String executable)
Remove a service. |
boolean |
supportServices()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowsServices()
| Method Detail |
|---|
public boolean installService(java.lang.String executable)
executable - is the pathname to the executable; use double quotes for filenames with spaces
public boolean installService(java.lang.String serviceName,
java.lang.String executable)
serviceName - is the name used by SCM and Service Control Panel.executable - is the pathname to the executable; use double quotes for filenames with spaces
public boolean installService(java.lang.String serviceName,
java.lang.String serviceLabel,
java.lang.String executable,
boolean automatic)
serviceName - is the name used internally by SCMserviceLabel - is the name that displays in the Service Control Panelexecutable - is the pathname to the executable; use double quotes for filenames with spacesautomatic - is set true, if you want the service invoked automatically on startup
public boolean removeService(java.lang.String serviceName)
serviceName - is the name used internally by SCM
public boolean removeService(java.lang.String serviceName,
java.lang.String executable)
serviceName - is the name used internally by SCMexecutable - is the pathname to the executable; use double quotes for filenames with spaces
public boolean supportServices()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||