public class AddressControlImpl extends AbstractControl implements AddressControl
storageManager| Constructor and Description |
|---|
AddressControlImpl(AddressInfo addressInfo,
PostOffice postOffice,
PagingManager pagingManager,
StorageManager storageManager,
HierarchicalRepository<Set<Role>> securityRepository,
SecurityStore securityStore,
ManagementService managementService) |
| Modifier and Type | Method and Description |
|---|---|
protected MBeanAttributeInfo[] |
fillMBeanAttributeInfo() |
protected MBeanOperationInfo[] |
fillMBeanOperationInfo() |
String |
getAddress()
Returns the managed address.
|
long |
getAddressSize()
Returns the number of estimated bytes being used by the queue(s), used to control paging and blocking.
|
String[] |
getBindingNames()
Returns the names of all bindings (both queues and diverts) bound to this address
|
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 queues 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.
|
String[] |
getRoutingTypes() |
String |
getRoutingTypesAsJSON() |
boolean |
isPaging()
Returns whether this address is paging.
|
String |
sendMessage(Map<String,String> headers,
int type,
String body,
boolean durable,
String user,
String password) |
blockOnIO, clearIO, getMBeanInfocacheMBeanInfo, 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, setImplementationpublic AddressControlImpl(AddressInfo addressInfo, PostOffice postOffice, PagingManager pagingManager, StorageManager storageManager, HierarchicalRepository<Set<Role>> securityRepository, SecurityStore securityStore, ManagementService managementService) throws Exception
Exceptionpublic String getAddress()
AddressControlgetAddress in interface AddressControlpublic String[] getRoutingTypes()
getRoutingTypes in interface AddressControlpublic String getRoutingTypesAsJSON() throws Exception
getRoutingTypesAsJSON in interface AddressControlExceptionpublic String[] getQueueNames() throws Exception
AddressControlgetQueueNames in interface AddressControlExceptionpublic String[] getBindingNames() throws Exception
AddressControlgetBindingNames in interface AddressControlExceptionpublic Object[] getRoles() throws Exception
AddressControlgetRoles in interface AddressControlExceptionpublic String getRolesAsJSON() throws Exception
AddressControlRoleInfo.from(String).getRolesAsJSON in interface AddressControlExceptionpublic long getNumberOfBytesPerPage()
throws Exception
AddressControlgetNumberOfBytesPerPage in interface AddressControlExceptionpublic long getAddressSize()
throws Exception
AddressControlgetAddressSize in interface AddressControlExceptionpublic long getNumberOfMessages()
throws Exception
AddressControlgetNumberOfMessages in interface AddressControlExceptionpublic boolean isPaging()
throws Exception
AddressControlisPaging in interface AddressControlExceptionpublic int getNumberOfPages()
throws Exception
AddressControlgetNumberOfPages in interface AddressControlExceptionpublic long getMessageCount()
getMessageCount in interface AddressControlpublic String sendMessage(Map<String,String> headers, int type, String body, boolean durable, String user, String password) throws Exception
sendMessage in interface AddressControlheaders - the message headers and properties to set. Can only
container Strings maped to primitive types.body - the text to sendpassword - @returnExceptionprotected MBeanOperationInfo[] fillMBeanOperationInfo()
fillMBeanOperationInfo in class AbstractControlprotected MBeanAttributeInfo[] fillMBeanAttributeInfo()
fillMBeanAttributeInfo in class AbstractControlCopyright © 2019 JBoss by Red Hat. All rights reserved.