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 TypeMethodDescriptionvoid
close()
protected void
doManagement
(ManagementHelper.MessageAcceptor setup, ManagementHelper.MessageAcceptor ok, ManagementHelper.MessageAcceptor failed) protected static void
failed
(ClientMessage message) long
int
getDeliveringCountOnQueue
(String queueName) long
getMessageAddedOnQueue
(String queueName) long
getMessageCountOnQueue
(String queueName) long
getMessagesAddedOnQueue
(String queueName) int
getNumberOfConsumersOnQueue
(String queueName) getQueueCounts
(int maxRows) getUri()
boolean
org.apache.activemq.artemis.json.JsonArray
open()
void
protected static void
setBooleanResult
(ClientMessage m, AtomicBoolean result) protected static void
setIntResult
(ClientMessage m, AtomicInteger result) protected static void
setLongResult
(ClientMessage m, AtomicLong result) protected static void
setStringResult
(ClientMessage m, AtomicReference<String> result) protected static void
setupCall
(ClientMessage m, String resource, String methodName, Object... parameters) simpleManagement
(String resource, String method, Object... parameters) Simple helper for management returning a string.boolean
simpleManagementBoolean
(String resource, String method, Object... parameters) Simple helper for management returning a long.int
simpleManagementInt
(String resource, String method, Object... parameters) long
simpleManagementLong
(String resource, String method, Object... parameters) Simple helper for management returning a long.void
simpleManagementVoid
(String resource, String method, Object... parameters) Simple helper for management void calls.
-
Constructor Details
-
SimpleManagement
-
-
Method Details
-
open
- Throws:
Exception
-
getUri
-
close
- Specified by:
close
in 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
-