Class AddressControlImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.activemq.artemis.core.management.impl.AbstractControl
-
- org.apache.activemq.artemis.core.management.impl.AddressControlImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,AddressControl
public class AddressControlImpl extends AbstractControl implements AddressControl
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager
-
Fields inherited from interface org.apache.activemq.artemis.api.core.management.AddressControl
ADDRESS_SIZE_DESCRIPTION, NUMBER_OF_PAGES_DESCRIPTION, ROUTED_MESSAGE_COUNT_DESCRIPTION, UNROUTED_MESSAGE_COUNT_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description AddressControlImpl(AddressInfo addressInfo, ActiveMQServer server, PagingManager pagingManager, StorageManager storageManager, HierarchicalRepository<Set<Role>> securityRepository, SecurityStore securityStore, ManagementService managementService)
-
Method Summary
-
Methods inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvoke
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
AddressControlImpl
public AddressControlImpl(AddressInfo addressInfo, ActiveMQServer server, PagingManager pagingManager, StorageManager storageManager, HierarchicalRepository<Set<Role>> securityRepository, SecurityStore securityStore, ManagementService managementService) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getAddress
public String getAddress()
- Specified by:
getAddressin interfaceAddressControl
-
getRoutingTypes
public String[] getRoutingTypes()
- Specified by:
getRoutingTypesin interfaceAddressControl
-
getRoutingTypesAsJSON
public String getRoutingTypesAsJSON() throws Exception
- Specified by:
getRoutingTypesAsJSONin interfaceAddressControl- Throws:
Exception
-
getRemoteQueueNames
public String[] getRemoteQueueNames()
- Specified by:
getRemoteQueueNamesin interfaceAddressControl
-
getQueueNames
public String[] getQueueNames()
- Specified by:
getQueueNamesin interfaceAddressControl
-
getAllQueueNames
public String[] getAllQueueNames()
- Specified by:
getAllQueueNamesin interfaceAddressControl
-
getBindingNames
public String[] getBindingNames() throws Exception
- Specified by:
getBindingNamesin interfaceAddressControl- Throws:
Exception
-
getRoles
public Object[] getRoles() throws Exception
- Specified by:
getRolesin interfaceAddressControl- Throws:
Exception
-
getRolesAsJSON
public String getRolesAsJSON() throws Exception
- Specified by:
getRolesAsJSONin interfaceAddressControl- Throws:
Exception
-
getNumberOfBytesPerPage
public long getNumberOfBytesPerPage() throws Exception- Specified by:
getNumberOfBytesPerPagein interfaceAddressControl- Throws:
Exception
-
getAddressSize
public long getAddressSize()
- Specified by:
getAddressSizein interfaceAddressControl
-
schedulePageCleanup
public void schedulePageCleanup() throws Exception- Specified by:
schedulePageCleanupin interfaceAddressControl- Throws:
Exception
-
getNumberOfMessages
@Deprecated public long getNumberOfMessages()
Deprecated.- Specified by:
getNumberOfMessagesin interfaceAddressControl
-
isPaging
public boolean isPaging() throws Exception- Specified by:
isPagingin interfaceAddressControl- Throws:
Exception
-
getAddressLimitPercent
public int getAddressLimitPercent() throws Exception- Specified by:
getAddressLimitPercentin interfaceAddressControl- Throws:
Exception
-
block
public boolean block()
- Specified by:
blockin interfaceAddressControl
-
unblock
public void unblock()
- Specified by:
unblockin interfaceAddressControl
-
getNumberOfPages
public long getNumberOfPages()
- Specified by:
getNumberOfPagesin interfaceAddressControl
-
getMessageCount
public long getMessageCount()
- Specified by:
getMessageCountin interfaceAddressControl
-
getRoutedMessageCount
public long getRoutedMessageCount()
- Specified by:
getRoutedMessageCountin interfaceAddressControl
-
getUnRoutedMessageCount
public long getUnRoutedMessageCount()
- Specified by:
getUnRoutedMessageCountin interfaceAddressControl
-
sendMessage
public String sendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password) throws Exception
- Specified by:
sendMessagein interfaceAddressControl- Throws:
Exception
-
sendMessage
public String sendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password, boolean createMessageId) throws Exception
- Specified by:
sendMessagein interfaceAddressControl- Throws:
Exception
-
fillMBeanOperationInfo
protected MBeanOperationInfo[] fillMBeanOperationInfo()
- Specified by:
fillMBeanOperationInfoin classAbstractControl
-
fillMBeanAttributeInfo
protected MBeanAttributeInfo[] fillMBeanAttributeInfo()
- Specified by:
fillMBeanAttributeInfoin classAbstractControl
-
pause
public void pause()
- Specified by:
pausein interfaceAddressControl
-
pause
public void pause(boolean persist)
- Specified by:
pausein interfaceAddressControl
-
resume
public void resume()
- Specified by:
resumein interfaceAddressControl
-
isPaused
public boolean isPaused()
- Specified by:
isPausedin interfaceAddressControl
-
isRetroactiveResource
public boolean isRetroactiveResource()
- Specified by:
isRetroactiveResourcein interfaceAddressControl
-
getCurrentDuplicateIdCacheSize
public long getCurrentDuplicateIdCacheSize()
- Specified by:
getCurrentDuplicateIdCacheSizein interfaceAddressControl
-
clearDuplicateIdCache
public boolean clearDuplicateIdCache()
- Specified by:
clearDuplicateIdCachein interfaceAddressControl
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreatedin interfaceAddressControl
-
isInternal
public boolean isInternal()
- Specified by:
isInternalin interfaceAddressControl
-
isTemporary
public boolean isTemporary()
- Specified by:
isTemporaryin interfaceAddressControl
-
purge
public long purge() throws Exception- Specified by:
purgein interfaceAddressControl- Throws:
Exception
-
replay
public void replay(String target, String filter) throws Exception
- Specified by:
replayin interfaceAddressControl- Throws:
Exception
-
-