Package org.jppf.jmxremote.message
Class JMXRequest
java.lang.Object
org.jppf.jmxremote.message.JMXRequest
- All Implemented Interfaces:
Serializable,JMXMessage
A specialized message that represents a request to the server.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJMXRequest(long messageID, byte requestType, Object... params) Initialize this request with the specified ID, request type and parameters. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the id of this message.byteObject[]voidsetResponse(JMXResponse response) Set the response to this reqquest.toString()
-
Constructor Details
-
JMXRequest
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
- Returns:
- the request's parameters.
-
getResponse
- Returns:
- the response to this reqquest.
-
setResponse
Set the response to this reqquest.- Parameters:
response- aJMXResponseobject.
-
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.
-