# supervisor4j **Repository Path**: mbigger/supervisor4j ## Basic Information - **Project Name**: supervisor4j - **Description**: A Java Client for Supervisord's XML RPC API base on Apache XML-RPC. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-11 - **Last Updated**: 2022-06-08 ## Categories & Tags **Categories**: rpc **Tags**: None ## README # supervisor4j #### Description A Java Client for Supervisor's XML RPC API base on Apache XML-RPC. http://www.supervisord.org/api.html ### Usage Create an instance of `Supervisor`, then call the method. ``` Supervisor supervisor = Supervisor.configXmlRpcClient(); ``` You can config the url and auth befor `configXmlRpcClient`. ``` Supervisor supervisor = Supervisor .url("http://127.0.0.1:10109/RPC2") .auth("Supervisor", "Supervisor518") .configXmlRpcClient(); ``` You can use the method `execute` to call the interface extended by yourself ### Method List
| group | method | implement | test |
|---|---|---|---|
| Status and Control | getAPIVersion | √ | |
| getSupervisorVersion | √ | ||
| getIdentification | √ | ||
| getState | √ | ||
| getPID | √ | ||
| readLogt | √ | ||
| clearLog | √ | ||
| shutdown | √ | ||
| restar | √ | ||
| Process Control | getProcessInfo | √ | |
| getAllProcessInfo | √ | ||
| startProcess | √ | ||
| startAllProcesses | √ | ||
| startProcessGroup | √ | ||
| stopProcess | √ | ||
| stopProcessGroup | √ | ||
| stopAllProcesses | √ | ||
| signalProcess | √ | ||
| signalProcessGroup | √ | ||
| signalAllProcesses | √ | ||
| sendProcessStdin | √ | ||
| sendRemoteCommEvent | √ | ||
| reloadConfig | √ | ||
| addProcessGroup | √ | ||
| removeProcessGroup | √ | ||
| Process Logging | readProcessStdoutLog | √ | |
| readProcessStderrLog | √ | ||
| tailProcessStdoutLog | √ | ||
| tailProcessStderrLog | √ | ||
| clearProcessLogs | √ | ||
| clearAllProcessLogs | √ | ||
| System Methods | listMethods | √ | |
| methodHelp | √ | ||
| methodSignature | √ | ||
| multicall | √ |