RTMP/E
getSharedObjectStats(appInst:String, sharedObject:String, persistent:Boolean) : Object
HTTP
http://www.example.com:1111/admin/getSharedObjectStats?auser=username&apswd=password&appInst=name&sharedObject=name&persistent=value
Gets detailed information about a shared object.
Availability
Flash Communication Server 1.0.
Parameters
appInst
A String indicating the name of the instance of the application, in the form application_name/instance_name.
sharedObject
A String indicating the name of the shared object. You can get the names of all active shared objects by using the getSharedObjects() method.
persistent
A Boolean value: true for persistent; false for nonpersistent.
auser
A String indicating the user name of the administrator.
apswd
A String indicating the password of the administrator.
Returns
RTMP/E
If the call succeeds, the server sends a reply information object with a level property of status, a code property of NetConnection.Call.Success, and a data property that is an object. The data object has the following properties:
Property |
Description |
---|---|
version |
Number; version number of the shared object. |
num_properties |
Number; total number of properties in the shared object. |
msg_in |
Number; total messages in to the shared object. |
msg_out |
Number; total messages out from the shared object. |
total_connects |
Number; total number of connections to the shared object. |
total_disconnects |
Number; total number of disconnections from the shared object. |
connected |
Number; number of active subscribers. |
resync_depth |
Number; maximum version retained before resynchronization. If the difference between the server version number and the client version number is greater than the resync_depth value, Adobe Media Server sends only changes between versions. |
If the call fails, the server sends a reply information object with a level property of error and a code property of NetConnection.Call.Failed or a more specific value, if available. Some objects might also have a description property that contains a string describing the cause of the failure.
HTTP
If the call succeeds, it returns XML with the following structure:
<result> <level></level> <code></code> <timestamp></timestamp> <data></data> </result>Nested in the data element are elements for each property of the data object listed in the RTMP/E section.
If the call fails, it returns XML with the following structure:
<result> <level></level> <code></code> <description></description> <timestamp></timestamp> </result>The XML elements contain the same information as the Object properties returned in an RTMP/E call.
Note: The timestamp response over HTTP is formatted differently on Windows (9/23/2007 6:16:40 PM) and Linux (Sun 23 Sep 2007 06:16:40 PM IST).
See also
Sign in to your account