
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
14
Returns
An Object whose properties contain statistics about the application instance. The following table describes the
properties:
Example
The following example outputs application statistics to the Live Log panel in the Administration Console:
function testStats(){
var stats = application.getStats();
for(var prop in stats){
trace("stats." + prop + " = " + stats[prop]);
}
}
application.onConnect = function(client){
this.acceptConnection(client);
testStats();
};
application.hostname
application.hostname
Read-only; the host name of the server for default virtual hosts; the virtual host name for all other virtual hosts.
If an application is running on the default virtual host, and if a value is set in the
ServerDomain element in the
Server.xml configuration file, the
application.hostname property contains the value set in the ServerDomain
element. If a value has not been set in the
ServerDomain element, the property is undefined.
If an application is running on any virtual host other than the default, the
application.hostname property
contains the name of the virtual host.
Availability
Flash Communication Server 1.5
application.name
application.name
Read-only; the name of the application instance.
Property Description
bw_in Total number of kilobytes received.
bw_out Total number of kilobytes sent.
bytes_in Total number of bytes sent.
bytes_out Total number of bytes received.
msg_in Total number of Real-Time Messaging Protocol (RTMP) messages sent.
msg_out Total number of RTMP messages received.
msg_dropped Total number of RTMP messages dropped.
total_connects Total number of clients connected to an application instance.
total_disconnects Total number of clients who have disconnected from an application instance.
Commenti su questo manuale