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()booleanopen()voidprotected static voidsetBooleanResult(ClientMessage m, AtomicBoolean result) protected static voidsetIntResult(ClientMessage m, AtomicInteger result) protected static voidsetLongResult(ClientMessage m, AtomicLong result) 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
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getCurrentTimeMillis
- Throws:
Exception
-
isReplicaSync
- Throws:
Exception
-
rebuildPageCounters
- Throws:
Exception
-
simpleManagement
public String simpleManagement(String resource, String method, Object... parameters) throws Exception Simple helper for management returning a string.- Throws:
Exception
-
simpleManagementLong
public long simpleManagementLong(String resource, String method, Object... parameters) throws Exception Simple helper for management returning a long.- Throws:
Exception
-
simpleManagementBoolean
public boolean simpleManagementBoolean(String resource, String method, Object... parameters) throws Exception Simple helper for management returning a long.- Throws:
Exception
-
simpleManagementVoid
public void simpleManagementVoid(String resource, String method, Object... parameters) throws Exception Simple helper for management void calls.- Throws:
Exception
-
simpleManagementInt
public int simpleManagementInt(String resource, String method, Object... parameters) throws Exception - Throws:
Exception
-
getMessageCountOnQueue
- Throws:
Exception
-
getMessageAddedOnQueue
- Throws:
Exception
-
getDeliveringCountOnQueue
- Throws:
Exception
-
getNumberOfConsumersOnQueue
- Throws:
Exception
-
getMessagesAddedOnQueue
- Throws:
Exception
-
getQueueCounts
- Throws:
Exception
-
getNodeID
- Throws:
Exception
-
listNetworkTopology
- Throws:
Exception
-
failed
- Throws:
Exception
-
setupCall
protected static void setupCall(ClientMessage m, String resource, String methodName, Object... parameters) throws Exception - Throws:
Exception
-
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
-