Class JMXRequest

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

public class JMXRequest extends Object
A specialized message that represents a request to the server.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • JMXRequest

      public JMXRequest(long messageID, byte requestType, Object... params)
      Initialize this request with the specified ID, request type and parameters.
      Parameters:
      messageID - the message id.
      requestType - the type of request.
      params - the request's parameters.
  • Method Details

    • getParams

      public Object[] getParams()
      Returns:
      the request's parameters.
    • getResponse

      public JMXResponse getResponse()
      Returns:
      the response to this reqquest.
    • setResponse

      public void setResponse(JMXResponse response)
      Set the response to this reqquest.
      Parameters:
      response - a JMXResponse object.
    • 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.