Package org.jppf.jmxremote.message
Class JMXResponse
java.lang.Object
org.jppf.jmxremote.message.JMXResponse
- All Implemented Interfaces:
Serializable,JMXMessage
A specialized message that represents a repsponse to a previous request.
The correlation between request and response is realized via the
messageID.- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJMXResponse(JMXMessage message, Object result, boolean isException) Initialize this request with the ID and request type of the specified message. -
Method Summary
-
Constructor Details
-
JMXResponse
Initialize this request with the ID and request type of the specified message.- Parameters:
message- the message from which to extract the message id and message type.result- the request's result.isException- whether the result is an exception or a normal result.
-
-
Method Details
-
getResult
- Returns:
- the request's parameters.
-
getException
- Returns:
- an exception eventually raised when performing the request.
-
toString
-
getMessageID
public long getMessageID()Description copied from interface:JMXMessageGet the id of this message.- Specified by:
getMessageIDin interfaceJMXMessage- Returns:
- the message ID.
-
getMessageType
public byte getMessageType()- Specified by:
getMessageTypein interfaceJMXMessage- Returns:
- the type of request/response/notification to send.
-