Package | net.user1.reactor.snapshot |
Class | public class UPCStatsSnapshot |
Inheritance | UPCStatsSnapshot ![]() ![]() |
Since : | Reactor 1.1.0 |
// Create the snapshot var snapshot:UPCStatsSnapshot = new UPCStatsSnapshot(); // Register a callback function snapshot.onLoad = function ():void { trace("The server currently has " + snapshot.getNumUPCsInQueue() + " UPC messages waiting to be" + " processed."); } // Or register a listener function snapshot.addEventListener(SnapshotEvent.LOAD, loadListener); function loadListener (e:SnapshotEvent):void { var loadedSnapshot:UPCStatsSnapshot = UPCStatsSnapshot(e.target); trace("The server currently has " + loadedSnapshot.getNumUPCsInQueue() + " UPC messages waiting to be" + " processed."); } // Load the UPC stats by passing the snapshot object to // Reactor's updateSnapshot() method: reactor.updateSnapshot(snapshot);
See also
Method | Defined By | ||
---|---|---|---|
Constructor
| UPCStatsSnapshot | ||
getLastQueueWaitTime():int
Returns the amount of time the most-recently processed message spent in
the message queue before being processed. | UPCStatsSnapshot | ||
getLongestUPCProcesses():Array
Returns a list of the messages that took the longest amount of time to
process since the server started. | UPCStatsSnapshot | ||
getNumUPCsInQueue():int
Returns the number of UPC messages currently waiting to be processed by
Union Server. | UPCStatsSnapshot | ||
![]() | getStatus():String
Returns the status of the most recent snapshot load-operation. | Snapshot | |
getTotalUPCsProcessed():int
Returns the total number of UPC messages Union Server has processed since
the server started. | UPCStatsSnapshot | ||
![]() | updateInProgress():Boolean
Indicates whether the snapshot is currently loading data. | Snapshot |
UPCStatsSnapshot | () | Constructor |
public function UPCStatsSnapshot()
Constructor
getLastQueueWaitTime | () | method |
public function getLastQueueWaitTime():int
Since : | Reactor 1.1.0 |
Returns the amount of time the most-recently processed message spent in the message queue before being processed. To refresh this value to reflect the latest state of the server, pass this UPCStatsSnapshot object to Reactor's updateSnapshot() method.
Returnsint |
See also
getLongestUPCProcesses | () | method |
public function getLongestUPCProcesses():Array
Since : | Reactor 1.1.0 |
Returns a list of the messages that took the longest amount of time to process since the server started. To refresh this value to reflect the latest state of the server, pass this UPCStatsSnapshot object to Reactor's updateSnapshot() method.
ReturnsArray |
See also
getNumUPCsInQueue | () | method |
public function getNumUPCsInQueue():int
Since : | Reactor 1.1.0 |
Returns the number of UPC messages currently waiting to be processed by Union Server. To refresh this value to reflect the latest state of the server, pass this UPCStatsSnapshot object to Reactor's updateSnapshot() method.
Returnsint |
See also
getTotalUPCsProcessed | () | method |
public function getTotalUPCsProcessed():int
Since : | Reactor 1.1.0 |
Returns the total number of UPC messages Union Server has processed since the server started. To refresh this value to reflect the latest state of the server, pass this UPCStatsSnapshot object to Reactor's updateSnapshot() method.
Returnsint |
See also