패키지 | mx.messaging.messages |
클래스 | public class MessagePerformanceUtils |
상속 | MessagePerformanceUtils Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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);
속성 | 정의 주체 | ||
---|---|---|---|
clientReceiveTime : Number [읽기 전용]
Timestamp in milliseconds since epoch of when the client received response message from
the server. | MessagePerformanceUtils | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
messageSize : int [읽기 전용]
The size of the original client message as measured during deserialization by the server
endpoint. | MessagePerformanceUtils | ||
networkRTT : Number [읽기 전용]
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 [읽기 전용]
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 [읽기 전용]
Only populated in the case of a pushed message, size in Bytes of the message that originally
caused this pushed message. | MessagePerformanceUtils | ||
pushedMessageFlag : Boolean [읽기 전용]
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 [읽기 전용]
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 [읽기 전용]
The size of the response message sent to the client by the server as measured during serialization
at the server endpoint. | MessagePerformanceUtils | ||
serverAdapterExternalTime : Number [읽기 전용]
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 [읽기 전용]
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 [읽기 전용]
Server processing time spent outside of the adapter associated with the destination of this message. | MessagePerformanceUtils | ||
serverPollDelay : Number [읽기 전용]
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 [읽기 전용]
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 [읽기 전용]
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 [읽기 전용]
Timestamp in milliseconds since epoch of when the server sent a response message back
to the client. | MessagePerformanceUtils | ||
totalPushTime : Number [읽기 전용]
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 [읽기 전용]
Time between this client sending a message and receiving a response
for it from the server
| MessagePerformanceUtils |
메서드 | 정의 주체 | ||
---|---|---|---|
MessagePerformanceUtils(message:Object)
Constructor
Creates an MPUtils instance with information from the MPI headers
of the passed in message
| MessagePerformanceUtils | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
Returns a summary of all information available in MPI. | MessagePerformanceUtils | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
clientReceiveTime | 속성 |
clientReceiveTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the client received response message from the server.
구현
public function get clientReceiveTime():Number
messageSize | 속성 |
networkRTT | 속성 |
networkRTT:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get networkRTT():Number
originatingMessageSentTime | 속성 |
originatingMessageSentTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get originatingMessageSentTime():Number
originatingMessageSize | 속성 |
originatingMessageSize:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get originatingMessageSize():Number
pushedMessageFlag | 속성 |
pushedMessageFlag:Boolean
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get pushedMessageFlag():Boolean
pushOneWayTime | 속성 |
pushOneWayTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get pushOneWayTime():Number
responseMessageSize | 속성 |
responseMessageSize:int
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get responseMessageSize():int
serverAdapterExternalTime | 속성 |
serverAdapterExternalTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get serverAdapterExternalTime():Number
serverAdapterTime | 속성 |
serverAdapterTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get serverAdapterTime():Number
serverNonAdapterTime | 속성 |
serverNonAdapterTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Server processing time spent outside of the adapter associated with the destination of this message.
구현
public function get serverNonAdapterTime():Number
serverPollDelay | 속성 |
serverPollDelay:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get serverPollDelay():Number
serverPrePushTime | 속성 |
serverPrePushTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get serverPrePushTime():Number
serverProcessingTime | 속성 |
serverProcessingTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get serverProcessingTime():Number
serverSendTime | 속성 |
serverSendTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Timestamp in milliseconds since epoch of when the server sent a response message back to the client.
구현
public function get serverSendTime():Number
totalPushTime | 속성 |
totalPushTime:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
구현
public function get totalPushTime():Number
totalTime | 속성 |
MessagePerformanceUtils | () | 생성자 |
public function MessagePerformanceUtils(message:Object)
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor Creates an MPUtils instance with information from the MPI headers of the passed in message
매개 변수message:Object — The message whose MPI headers will be used in retrieving
MPI information
|
prettyPrint | () | 메서드 |
public function prettyPrint():String
언어 버전: | ActionScript 3.0 |
제품 버전: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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);반환값
String — String containing a summary of all information available in MPI
|
Tue Jun 12 2018, 03:17 PM Z