Class ObjectNameBuilder
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.management.ObjectNameBuilder
-
public final class ObjectNameBuilder extends Object
Helper class to build ObjectNames for ActiveMQ Artemis resources.
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectNameBuilderDEFAULTDefault JMX domain for ActiveMQ Artemis resources.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectNameBuildercreate(String domain)static ObjectNameBuildercreate(String domain, String brokerName)static ObjectNameBuildercreate(String domain, String brokerName, boolean jmxUseBrokerName)ObjectNamegetAcceptorObjectName(String name)Returns the ObjectName used by AcceptorControl.ObjectNamegetActiveMQServerObjectName()Returns the ObjectName used by the singleActiveMQServerControl.ObjectNamegetAddressObjectName(SimpleString address)Returns the ObjectName used by AddressControl.ObjectNamegetBridgeObjectName(String name)Returns the ObjectName used by BridgeControl.ObjectNamegetBroadcastGroupObjectName(String name)Returns the ObjectName used by BroadcastGroupControl.ObjectNamegetClusterConnectionObjectName(String name)Returns the ObjectName used by ClusterConnectionControl.ObjectNamegetConnectionRouterObjectName(String name)Returns the ObjectName used by ConnectionRouterControl.ObjectNamegetDivertObjectName(String name, String address)Returns the ObjectName used by DivertControl.ObjectNamegetManagementContextObjectName()ObjectNamegetQueueObjectName(SimpleString address, SimpleString name, RoutingType routingType)Returns the ObjectName used by QueueControl.
-
-
-
Field Detail
-
DEFAULT
public static final ObjectNameBuilder DEFAULT
Default JMX domain for ActiveMQ Artemis resources.
-
-
Method Detail
-
create
public static ObjectNameBuilder create(String domain)
-
create
public static ObjectNameBuilder create(String domain, String brokerName)
-
create
public static ObjectNameBuilder create(String domain, String brokerName, boolean jmxUseBrokerName)
-
getActiveMQServerObjectName
public ObjectName getActiveMQServerObjectName() throws Exception
Returns the ObjectName used by the singleActiveMQServerControl.- Throws:
Exception
-
getAddressObjectName
public ObjectName getAddressObjectName(SimpleString address) throws Exception
Returns the ObjectName used by AddressControl.- Throws:
Exception- See Also:
AddressControl
-
getQueueObjectName
public ObjectName getQueueObjectName(SimpleString address, SimpleString name, RoutingType routingType) throws Exception
Returns the ObjectName used by QueueControl.- Throws:
Exception- See Also:
QueueControl
-
getDivertObjectName
public ObjectName getDivertObjectName(String name, String address) throws Exception
Returns the ObjectName used by DivertControl.- Throws:
Exception- See Also:
DivertControl
-
getAcceptorObjectName
public ObjectName getAcceptorObjectName(String name) throws Exception
Returns the ObjectName used by AcceptorControl.- Throws:
Exception- See Also:
AcceptorControl
-
getBroadcastGroupObjectName
public ObjectName getBroadcastGroupObjectName(String name) throws Exception
Returns the ObjectName used by BroadcastGroupControl.- Throws:
Exception- See Also:
BroadcastGroupControl
-
getBridgeObjectName
public ObjectName getBridgeObjectName(String name) throws Exception
Returns the ObjectName used by BridgeControl.- Throws:
Exception- See Also:
BridgeControl
-
getClusterConnectionObjectName
public ObjectName getClusterConnectionObjectName(String name) throws Exception
Returns the ObjectName used by ClusterConnectionControl.- Throws:
Exception- See Also:
ClusterConnectionControl
-
getConnectionRouterObjectName
public ObjectName getConnectionRouterObjectName(String name) throws Exception
Returns the ObjectName used by ConnectionRouterControl.- Throws:
Exception- See Also:
ConnectionRouterControl
-
getManagementContextObjectName
public ObjectName getManagementContextObjectName() throws Exception
- Throws:
Exception
-
-