public class AddressControlImpl extends AbstractControl implements AddressControl
storageManager
ADDRESS_SIZE_DESCRIPTION, NUMBER_OF_PAGES_DESCRIPTION, ROUTED_MESSAGE_COUNT_DESCRIPTION, UNROUTED_MESSAGE_COUNT_DESCRIPTION
Constructor and Description |
---|
AddressControlImpl(AddressInfo addressInfo,
ActiveMQServer server,
PagingManager pagingManager,
StorageManager storageManager,
HierarchicalRepository<Set<Role>> securityRepository,
SecurityStore securityStore,
ManagementService managementService) |
Modifier and Type | Method and Description |
---|---|
boolean |
clearDuplicateIdCache() |
protected MBeanAttributeInfo[] |
fillMBeanAttributeInfo() |
protected MBeanOperationInfo[] |
fillMBeanOperationInfo() |
String |
getAddress()
Returns the managed address.
|
long |
getAddressSize()
Returns the number of estimated bytes being used by all the queue(s) bound to this address; used to control paging and blocking.
|
String[] |
getAllQueueNames()
Returns the names of both the local and remote queue(s) bound to this address.
|
String[] |
getBindingNames()
Returns the names of all bindings (both queues and diverts) bound to this address
|
long |
getCurrentDuplicateIdCacheSize() |
long |
getMessageCount() |
long |
getNumberOfBytesPerPage()
Returns the number of bytes used by each page for this address.
|
long |
getNumberOfMessages()
Returns the sum of messages on queue(s), including messages in delivery.
|
int |
getNumberOfPages()
Returns the number of pages used by this address.
|
String[] |
getQueueNames()
Returns the names of the local queue(s) bound to this address.
|
String[] |
getRemoteQueueNames()
Returns the names of the remote queue(s) bound to this address.
|
Object[] |
getRoles()
Returns the roles (name and permissions) associated with this address.
|
String |
getRolesAsJSON()
Returns the roles (name and permissions) associated with this address
using JSON serialization.
|
long |
getRoutedMessageCount()
Returns the number of messages routed to one or more bindings
|
String[] |
getRoutingTypes() |
String |
getRoutingTypesAsJSON() |
long |
getUnRoutedMessageCount()
Returns the number of messages not routed to any bindings
|
boolean |
isPaging()
Returns whether this address is paging.
|
boolean |
isPaused() |
boolean |
isRetroactiveResource() |
void |
pause()
Pauses all the queues bound to this address.Messages are no longer delivered to all its bounded queues.
|
void |
pause(boolean persist)
Pauses all the queues bound to this address.Messages are no longer delivered to all its bounded queues.Newly added queue will be paused too until resume is called.
|
void |
resume()
Resume all the queues bound of this address.Messages are delivered again to all its bounded queues.
|
String |
sendMessage(Map<String,String> headers,
int type,
String body,
boolean durable,
String user,
String password) |
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvoke
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
public AddressControlImpl(AddressInfo addressInfo, ActiveMQServer server, PagingManager pagingManager, StorageManager storageManager, HierarchicalRepository<Set<Role>> securityRepository, SecurityStore securityStore, ManagementService managementService) throws Exception
Exception
public String getAddress()
AddressControl
getAddress
in interface AddressControl
public String[] getRoutingTypes()
getRoutingTypes
in interface AddressControl
public String getRoutingTypesAsJSON() throws Exception
getRoutingTypesAsJSON
in interface AddressControl
Exception
public String[] getRemoteQueueNames() throws Exception
AddressControl
getRemoteQueueNames
in interface AddressControl
Exception
public String[] getQueueNames() throws Exception
AddressControl
getQueueNames
in interface AddressControl
Exception
public String[] getAllQueueNames() throws Exception
AddressControl
getAllQueueNames
in interface AddressControl
Exception
public String[] getBindingNames() throws Exception
AddressControl
getBindingNames
in interface AddressControl
Exception
public Object[] getRoles() throws Exception
AddressControl
getRoles
in interface AddressControl
Exception
public String getRolesAsJSON() throws Exception
AddressControl
RoleInfo.from(String)
.getRolesAsJSON
in interface AddressControl
Exception
public long getNumberOfBytesPerPage() throws Exception
AddressControl
getNumberOfBytesPerPage
in interface AddressControl
Exception
public long getAddressSize()
AddressControl
getAddressSize
in interface AddressControl
public long getNumberOfMessages() throws Exception
AddressControl
getNumberOfMessages
in interface AddressControl
Exception
public boolean isPaging() throws Exception
AddressControl
isPaging
in interface AddressControl
Exception
public int getNumberOfPages()
AddressControl
getNumberOfPages
in interface AddressControl
public long getMessageCount()
getMessageCount
in interface AddressControl
public long getRoutedMessageCount()
AddressControl
getRoutedMessageCount
in interface AddressControl
public long getUnRoutedMessageCount()
AddressControl
getUnRoutedMessageCount
in interface AddressControl
public String sendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password) throws Exception
sendMessage
in interface AddressControl
headers
- the message headers and properties to set. Can only
container Strings maped to primitive types.body
- the text to sendpassword
- @returnException
protected MBeanOperationInfo[] fillMBeanOperationInfo()
fillMBeanOperationInfo
in class AbstractControl
protected MBeanAttributeInfo[] fillMBeanAttributeInfo()
fillMBeanAttributeInfo
in class AbstractControl
public void pause()
AddressControl
pause
in interface AddressControl
public void pause(boolean persist)
AddressControl
pause
in interface AddressControl
persist
- if true, the pause state will be persisted.public void resume()
AddressControl
resume
in interface AddressControl
public boolean isPaused()
isPaused
in interface AddressControl
public boolean isRetroactiveResource()
isRetroactiveResource
in interface AddressControl
public long getCurrentDuplicateIdCacheSize()
getCurrentDuplicateIdCacheSize
in interface AddressControl
public boolean clearDuplicateIdCache()
clearDuplicateIdCache
in interface AddressControl
Copyright © 2021 JBoss by Red Hat. All rights reserved.