Pacote | mx.messaging.messages |
Classe | public class MessagePerformanceUtils |
Herança | MessagePerformanceUtils Object |
Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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);
Propriedade | Definido por | ||
---|---|---|---|
clientReceiveTime : Number [somente leitura]
Timestamp in milliseconds since epoch of when the client received response message from
the server. | MessagePerformanceUtils | ||
constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | ||
messageSize : int [somente leitura]
The size of the original client message as measured during deserialization by the server
endpoint. | MessagePerformanceUtils | ||
networkRTT : Number [somente leitura]
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 [somente leitura]
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 [somente leitura]
Only populated in the case of a pushed message, size in Bytes of the message that originally
caused this pushed message. | MessagePerformanceUtils | ||
pushedMessageFlag : Boolean [somente leitura]
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 [somente leitura]
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 [somente leitura]
The size of the response message sent to the client by the server as measured during serialization
at the server endpoint. | MessagePerformanceUtils | ||
serverAdapterExternalTime : Number [somente leitura]
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 [somente leitura]
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 [somente leitura]
Server processing time spent outside of the adapter associated with the destination of this message. | MessagePerformanceUtils | ||
serverPollDelay : Number [somente leitura]
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 [somente leitura]
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 [somente leitura]
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 [somente leitura]
Timestamp in milliseconds since epoch of when the server sent a response message back
to the client. | MessagePerformanceUtils | ||
totalPushTime : Number [somente leitura]
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 [somente leitura]
Time between this client sending a message and receiving a response
for it from the server
| MessagePerformanceUtils |
Método | Definido por | ||
---|---|---|---|
MessagePerformanceUtils(message:Object)
Constructor
Creates an MPUtils instance with information from the MPI headers
of the passed in message
| MessagePerformanceUtils | ||
Indica se um objeto tem uma propriedade especificada definida. | Object | ||
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | ||
Returns a summary of all information available in MPI. | MessagePerformanceUtils | ||
Indica se a propriedade especificada existe e é enumerável. | Object | ||
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | ||
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | ||
Retorna a representação de string do objeto especificado. | Object | ||
Retorna o valor primitivo do objeto especificado. | Object |
clientReceiveTime | propriedade |
clientReceiveTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the client received response message from the server.
Implementação
public function get clientReceiveTime():Number
messageSize | propriedade |
networkRTT | propriedade |
networkRTT:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get networkRTT():Number
originatingMessageSentTime | propriedade |
originatingMessageSentTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get originatingMessageSentTime():Number
originatingMessageSize | propriedade |
originatingMessageSize:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get originatingMessageSize():Number
pushedMessageFlag | propriedade |
pushedMessageFlag:Boolean
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get pushedMessageFlag():Boolean
pushOneWayTime | propriedade |
pushOneWayTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get pushOneWayTime():Number
responseMessageSize | propriedade |
responseMessageSize:int
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get responseMessageSize():int
serverAdapterExternalTime | propriedade |
serverAdapterExternalTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get serverAdapterExternalTime():Number
serverAdapterTime | propriedade |
serverAdapterTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get serverAdapterTime():Number
serverNonAdapterTime | propriedade |
serverNonAdapterTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Server processing time spent outside of the adapter associated with the destination of this message.
Implementação
public function get serverNonAdapterTime():Number
serverPollDelay | propriedade |
serverPollDelay:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get serverPollDelay():Number
serverPrePushTime | propriedade |
serverPrePushTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get serverPrePushTime():Number
serverProcessingTime | propriedade |
serverProcessingTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get serverProcessingTime():Number
serverSendTime | propriedade |
serverSendTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the server sent a response message back to the client.
Implementação
public function get serverSendTime():Number
totalPushTime | propriedade |
totalPushTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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.
Implementação
public function get totalPushTime():Number
totalTime | propriedade |
totalTime:Number
[somente leitura] Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Time between this client sending a message and receiving a response for it from the server
Implementação
public function get totalTime():Number
MessagePerformanceUtils | () | Construtor |
public function MessagePerformanceUtils(message:Object)
Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message
Parâmetrosmessage:Object — The message whose MPI headers will be used in retrieving
MPI information
|
prettyPrint | () | método |
public function prettyPrint():String
Versão da linguagem: | ActionScript 3.0 |
Versões de produto: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versões de runtime: | 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);Retorna
String — String containing a summary of all information available in MPI
|
Wed Jun 13 2018, 11:10 AM Z