Class SimpleManagement
java.lang.Object
org.apache.activemq.artemis.api.core.management.SimpleManagement
- All Implemented Interfaces:
AutoCloseable
This class provides a simple proxy for management operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voiddoManagement(ManagementHelper.MessageAcceptor setup, ManagementHelper.MessageAcceptor ok, ManagementHelper.MessageAcceptor failed) protected static voidfailed(ClientMessage message) longintgetDeliveringCountOnQueue(String queueName) longgetMessageAddedOnQueue(String queueName) longgetMessageCountOnQueue(String queueName) longgetMessagesAddedOnQueue(String queueName) intgetNumberOfConsumersOnQueue(String queueName) getQueueCounts(int maxRows) getUri()booleanorg.apache.activemq.artemis.json.JsonArrayopen()voidprotected static voidsetBooleanResult(ClientMessage m, AtomicBoolean result) protected static voidsetIntResult(ClientMessage m, AtomicInteger result) protected static voidsetLongResult(ClientMessage m, AtomicLong result) voidsetSession(ClientSession session) it will inject the session used by SimpleManagement. beware that if you callclose()the session passed here will be closed as well.protected static voidsetStringResult(ClientMessage m, AtomicReference<String> result) protected static voidsetupCall(ClientMessage m, String resource, String methodName, Object... parameters) simpleManagement(String resource, String method, Object... parameters) Simple helper for management returning a string.booleansimpleManagementBoolean(String resource, String method, Object... parameters) Simple helper for management returning a long.intsimpleManagementInt(String resource, String method, Object... parameters) longsimpleManagementLong(String resource, String method, Object... parameters) Simple helper for management returning a long.voidsimpleManagementVoid(String resource, String method, Object... parameters) Simple helper for management void calls.
-
Constructor Details
-
SimpleManagement
-
-
Method Details
-
open
- Throws:
Exception
-
getUri
-
setSession
it will inject the session used by SimpleManagement. beware that if you callclose()the session passed here will be closed as well. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getCurrentTimeMillis
-
isReplicaSync
-
rebuildPageCounters
-
simpleManagement
-
simpleManagementLong
-
simpleManagementBoolean
-
simpleManagementVoid
-
simpleManagementInt
-
getMessageCountOnQueue
-
getMessageAddedOnQueue
-
getDeliveringCountOnQueue
-
getNumberOfConsumersOnQueue
-
getMessagesAddedOnQueue
-
getQueueCounts
-
getNodeID
-
listNetworkTopology
-
failed
- Throws:
Exception
-
setupCall
-
setStringResult
protected static void setStringResult(ClientMessage m, AtomicReference<String> result) throws Exception - Throws:
Exception
-
setLongResult
- Throws:
Exception
-
setBooleanResult
- Throws:
Exception
-
setIntResult
- Throws:
Exception
-
doManagement
protected void doManagement(ManagementHelper.MessageAcceptor setup, ManagementHelper.MessageAcceptor ok, ManagementHelper.MessageAcceptor failed) throws Exception - Throws:
Exception
-