Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.messaging.messages 

MessagePerformanceUtils  - AS3 BlazeDS LCDS

Paquetemx.messaging.messages
Clasepublic class MessagePerformanceUtils
HerenciaMessagePerformanceUtils Inheritance Object

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The MessagePerformanceUtils utility class is used to retrieve various metrics about the sizing and timing of a message sent from a client to the server and its response message, as well as pushed messages from the server to the client. Metrics are gathered when corresponding properties on the channel used are enabled: <record-message-times> denotes capturing of timing information, <record-message-sizes> denotes capturing of sizing information.

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);
     



Propiedades públicas
 PropiedadDefinido por
  clientReceiveTime : Number
[solo lectura] Timestamp in milliseconds since epoch of when the client received response message from the server.
MessagePerformanceUtils
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
  messageSize : int
[solo lectura] The size of the original client message as measured during deserialization by the server endpoint.
MessagePerformanceUtils
  networkRTT : Number
[solo lectura] 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
[solo lectura] 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
[solo lectura] Only populated in the case of a pushed message, size in Bytes of the message that originally caused this pushed message.
MessagePerformanceUtils
  pushedMessageFlag : Boolean
[solo lectura] 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
[solo lectura] 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
[solo lectura] The size of the response message sent to the client by the server as measured during serialization at the server endpoint.
MessagePerformanceUtils
  serverAdapterExternalTime : Number
[solo lectura] 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
[solo lectura] 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
[solo lectura] Server processing time spent outside of the adapter associated with the destination of this message.
MessagePerformanceUtils
  serverPollDelay : Number
[solo lectura] 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
[solo lectura] 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
[solo lectura] 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
[solo lectura] Timestamp in milliseconds since epoch of when the server sent a response message back to the client.
MessagePerformanceUtils
  totalPushTime : Number
[solo lectura] 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
[solo lectura] Time between this client sending a message and receiving a response for it from the server
MessagePerformanceUtils
Métodos públicos
 MétodoDefinido por
  
Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message
MessagePerformanceUtils
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
  
Returns a summary of all information available in MPI.
MessagePerformanceUtils
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
Devuelve el valor simple del objeto especificado.
Object
Información sobre propiedades

clientReceiveTime

propiedad
clientReceiveTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Timestamp in milliseconds since epoch of when the client received response message from the server.



Implementación
    public function get clientReceiveTime():Number

messageSize

propiedad 
messageSize:int  [solo lectura]

The size of the original client message as measured during deserialization by the server endpoint.



Implementación
    public function get messageSize():int

networkRTT

propiedad 
networkRTT:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get networkRTT():Number

originatingMessageSentTime

propiedad 
originatingMessageSentTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get originatingMessageSentTime():Number

originatingMessageSize

propiedad 
originatingMessageSize:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get originatingMessageSize():Number

pushedMessageFlag

propiedad 
pushedMessageFlag:Boolean  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get pushedMessageFlag():Boolean

pushOneWayTime

propiedad 
pushOneWayTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get pushOneWayTime():Number

responseMessageSize

propiedad 
responseMessageSize:int  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get responseMessageSize():int

serverAdapterExternalTime

propiedad 
serverAdapterExternalTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get serverAdapterExternalTime():Number

serverAdapterTime

propiedad 
serverAdapterTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get serverAdapterTime():Number

serverNonAdapterTime

propiedad 
serverNonAdapterTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Server processing time spent outside of the adapter associated with the destination of this message.



Implementación
    public function get serverNonAdapterTime():Number

serverPollDelay

propiedad 
serverPollDelay:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get serverPollDelay():Number

serverPrePushTime

propiedad 
serverPrePushTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get serverPrePushTime():Number

serverProcessingTime

propiedad 
serverProcessingTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get serverProcessingTime():Number

serverSendTime

propiedad 
serverSendTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Timestamp in milliseconds since epoch of when the server sent a response message back to the client.



Implementación
    public function get serverSendTime():Number

totalPushTime

propiedad 
totalPushTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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.



Implementación
    public function get totalPushTime():Number

totalTime

propiedad 
totalTime:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Time between this client sending a message and receiving a response for it from the server



Implementación
    public function get totalTime():Number
Información sobre constructores

MessagePerformanceUtils

()Información sobre
public function MessagePerformanceUtils(message:Object)

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message

Parámetros
message:Object — The message whose MPI headers will be used in retrieving MPI information
Información sobre métodos

prettyPrint

()método
public function prettyPrint():String

Versión del lenguaje: ActionScript 3.0
Versiones de producto: BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3
Versiones de motor de ejecución: 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);
         

Valor devuelto
String — String containing a summary of all information available in MPI




[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.