public final class ManagementHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
getResult(ICoreMessage message)
Returns the result of an operation invocation or an attribute value.
|
static Object |
getResult(ICoreMessage message,
Class desiredType)
Returns the result of an operation invocation or an attribute value.
|
static Object[] |
getResults(ICoreMessage 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(ICoreMessage message,
String resourceName,
String attribute)
Stores a resource attribute in a message to retrieve the value from the server resource.
|
static void |
putOperationInvocation(ICoreMessage message,
String resourceName,
String operationName)
Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
|
static void |
putOperationInvocation(ICoreMessage message,
String resourceName,
String operationName,
Object... parameters)
Stores an operation invocation in a message to invoke the corresponding operation the value from the server resource.
|
static Object[] |
retrieveOperationParameters(Message message)
Used by ActiveMQ Artemis management service.
|
static void |
storeResult(CoreMessage message,
Object result)
Used by ActiveMQ Artemis management service.
|
public static final SimpleString HDR_RESOURCE_NAME
public static final SimpleString HDR_ATTRIBUTE
public static final SimpleString HDR_OPERATION_NAME
public static final SimpleString HDR_OPERATION_SUCCEEDED
public static final SimpleString HDR_NOTIFICATION_TYPE
public static final SimpleString HDR_NOTIFICATION_TIMESTAMP
public static final SimpleString HDR_ROUTING_NAME
public static final SimpleString HDR_CLUSTER_NAME
public static final SimpleString HDR_ADDRESS
public static final SimpleString HDR_ROUTING_TYPE
public static final SimpleString HDR_BINDING_ID
public static final SimpleString HDR_BINDING_TYPE
public static final SimpleString HDR_FILTERSTRING
public static final SimpleString HDR_DISTANCE
public static final SimpleString HDR_CONSUMER_COUNT
public static final SimpleString HDR_USER
public static final SimpleString HDR_VALIDATED_USER
public static final SimpleString HDR_CERT_SUBJECT_DN
public static final SimpleString HDR_CHECK_TYPE
public static final SimpleString HDR_SESSION_NAME
public static final SimpleString HDR_REMOTE_ADDRESS
public static final SimpleString HDR_PROPOSAL_GROUP_ID
public static final SimpleString HDR_PROPOSAL_VALUE
public static final SimpleString HDR_PROPOSAL_ALT_VALUE
public static final SimpleString HDR_CONSUMER_NAME
public static final SimpleString HDR_CONNECTION_NAME
public static final SimpleString HDR_MESSAGE_ID
public static final SimpleString HDR_PROTOCOL_NAME
public static final SimpleString HDR_CLIENT_ID
public static void putAttribute(ICoreMessage message, String resourceName, String attribute)
message
- messageresourceName
- the name of the resourceattribute
- the name of the attributeResourceNames
public static void putOperationInvocation(ICoreMessage message, String resourceName, String operationName) throws Exception
message
- messageresourceName
- the name of the resourceoperationName
- the name of the operation to invoke on the resourceException
ResourceNames
public static void putOperationInvocation(ICoreMessage message, String resourceName, String operationName, Object... parameters) throws Exception
message
- 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 resourceException
ResourceNames
public static Object[] retrieveOperationParameters(Message message) throws Exception
Exception
public static boolean isOperationResult(Message message)
public static boolean isAttributesResult(Message message)
public static void storeResult(CoreMessage message, Object result) throws Exception
Exception
public static Object[] getResults(ICoreMessage 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(ICoreMessage 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(ICoreMessage message, Class desiredType) throws Exception
hasOperationSucceeded(Message)
will return false
.
and the result will be a String corresponding to the server exception.Exception
public static boolean hasOperationSucceeded(Message message)
Copyright © 2021 JBoss by Red Hat. All rights reserved.