public class JMSManagementHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
getResult(Message message)
Returns the result of an operation invocation or an attribute value.
|
static Object[] |
getResults(Message message)
Returns the result of an operation invocation or an attribute value.
|
static boolean |
hasOperationSucceeded(Message message)
Returns whether the invocation of the management operation on the server resource succeeded.
|
static boolean |
isAttributesResult(Message message)
Returns whether the JMS message corresponds to the result of a management attribute value.
|
static boolean |
isOperationResult(Message message)
Returns whether the JMS message corresponds to the result of a management operation invocation.
|
static void |
putAttribute(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(Message message,
String resourceName,
String operationName)
Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.
|
static void |
putOperationInvocation(Message message,
String resourceName,
String operationName,
Object... parameters)
Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.
|
public static void putAttribute(Message message, String resourceName, String attribute) throws JMSException
message
- JMS messageresourceName
- the name of the resourceattribute
- the name of the attributeJMSException
- if an exception occurs while putting the information in the messageResourceNames
public static void putOperationInvocation(Message message, String resourceName, String operationName) throws JMSException
message
- JMS messageresourceName
- the name of the resourceoperationName
- the name of the operation to invoke on the resourceJMSException
- if an exception occurs while putting the information in the messageResourceNames
public static void putOperationInvocation(Message message, String resourceName, String operationName, Object... parameters) throws 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 resourceJMSException
- if an exception occurs while putting the information in the messageResourceNames
public static boolean isOperationResult(Message message) throws JMSException
JMSException
public static boolean isAttributesResult(Message message) throws JMSException
JMSException
public static boolean hasOperationSucceeded(Message message) throws JMSException
JMSException
public static Object[] getResults(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(Message message) throws Exception
hasOperationSucceeded(Message)
will return false
.
and the result will be a String corresponding to the server exception.Exception
Copyright © 2016 JBoss by Red Hat. All rights reserved.