Skip to content

Commit 1f2053d

Browse files
committed
Prepared version 0.1 release
1 parent 9eddb03 commit 1f2053d

File tree

3 files changed

+119
-119
lines changed

3 files changed

+119
-119
lines changed

README.md

+59-59
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Installation
88
Define the following requirement in your composer.json file:
99
```
1010
"require": {
11-
"ihor/supervisor-xml-rpc": "0.1.x-dev"
11+
"ihor/supervisor-xml-rpc": "~0.1"
1212
}
1313
```
1414

@@ -32,75 +32,75 @@ Reference
3232

3333
##### getApiVersion()
3434

35-
Returns the version of the RPC API used by supervisord
35+
Returns the version of the RPC API used by supervisord
3636

37-
This API is versioned separately from Supervisor itself. The API version returned by getAPIVersion only changes when the API changes. Its purpose is to help the client identify with which version of the Supervisor API it is communicating.
37+
This API is versioned separately from Supervisor itself. The API version returned by getAPIVersion only changes when the API changes. Its purpose is to help the client identify with which version of the Supervisor API it is communicating.
3838

39-
When writing software that communicates with this API, it is highly recommended that you first test the API version for compatibility before making method calls.
39+
When writing software that communicates with this API, it is highly recommended that you first test the API version for compatibility before making method calls.
4040

4141
[getAPIVersion](http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.getAPIVersion)
4242

4343

4444
##### getSupervisorVersion()
4545

46-
Returns the version of the supervisor package in use by supervisord
46+
Returns the version of the supervisor package in use by supervisord
4747

4848
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.getSupervisorVersion
4949

5050

5151
##### getIdentification()
5252

53-
Returns identifying string of supervisord
53+
Returns identifying string of supervisord
5454

55-
This method allows the client to identify with which Supervisor instance it is communicating in the case of environments where multiple Supervisors may be running.
55+
This method allows the client to identify with which Supervisor instance it is communicating in the case of environments where multiple Supervisors may be running.
5656

57-
The identification is a string that must be set in Supervisor’s configuration file. This method simply returns that value back to the client.
57+
The identification is a string that must be set in Supervisor’s configuration file. This method simply returns that value back to the client.
5858

5959
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.getIdentification
6060

6161

6262
##### getState()
6363

64-
Returns current state of supervisord as a struct
64+
Returns current state of supervisord as a struct
6565

66-
This is an internal value maintained by Supervisor that determines what Supervisor believes to be its current operational state.
66+
This is an internal value maintained by Supervisor that determines what Supervisor believes to be its current operational state.
6767

68-
Some method calls can alter the current state of the Supervisor. For example, calling the method supervisor.shutdown() while the station is in the RUNNING state places the Supervisor in the SHUTDOWN state while it is shutting down.
68+
Some method calls can alter the current state of the Supervisor. For example, calling the method supervisor.shutdown() while the station is in the RUNNING state places the Supervisor in the SHUTDOWN state while it is shutting down.
6969

70-
The supervisor.getState() method provides a means for the client to check Supervisor’s state, both for informational purposes and to ensure that the methods it intends to call will be permitted.
70+
The supervisor.getState() method provides a means for the client to check Supervisor’s state, both for informational purposes and to ensure that the methods it intends to call will be permitted.
7171

72-
The return value is a struct:
72+
The return value is a struct:
7373

74-
The possible return values are:
74+
The possible return values are:
7575

7676
Code | Name | Description
7777
-----|------------|-----------------------------------------------
78-
2 | FATAL | Supervisor has experienced a serious error.
79-
1 | RUNNING | Supervisor is working normally.
80-
0 | RESTARTING | Supervisor is in the process of restarting.
81-
-1 | SHUTDOWN | Supervisor is in the process of shutting down.
78+
2 | FATAL | Supervisor has experienced a serious error.
79+
1 | RUNNING | Supervisor is working normally.
80+
0 | RESTARTING | Supervisor is in the process of restarting.
81+
-1 | SHUTDOWN | Supervisor is in the process of shutting down.
8282

83-
The FATAL state reports unrecoverable errors, such as internal errors inside Supervisor or system runaway conditions. Once set to FATAL, the Supervisor can never return to any other state without being restarted.
83+
The FATAL state reports unrecoverable errors, such as internal errors inside Supervisor or system runaway conditions. Once set to FATAL, the Supervisor can never return to any other state without being restarted.
8484

85-
In the FATAL state, all future methods except supervisor.shutdown() and supervisor.restart() will automatically fail without being called and the fault FATAL_STATE will be raised.
85+
In the FATAL state, all future methods except supervisor.shutdown() and supervisor.restart() will automatically fail without being called and the fault FATAL_STATE will be raised.
8686

87-
In the SHUTDOWN or RESTARTING states, all method calls are ignored and their possible return values are undefined.
87+
In the SHUTDOWN or RESTARTING states, all method calls are ignored and their possible return values are undefined.
8888

8989
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.getState
9090

9191

9292
##### getPid()
9393

94-
Returns the PID of supervisord
94+
Returns the PID of supervisord
9595

9696
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.getPID
9797

9898

9999
##### readLog($offset, $length)
100100

101-
Reads length bytes from the main log starting at offset
101+
Reads length bytes from the main log starting at offset
102102

103-
It can either return the entire log, a number of characters from the tail of the log, or a slice of the log specified by the offset and length parameters:
103+
It can either return the entire log, a number of characters from the tail of the log, or a slice of the log specified by the offset and length parameters:
104104

105105
Offset | Length | Behavior of readProcessLog
106106
-----------------|-----------|-----------------------------------------------------------------
@@ -110,46 +110,46 @@ Zero or Positive | Negative | Bad arguments. This will raise the fault BAD_ARG
110110
Zero or Positive | Zero | All characters will be returned from the offset specified.
111111
Zero or Positive | Positive | A number of characters length will be returned from the offset.
112112

113-
If the log is empty and the entire log is requested, an empty string is returned.
114-
If either offset or length is out of range, the fault BAD_ARGUMENTS will be returned.
115-
If the log cannot be read, this method will raise either the NO_FILE error if the file does not exist or the FAILED error if any other problem was encountered.
113+
If the log is empty and the entire log is requested, an empty string is returned.
114+
If either offset or length is out of range, the fault BAD_ARGUMENTS will be returned.
115+
If the log cannot be read, this method will raise either the NO_FILE error if the file does not exist or the FAILED error if any other problem was encountered.
116116

117117
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.readLog
118118

119119

120120
##### clearLog()
121121

122-
Clears the main log
122+
Clears the main log
123123

124-
If the log cannot be cleared because the log file does not exist, the fault NO_FILE will be raised. If the log cannot be cleared for any other reason, the fault FAILED will be raised.
124+
If the log cannot be cleared because the log file does not exist, the fault NO_FILE will be raised. If the log cannot be cleared for any other reason, the fault FAILED will be raised.
125125

126126
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.clearLog
127127

128128

129129
##### shutdown()
130130

131-
Shuts down the supervisor process
131+
Shuts down the supervisor process
132132

133-
This method shuts down the Supervisor daemon. If any processes are running, they are automatically killed without warning.
134-
Unlike most other methods, if Supervisor is in the FATAL state, this method will still function.
133+
This method shuts down the Supervisor daemon. If any processes are running, they are automatically killed without warning.
134+
Unlike most other methods, if Supervisor is in the FATAL state, this method will still function.
135135

136136
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.shutdown
137137

138138

139139
##### restart()
140140

141-
Restarts the supervisor process
141+
Restarts the supervisor process
142142

143-
This method soft restarts the Supervisor daemon. If any processes are running, they are automatically killed without warning. Note that the actual UNIX process for Supervisor cannot restart; only Supervisor’s main program loop. This has the effect of resetting the internal states of Supervisor.
143+
This method soft restarts the Supervisor daemon. If any processes are running, they are automatically killed without warning. Note that the actual UNIX process for Supervisor cannot restart; only Supervisor’s main program loop. This has the effect of resetting the internal states of Supervisor.
144144

145-
Unlike most other methods, if Supervisor is in the FATAL state, this method will still function.
145+
Unlike most other methods, if Supervisor is in the FATAL state, this method will still function.
146146

147147
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.restart
148148

149149

150150
##### getProcessInfo($name)
151151

152-
Returns info about a process named name
152+
Returns info about a process named name
153153

154154
The return value is a struct:
155155
```
@@ -174,104 +174,104 @@ http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCIn
174174

175175
##### getAllProcessInfo()
176176

177-
Returns info about all processes
177+
Returns info about all processes
178178

179-
Each element contains a struct, and this struct contains the exact same elements as the struct returned by getProcess. If the process table is empty, an empty array is returned.
179+
Each element contains a struct, and this struct contains the exact same elements as the struct returned by getProcess. If the process table is empty, an empty array is returned.
180180

181181
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.getAllProcessInfo
182182

183183

184184
##### startProcess($name, $wait = true)
185185

186-
Starts a process
186+
Starts a process
187187

188188
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.startProcess
189189

190190

191191
##### stopProcess($name, $wait = true)
192192

193-
Stops a process named by name
193+
Stops a process named by name
194194

195195
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.stopProcess
196196

197197

198198
##### startProcessGroup($name, $wait = true)
199199

200-
Starts all processes in the group named by name
200+
Starts all processes in the group named by name
201201

202202
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.startProcessGroup
203203

204204

205205
##### stopProcessGroup($name, $wait = true)
206206

207-
Stops all processes in the process group named by name
207+
Stops all processes in the process group named by name
208208

209209
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.stopProcessGroup
210210

211211

212212
##### startAllProcesses($wait = true)
213213

214-
Starts all processes listed in the configuration file
214+
Starts all processes listed in the configuration file
215215

216216
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.startAllProcesses
217217

218218

219219
##### stopAllProcesses($wait = true)
220220

221-
Stops all processes in the process list
221+
Stops all processes in the process list
222222

223223
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.stopAllProcesses
224224

225225

226226
##### sendProcessStdin($name, $chars)
227227

228-
Sends a string of chars to the stdin of the process name.
228+
Sends a string of chars to the stdin of the process name.
229229

230-
If non-7-bit data is sent (unicode), it is encoded to utf-8 before being sent to the process’ stdin. If chars i not a string or is not unicode, raise INCORRECT_PARAMETERS. If the process is not running, raise NOT_RUNNING. If the process’ stdin cannot accept input (e.g. it was closed by the child process), raise NO_FILE.
230+
If non-7-bit data is sent (unicode), it is encoded to utf-8 before being sent to the process’ stdin. If chars i not a string or is not unicode, raise INCORRECT_PARAMETERS. If the process is not running, raise NOT_RUNNING. If the process’ stdin cannot accept input (e.g. it was closed by the child process), raise NO_FILE.
231231

232232
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.sendProcessStdin
233233

234234

235235
##### sendRemoteCommEvent($type, $data)
236236

237-
Sends an event that will be received by event listener subprocesses subscribing to the RemoteCommunicationEvent.
237+
Sends an event that will be received by event listener subprocesses subscribing to the RemoteCommunicationEvent.
238238

239239
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.sendRemoteCommEvent
240240

241241

242242
##### addProcessGroup($name)
243243

244-
Updates the config for a running process from config file.
244+
Updates the config for a running process from config file.
245245

246246
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.addProcessGroup
247247

248248

249249
##### removeProcessGroup($name)
250250

251-
Removes a stopped process from the active configuration
251+
Removes a stopped process from the active configuration
252252

253253
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.removeProcessGroup
254254

255255

256256
##### readProcessStdoutLog($name, $offset, $length)
257257

258-
Reads length bytes from name’s stdout log starting at offset
258+
Reads length bytes from name’s stdout log starting at offset
259259

260260
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.readProcessStdoutLog
261261

262262

263263
##### readProcessStderrLog($name, $offset, $length)
264264

265-
Read length bytes from name’s stderr log starting at offset
265+
Read length bytes from name’s stderr log starting at offset
266266

267267
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.tailProcessStderrLog
268268

269269

270270
##### tailProcessStdoutLog($name, $offset, $length)
271271

272272
Provides a more efficient way to tail the (stdout) log than readProcessStdoutLog(). Use readProcessStdoutLog() to read chunks and tailProcessStdoutLog() to tail.
273-
274-
Requests (length) bytes from the (name)’s log, starting at (offset). If the total log size is greater than (offset + length), the overflow flag is set and the (offset) is automatically increased to position the buffer at the end of the log. If less than (length) bytes are available, the maximum number of available bytes will be returned. (offset) returned is always the last offset in the log +1.
273+
274+
Requests (length) bytes from the (name)’s log, starting at (offset). If the total log size is greater than (offset + length), the overflow flag is set and the (offset) is automatically increased to position the buffer at the end of the log. If less than (length) bytes are available, the maximum number of available bytes will be returned. (offset) returned is always the last offset in the log +1.
275275

276276
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.tailProcessStdoutLog
277277

@@ -287,41 +287,41 @@ http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCIn
287287

288288
##### clearProcessLogs($name)
289289

290-
Clears the stdout and stderr logs for the named process and reopen them
290+
Clears the stdout and stderr logs for the named process and reopen them
291291

292292
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.clearProcessLogs
293293

294294

295295
##### clearAllProcessLogs()
296296

297-
Clears all process log files
297+
Clears all process log files
298298

299299
http://supervisord.org/api.html#supervisor.rpcinterface.SupervisorNamespaceRPCInterface.clearAllProcessLogs
300300

301301

302302
##### listMethods()
303303

304-
Returns an array listing the available method names
304+
Returns an array listing the available method names
305305

306306
http://supervisord.org/api.html#supervisor.xmlrpc.SystemNamespaceRPCInterface.listMethods
307307

308308

309309
##### methodHelp($name)
310310

311-
Returns a string showing the method’s documentation
311+
Returns a string showing the method’s documentation
312312

313313
http://supervisord.org/api.html#supervisor.xmlrpc.SystemNamespaceRPCInterface.methodHelp
314314

315315

316316
##### methodSignature($name)
317317

318-
Returns an array describing the method signature in the form [rtype, ptype, ptype...] where rtype is the return data type of the method, and ptypes are the parameter data types that the method accepts in method argument order.
318+
Returns an array describing the method signature in the form [rtype, ptype, ptype...] where rtype is the return data type of the method, and ptypes are the parameter data types that the method accepts in method argument order.
319319

320320
http://supervisord.org/api.html#supervisor.xmlrpc.SystemNamespaceRPCInterface.methodSignature
321321

322322

323323
##### multicall(array $calls)
324324

325-
Processes an array of calls, and return an array of results. Calls should be structs of the form. Each result will either be a single-item array containg the result value, or a struct of the form . This is useful when you need to make lots of small calls without lots of round trips.
325+
Processes an array of calls, and return an array of results. Calls should be structs of the form. Each result will either be a single-item array containg the result value, or a struct of the form . This is useful when you need to make lots of small calls without lots of round trips.
326326

327327
http://supervisord.org/api.html#supervisor.xmlrpc.SystemNamespaceRPCInterface.multicall

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"extra": {
1919
"branch-alias": {
20-
"dev-master": "0.1-dev"
20+
"dev-master": "0.2-dev"
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)