Class JMXResponse

java.lang.Object
org.jppf.jmxremote.message.JMXResponse
All Implemented Interfaces:
Serializable, JMXMessage

public class JMXResponse extends Object
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 Details

    • JMXResponse

      public JMXResponse(JMXMessage message, Object result, boolean isException)
      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

      public Object getResult()
      Returns:
      the request's parameters.
    • getException

      public Exception getException()
      Returns:
      an exception eventually raised when performing the request.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMessageID

      public long getMessageID()
      Description copied from interface: JMXMessage
      Get the id of this message.
      Specified by:
      getMessageID in interface JMXMessage
      Returns:
      the message ID.
    • getMessageType

      public byte getMessageType()
      Specified by:
      getMessageType in interface JMXMessage
      Returns:
      the type of request/response/notification to send.