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 intprotected intgetProcessPid(Process process) protected Stringvoidinstall()booleanprotected booleanisPidRunning(int pid) booleanprotected voidkillProcess(int pid, boolean isTerminate) protected booleanvoidstart()protected voidstopProcesses(boolean isStopAbandoned) voidMethods 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:
setWorkingDirectoryin classWrapperService
-
install
public void install()- Specified by:
installin classWrapperService
-
uninstall
public void uninstall()- Specified by:
uninstallin classWrapperService
-
getRunCommandDir
-
isPrivileged
public boolean isPrivileged()- Specified by:
isPrivilegedin classWrapperService
-
isInstalled
public boolean isInstalled()- Specified by:
isInstalledin classWrapperService
-
isPidRunning
protected boolean isPidRunning(int pid) - Specified by:
isPidRunningin classWrapperService
-
getCurrentPid
protected int getCurrentPid()- Specified by:
getCurrentPidin classWrapperService
-
getProcessPid
- Specified by:
getProcessPidin classWrapperService
-
killProcess
protected void killProcess(int pid, boolean isTerminate) - Specified by:
killProcessin classWrapperService
-
start
public void start()- Overrides:
startin classWrapperService
-
stopProcesses
protected void stopProcesses(boolean isStopAbandoned) - Overrides:
stopProcessesin classWrapperService
-