Pakket | mx.messaging.messages |
Klasse | public class MessagePerformanceUtils |
Overerving | MessagePerformanceUtils Object |
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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 using code such as below:
var mpiutil:MessagePerformanceUtils = new MessagePerformanceUtils(event.message);
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
clientReceiveTime : Number [alleen-lezen]
Timestamp in milliseconds since epoch of when the client received response message from
the server. | MessagePerformanceUtils | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
messageSize : int [alleen-lezen]
The size of the original client message as measured during deserialization by the server
endpoint. | MessagePerformanceUtils | ||
networkRTT : Number [alleen-lezen]
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 [alleen-lezen]
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 [alleen-lezen]
Only populated in the case of a pushed message, size in Bytes of the message that originally
caused this pushed message. | MessagePerformanceUtils | ||
pushedMessageFlag : Boolean [alleen-lezen]
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 [alleen-lezen]
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 [alleen-lezen]
The size of the response message sent to the client by the server as measured during serialization
at the server endpoint. | MessagePerformanceUtils | ||
serverAdapterExternalTime : Number [alleen-lezen]
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 [alleen-lezen]
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 [alleen-lezen]
Server processing time spent outside of the adapter associated with the destination of this message. | MessagePerformanceUtils | ||
serverPollDelay : Number [alleen-lezen]
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 [alleen-lezen]
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 [alleen-lezen]
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 [alleen-lezen]
Timestamp in milliseconds since epoch of when the server sent a response message back
to the client. | MessagePerformanceUtils | ||
totalPushTime : Number [alleen-lezen]
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 [alleen-lezen]
Time between this client sending a message and receiving a response
for it from the server
| MessagePerformanceUtils |
Methode | Gedefinieerd door | ||
---|---|---|---|
MessagePerformanceUtils(message:Object)
Constructor
Creates an MPUtils instance with information from the MPI headers
of the passed in message
| MessagePerformanceUtils | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Returns a summary of all information available in MPI. | MessagePerformanceUtils | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
clientReceiveTime | eigenschap |
clientReceiveTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the client received response message from the server.
Implementatie
public function get clientReceiveTime():Number
messageSize | eigenschap |
networkRTT | eigenschap |
networkRTT:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get networkRTT():Number
originatingMessageSentTime | eigenschap |
originatingMessageSentTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get originatingMessageSentTime():Number
originatingMessageSize | eigenschap |
originatingMessageSize:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Only populated in the case of a pushed message, size in Bytes of the message that originally caused this pushed message.
Implementatie
public function get originatingMessageSize():Number
pushedMessageFlag | eigenschap |
pushedMessageFlag:Boolean
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Returns true if message was pushed to the client and is not a response to a message that originated on the client.
Implementatie
public function get pushedMessageFlag():Boolean
pushOneWayTime | eigenschap |
pushOneWayTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get pushOneWayTime():Number
responseMessageSize | eigenschap |
responseMessageSize:int
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The size of the response message sent to the client by the server as measured during serialization at the server endpoint.
Implementatie
public function get responseMessageSize():int
serverAdapterExternalTime | eigenschap |
serverAdapterExternalTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get serverAdapterExternalTime():Number
serverAdapterTime | eigenschap |
serverAdapterTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get serverAdapterTime():Number
serverNonAdapterTime | eigenschap |
serverNonAdapterTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Server processing time spent outside of the adapter associated with the destination of this message.
Implementatie
public function get serverNonAdapterTime():Number
serverPollDelay | eigenschap |
serverPollDelay:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get serverPollDelay():Number
serverPrePushTime | eigenschap |
serverPrePushTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get serverPrePushTime():Number
serverProcessingTime | eigenschap |
serverProcessingTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get serverProcessingTime():Number
serverSendTime | eigenschap |
serverSendTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the server sent a response message back to the client.
Implementatie
public function get serverSendTime():Number
totalPushTime | eigenschap |
totalPushTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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.
Implementatie
public function get totalPushTime():Number
totalTime | eigenschap |
totalTime:Number
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Time between this client sending a message and receiving a response for it from the server
Implementatie
public function get totalTime():Number
MessagePerformanceUtils | () | Constructor |
public function MessagePerformanceUtils(message:Object)
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
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 | () | methode |
public function prettyPrint():String
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Returns a summary of all information available in MPI. For example:
var mpiutil:MessagePerformanceUtils = new MessagePerformanceUtils(message); Alert.show(mpiutil.prettyPrint(), "MPI Output", Alert.NONMODAL);Geretourneerde waarde
String — String containing a summary of all information available in MPI
|
Wed Jun 13 2018, 11:42 AM Z