Class ServerProcess
- java.lang.Object
-
- org.wso2.diagnostics.actionexecutor.ServerProcess
-
public class ServerProcess extends Object
Class used to represent the java process of wso2 server.
-
-
Constructor Summary
Constructors Constructor Description ServerProcess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetNodeId()static StringgetProcessId()Getter method for processId.static voidsetProcessId(String path)Setter method for processId.static voidwritePID(String runtimePath)Write the process ID of this process to the file.
-
-
-
Method Detail
-
getProcessId
public static String getProcessId()
Getter method for processId.- Returns:
- String processId
-
setProcessId
public static void setProcessId(String path)
Setter method for processId.- Parameters:
path- wso2carbon.pid file path
-
getNodeId
public static String getNodeId()
-
writePID
public static void writePID(String runtimePath)
Write the process ID of this process to the file.- Parameters:
runtimePath- wso2.runtime.path sys property value.
-
-