Package | mx.messaging.messages |
Class | public class MessagePerformanceUtils |
Inheritance | MessagePerformanceUtils ![]() |
You can then use methods of this utility class to retrieve various performance information about the message that you have just received.
When these metrics are enabled an instance of this class should be created from a response, acknowledgement, or message handler via something like:
Property | Defined By | ||
---|---|---|---|
clientReceiveTime : Number [read-only]
Timestamp in milliseconds since epoch of when the client received response message from
the server
| MessagePerformanceUtils | ||
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
messageSize : int [read-only]
The size of the original client message as measured during deserialization by the server
endpoint
| MessagePerformanceUtils | ||
networkRTT : Number [read-only]
The network round trip time for a client message and the server response to it,
calculated by the difference between total time and server processing time
| MessagePerformanceUtils | ||
originatingMessageSentTime : Number [read-only]
Only populated in the case of a pushed message, timestamp in milliseconds since epoch of
when the client that caused a push message sent its message. | MessagePerformanceUtils | ||
originatingMessageSize : Number [read-only]
Only populated in the case of a pushed message, size in Bytes of the message that originally
caused this pushed message
| MessagePerformanceUtils | ||
![]() | prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | |
pushedMessageFlag : Boolean [read-only]
Returns true if message was pushed to the client and is not a response to a message that
originated on the client
| MessagePerformanceUtils | ||
pushOneWayTime : Number [read-only]
Only populated in the case of a pushed message, this is the network time between
the server pushing the message and the client receiving it. | MessagePerformanceUtils | ||
responseMessageSize : int [read-only]
The size of the response message sent to the client by the server as measured during serialization
at the server endpoint
| MessagePerformanceUtils | ||
serverAdapterExternalTime : Number [read-only]
Time spent in a module invoked from the adapter associated with the destination for this message
but external to it, before either the response to the message was ready or the message had been
prepared to be pushed to the receiving client. | MessagePerformanceUtils | ||
serverAdapterTime : Number [read-only]
Time spent in the adapter associated with the destination for this message before
either the response to the message was ready or the message had been prepared
to be pushed to the receiving client. | MessagePerformanceUtils | ||
serverNonAdapterTime : Number [read-only]
Server processing time spent outside of the adapter associated with the destination of this message
| MessagePerformanceUtils | ||
serverPollDelay : Number [read-only]
Time that the message waited on the server after it was ready to be pushed to the client
but had not yet been polled for. | MessagePerformanceUtils | ||
serverPrePushTime : Number [read-only]
Time between server receiving the client message and the server beginning to push
messages out to other clients as a result of the original message. | MessagePerformanceUtils | ||
serverProcessingTime : Number [read-only]
Time between server receiving the client message and either the time
the server responded to the received message or had the pushed message ready
to be sent to the receiving client. | MessagePerformanceUtils | ||
serverSendTime : Number [read-only]
Timestamp in milliseconds since epoch of when the server sent a response message back
to the client
| MessagePerformanceUtils | ||
totalPushTime : Number [read-only]
Only populated in the case of a pushed message, this is the time between the push causing client
sending its message and the push receving client receiving it. | MessagePerformanceUtils | ||
totalTime : Number [read-only]
Time between this client sending a message and receiving a response
for it from the server
| MessagePerformanceUtils |
Method | Defined By | ||
---|---|---|---|
MessagePerformanceUtils(message:Object)
Constructor
Creates an MPUtils instance with information from the MPI headers
of the passed in message
| MessagePerformanceUtils | ||
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
Method returns a summary of all information available in MPI. | MessagePerformanceUtils | ||
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object |
clientReceiveTime | property |
clientReceiveTime:Number
[read-only] Timestamp in milliseconds since epoch of when the client received response message from the server
public function get clientReceiveTime():Number
messageSize | property |
messageSize:int
[read-only] The size of the original client message as measured during deserialization by the server endpoint
public function get messageSize():int
networkRTT | property |
networkRTT:Number
[read-only] The network round trip time for a client message and the server response to it, calculated by the difference between total time and server processing time
public function get networkRTT():Number
originatingMessageSentTime | property |
originatingMessageSentTime:Number
[read-only] Only populated in the case of a pushed message, timestamp in milliseconds since epoch of when the client that caused a push message sent its message.
public function get originatingMessageSentTime():Number
originatingMessageSize | property |
originatingMessageSize:Number
[read-only] Only populated in the case of a pushed message, size in Bytes of the message that originally caused this pushed message
public function get originatingMessageSize():Number
pushedMessageFlag | property |
pushedMessageFlag:Boolean
[read-only] Returns true if message was pushed to the client and is not a response to a message that originated on the client
public function get pushedMessageFlag():Boolean
pushOneWayTime | property |
pushOneWayTime:Number
[read-only] Only populated in the case of a pushed message, this is the network time between the server pushing the message and the client receiving it. Note that the server and client clocks must be in sync for this to be meaningful.
public function get pushOneWayTime():Number
responseMessageSize | property |
responseMessageSize:int
[read-only] The size of the response message sent to the client by the server as measured during serialization at the server endpoint
public function get responseMessageSize():int
serverAdapterExternalTime | property |
serverAdapterExternalTime:Number
[read-only] Time spent in a module invoked from the adapter associated with the destination for this message but external to it, before either the response to the message was ready or the message had been prepared to be pushed to the receiving client.
public function get serverAdapterExternalTime():Number
serverAdapterTime | property |
serverAdapterTime:Number
[read-only] Time spent in the adapter associated with the destination for this message before either the response to the message was ready or the message had been prepared to be pushed to the receiving client.
public function get serverAdapterTime():Number
serverNonAdapterTime | property |
serverNonAdapterTime:Number
[read-only] Server processing time spent outside of the adapter associated with the destination of this message
public function get serverNonAdapterTime():Number
serverPollDelay | property |
serverPollDelay:Number
[read-only] Time that the message waited on the server after it was ready to be pushed to the client but had not yet been polled for.
public function get serverPollDelay():Number
serverPrePushTime | property |
serverPrePushTime:Number
[read-only] Time between server receiving the client message and the server beginning to push messages out to other clients as a result of the original message.
public function get serverPrePushTime():Number
serverProcessingTime | property |
serverProcessingTime:Number
[read-only] Time between server receiving the client message and either the time the server responded to the received message or had the pushed message ready to be sent to the receiving client.
public function get serverProcessingTime():Number
serverSendTime | property |
serverSendTime:Number
[read-only] Timestamp in milliseconds since epoch of when the server sent a response message back to the client
public function get serverSendTime():Number
totalPushTime | property |
totalPushTime:Number
[read-only] Only populated in the case of a pushed message, this is the time between the push causing client sending its message and the push receving client receiving it. Note that the two clients' clocks must be in sync for this to be meaningful.
public function get totalPushTime():Number
totalTime | property |
totalTime:Number
[read-only] Time between this client sending a message and receiving a response for it from the server
public function get totalTime():Number
MessagePerformanceUtils | () | Constructor |
public function MessagePerformanceUtils(message:Object)
Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message
Parametersmessage:Object — The message whose MPI headers will be used in retrieving
MPI information
|
prettyPrint | () | method |
public function prettyPrint():String
Method returns a summary of all information available in MPI. A suggested use of this is something like,
ReturnsString — String containing a summary of all information available in MPI
|
var mpiutil:MessagePerformanceUtils = new MessagePerformanceUtils(message); Alert.show(mpiutil.prettyPrint(), "MPI Output", Alert.NONMODAL);