Paket | mx.messaging.messages |
Sınıf | public class MessagePerformanceUtils |
Miras Alma | MessagePerformanceUtils Object |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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);
Özellik | Tanımlayan: | ||
---|---|---|---|
clientReceiveTime : Number [salt okunur]
Timestamp in milliseconds since epoch of when the client received response message from
the server. | MessagePerformanceUtils | ||
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | ||
messageSize : int [salt okunur]
The size of the original client message as measured during deserialization by the server
endpoint. | MessagePerformanceUtils | ||
networkRTT : Number [salt okunur]
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 [salt okunur]
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 [salt okunur]
Only populated in the case of a pushed message, size in Bytes of the message that originally
caused this pushed message. | MessagePerformanceUtils | ||
pushedMessageFlag : Boolean [salt okunur]
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 [salt okunur]
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 [salt okunur]
The size of the response message sent to the client by the server as measured during serialization
at the server endpoint. | MessagePerformanceUtils | ||
serverAdapterExternalTime : Number [salt okunur]
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 [salt okunur]
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 [salt okunur]
Server processing time spent outside of the adapter associated with the destination of this message. | MessagePerformanceUtils | ||
serverPollDelay : Number [salt okunur]
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 [salt okunur]
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 [salt okunur]
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 [salt okunur]
Timestamp in milliseconds since epoch of when the server sent a response message back
to the client. | MessagePerformanceUtils | ||
totalPushTime : Number [salt okunur]
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 [salt okunur]
Time between this client sending a message and receiving a response
for it from the server
| MessagePerformanceUtils |
Yöntem | Tanımlayan: | ||
---|---|---|---|
MessagePerformanceUtils(message:Object)
Constructor
Creates an MPUtils instance with information from the MPI headers
of the passed in message
| MessagePerformanceUtils | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Returns a summary of all information available in MPI. | MessagePerformanceUtils | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
Belirtilen nesnenin temel değerini döndürür. | Object |
clientReceiveTime | özellik |
clientReceiveTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the client received response message from the server.
Uygulama
public function get clientReceiveTime():Number
messageSize | özellik |
networkRTT | özellik |
networkRTT:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get networkRTT():Number
originatingMessageSentTime | özellik |
originatingMessageSentTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get originatingMessageSentTime():Number
originatingMessageSize | özellik |
originatingMessageSize:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get originatingMessageSize():Number
pushedMessageFlag | özellik |
pushedMessageFlag:Boolean
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get pushedMessageFlag():Boolean
pushOneWayTime | özellik |
pushOneWayTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get pushOneWayTime():Number
responseMessageSize | özellik |
responseMessageSize:int
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get responseMessageSize():int
serverAdapterExternalTime | özellik |
serverAdapterExternalTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverAdapterExternalTime():Number
serverAdapterTime | özellik |
serverAdapterTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverAdapterTime():Number
serverNonAdapterTime | özellik |
serverNonAdapterTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Server processing time spent outside of the adapter associated with the destination of this message.
Uygulama
public function get serverNonAdapterTime():Number
serverPollDelay | özellik |
serverPollDelay:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverPollDelay():Number
serverPrePushTime | özellik |
serverPrePushTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverPrePushTime():Number
serverProcessingTime | özellik |
serverProcessingTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get serverProcessingTime():Number
serverSendTime | özellik |
serverSendTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the server sent a response message back to the client.
Uygulama
public function get serverSendTime():Number
totalPushTime | özellik |
totalPushTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get totalPushTime():Number
totalTime | özellik |
totalTime:Number
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Time between this client sending a message and receiving a response for it from the server
Uygulama
public function get totalTime():Number
MessagePerformanceUtils | () | Yapıcı |
public function MessagePerformanceUtils(message:Object)
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message
Parametrelermessage:Object — The message whose MPI headers will be used in retrieving
MPI information
|
prettyPrint | () | yöntem |
public function prettyPrint():String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümleri: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | 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);Döndürür
String — String containing a summary of all information available in MPI
|
Tue Jun 12 2018, 01:09 PM Z