You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+59-59
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Installation
8
8
Define the following requirement in your composer.json file:
9
9
```
10
10
"require": {
11
-
"ihor/supervisor-xml-rpc": "0.1.x-dev"
11
+
"ihor/supervisor-xml-rpc": "~0.1"
12
12
}
13
13
```
14
14
@@ -32,75 +32,75 @@ Reference
32
32
33
33
##### getApiVersion()
34
34
35
-
Returns the version of the RPC API used by supervisord
35
+
Returns the version of the RPC API used by supervisord
36
36
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.
38
38
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.
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.
56
56
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.
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.
67
67
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.
69
69
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.
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.
82
82
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.
84
84
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.
86
86
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.
Reads length bytes from the main log starting at offset
101
+
Reads length bytes from the main log starting at offset
102
102
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:
@@ -110,46 +110,46 @@ Zero or Positive | Negative | Bad arguments. This will raise the fault BAD_ARG
110
110
Zero or Positive | Zero | All characters will be returned from the offset specified.
111
111
Zero or Positive | Positive | A number of characters length will be returned from the offset.
112
112
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.
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.
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.
144
144
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.
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.
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.
229
229
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.
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.
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.
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.
0 commit comments