Pakiet | mx.messaging.messages |
Klasa | public class MessagePerformanceUtils |
Dziedziczenie | MessagePerformanceUtils Object |
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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);
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
clientReceiveTime : Number [tylko do odczytu]
Timestamp in milliseconds since epoch of when the client received response message from
the server. | MessagePerformanceUtils | ||
constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | ||
messageSize : int [tylko do odczytu]
The size of the original client message as measured during deserialization by the server
endpoint. | MessagePerformanceUtils | ||
networkRTT : Number [tylko do odczytu]
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 [tylko do odczytu]
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 [tylko do odczytu]
Only populated in the case of a pushed message, size in Bytes of the message that originally
caused this pushed message. | MessagePerformanceUtils | ||
pushedMessageFlag : Boolean [tylko do odczytu]
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 [tylko do odczytu]
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 [tylko do odczytu]
The size of the response message sent to the client by the server as measured during serialization
at the server endpoint. | MessagePerformanceUtils | ||
serverAdapterExternalTime : Number [tylko do odczytu]
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 [tylko do odczytu]
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 [tylko do odczytu]
Server processing time spent outside of the adapter associated with the destination of this message. | MessagePerformanceUtils | ||
serverPollDelay : Number [tylko do odczytu]
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 [tylko do odczytu]
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 [tylko do odczytu]
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 [tylko do odczytu]
Timestamp in milliseconds since epoch of when the server sent a response message back
to the client. | MessagePerformanceUtils | ||
totalPushTime : Number [tylko do odczytu]
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 [tylko do odczytu]
Time between this client sending a message and receiving a response
for it from the server
| MessagePerformanceUtils |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
MessagePerformanceUtils(message:Object)
Constructor
Creates an MPUtils instance with information from the MPI headers
of the passed in message
| MessagePerformanceUtils | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
Returns a summary of all information available in MPI. | MessagePerformanceUtils | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
Zwraca ciąg reprezentujący określony obiekt. | Object | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object |
clientReceiveTime | właściwość |
clientReceiveTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the client received response message from the server.
Implementacja
public function get clientReceiveTime():Number
messageSize | właściwość |
networkRTT | właściwość |
networkRTT:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get networkRTT():Number
originatingMessageSentTime | właściwość |
originatingMessageSentTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get originatingMessageSentTime():Number
originatingMessageSize | właściwość |
originatingMessageSize:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get originatingMessageSize():Number
pushedMessageFlag | właściwość |
pushedMessageFlag:Boolean
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get pushedMessageFlag():Boolean
pushOneWayTime | właściwość |
pushOneWayTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get pushOneWayTime():Number
responseMessageSize | właściwość |
responseMessageSize:int
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get responseMessageSize():int
serverAdapterExternalTime | właściwość |
serverAdapterExternalTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get serverAdapterExternalTime():Number
serverAdapterTime | właściwość |
serverAdapterTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get serverAdapterTime():Number
serverNonAdapterTime | właściwość |
serverNonAdapterTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Server processing time spent outside of the adapter associated with the destination of this message.
Implementacja
public function get serverNonAdapterTime():Number
serverPollDelay | właściwość |
serverPollDelay:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get serverPollDelay():Number
serverPrePushTime | właściwość |
serverPrePushTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get serverPrePushTime():Number
serverProcessingTime | właściwość |
serverProcessingTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get serverProcessingTime():Number
serverSendTime | właściwość |
serverSendTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the server sent a response message back to the client.
Implementacja
public function get serverSendTime():Number
totalPushTime | właściwość |
totalPushTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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.
Implementacja
public function get totalPushTime():Number
totalTime | właściwość |
totalTime:Number
[tylko do odczytu] Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Time between this client sending a message and receiving a response for it from the server
Implementacja
public function get totalTime():Number
MessagePerformanceUtils | () | Konstruktor |
public function MessagePerformanceUtils(message:Object)
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message
Parametrymessage:Object — The message whose MPI headers will be used in retrieving
MPI information
|
prettyPrint | () | metoda |
public function prettyPrint():String
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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);Zwraca
String — String containing a summary of all information available in MPI
|
Tue Jun 12 2018, 12:06 PM Z