Package org.jumpmind.symmetric.wrapper
Class UnixService
java.lang.Object
org.jumpmind.symmetric.wrapper.WrapperService
org.jumpmind.symmetric.wrapper.UnixService
- Direct Known Subclasses:
MacService
-
Field Summary
Fields inherited from class org.jumpmind.symmetric.wrapper.WrapperService
child, config, keepRunning
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected int
getProcessPid
(Process process) protected String
void
install()
boolean
protected boolean
isPidRunning
(int pid) boolean
protected void
killProcess
(int pid, boolean isTerminate) protected boolean
void
start()
protected void
stopProcesses
(boolean isStopAbandoned) void
Methods inherited from class org.jumpmind.symmetric.wrapper.WrapperService
commandToString, console, deletePidFile, execJava, getConfig, getInstance, getServerPid, getWrapperCommand, getWrapperCommandQuote, getWrapperPid, init, initEnvironment, isRunning, loadConfig, readPidFromFile, relaunchAsPrivileged, restart, scrubCommand, shutdown, status, stop, stopProcess, updateStatus, waitForPid, writePidToFile
-
Constructor Details
-
UnixService
public UnixService()
-
-
Method Details
-
setWorkingDirectory
- Specified by:
setWorkingDirectory
in classWrapperService
-
install
public void install()- Specified by:
install
in classWrapperService
-
uninstall
public void uninstall()- Specified by:
uninstall
in classWrapperService
-
getRunCommandDir
-
isPrivileged
public boolean isPrivileged()- Specified by:
isPrivileged
in classWrapperService
-
isInstalled
public boolean isInstalled()- Specified by:
isInstalled
in classWrapperService
-
isPidRunning
protected boolean isPidRunning(int pid) - Specified by:
isPidRunning
in classWrapperService
-
getCurrentPid
protected int getCurrentPid()- Specified by:
getCurrentPid
in classWrapperService
-
getProcessPid
- Specified by:
getProcessPid
in classWrapperService
-
killProcess
protected void killProcess(int pid, boolean isTerminate) - Specified by:
killProcess
in classWrapperService
-
start
public void start()- Overrides:
start
in classWrapperService
-
stopProcesses
protected void stopProcesses(boolean isStopAbandoned) - Overrides:
stopProcesses
in classWrapperService
-