|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hornetq.api.jms.management.JMSManagementHelper
public class JMSManagementHelper
Helper class to use JMS messages to manage HornetQ server resources.
Method Summary | |
---|---|
static Object |
getResult(javax.jms.Message message)
Returns the result of an operation invocation or an attribute value. |
static Object[] |
getResults(javax.jms.Message message)
Returns the result of an operation invocation or an attribute value. |
static boolean |
hasOperationSucceeded(javax.jms.Message message)
Returns whether the invocation of the management operation on the server resource succeeded. |
static boolean |
isAttributesResult(javax.jms.Message message)
Returns whether the JMS message corresponds to the result of a management attribute value. |
static boolean |
isOperationResult(javax.jms.Message message)
Returns whether the JMS message corresponds to the result of a management operation invocation. |
static void |
putAttribute(javax.jms.Message message,
String resourceName,
String attribute)
Stores a resource attribute in a JMS message to retrieve the value from the server resource. |
static void |
putOperationInvocation(javax.jms.Message message,
String resourceName,
String operationName)
Stores a operation invocation in a JMS message to invoke the corresponding operation the value from the server resource. |
static void |
putOperationInvocation(javax.jms.Message message,
String resourceName,
String operationName,
Object... parameters)
Stores a operation invocation in a JMS message to invoke the corresponding operation the value from the server resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void putAttribute(javax.jms.Message message, String resourceName, String attribute) throws javax.jms.JMSException
message
- JMS messageresourceName
- the name of the resourceattribute
- the name of the attribute
javax.jms.JMSException
- if an exception occurs while putting the information in the messageResourceNames
public static void putOperationInvocation(javax.jms.Message message, String resourceName, String operationName) throws javax.jms.JMSException
message
- JMS messageresourceName
- the name of the resourceoperationName
- the name of the operation to invoke on the resource
javax.jms.JMSException
- if an exception occurs while putting the information in the messageResourceNames
public static void putOperationInvocation(javax.jms.Message message, String resourceName, String operationName, Object... parameters) throws javax.jms.JMSException
message
- JMS messageresourceName
- the name of the server resourceoperationName
- the name of the operation to invoke on the server resourceparameters
- the parameters to use to invoke the server resource
javax.jms.JMSException
- if an exception occurs while putting the information in the messageResourceNames
public static boolean isOperationResult(javax.jms.Message message) throws javax.jms.JMSException
javax.jms.JMSException
public static boolean isAttributesResult(javax.jms.Message message) throws javax.jms.JMSException
javax.jms.JMSException
public static boolean hasOperationSucceeded(javax.jms.Message message) throws javax.jms.JMSException
javax.jms.JMSException
public static Object[] getResults(javax.jms.Message message) throws Exception
hasOperationSucceeded(Message)
will return false
.
and the result will be a String corresponding to the server exception.
Exception
public static Object getResult(javax.jms.Message message) throws Exception
hasOperationSucceeded(Message)
will return false
.
and the result will be a String corresponding to the server exception.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |