|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.configuration.Configuration
public final class Configuration
Qpid Management bridge configuration. Basically iy is a singleton that is holding all the configurtion data loaded at startup.
Field Summary | |
---|---|
(package private) Map<Integer,AccessMode> |
_accessModes
|
(package private) Map<UUID,BrokerConnectionData> |
_brokerConnectionInfos
|
(package private) Map<Character,IMessageHandler> |
_managementQueueHandlers
|
(package private) Map<Character,IMessageHandler> |
_methodReplyQueueHandlers
|
(package private) Map<Integer,Type> |
_typeMappings
|
(package private) Map<Type,String> |
_validators
|
Method Summary | |
---|---|
(package private) void |
addAccessModeMapping(int code,
AccessMode accessMode)
Adds a new access mode mapping to this configuration. |
(package private) void |
addBrokerConnectionData(UUID brokerId,
BrokerConnectionData connectionData)
Adds to this configuration a new broker connection data. |
(package private) void |
addManagementMessageHandlerMapping(MessageHandlerMapping mapping)
Adds a new management message handler to this configuration. |
(package private) void |
addMethodReplyMessageHandlerMapping(MessageHandlerMapping mapping)
Adds a new method-reply message handler to this configuration. |
(package private) void |
addTypeMapping(int code,
Type type)
Adds a new type mapping to this configuration. |
(package private) void |
addTypeMapping(int code,
Type type,
String validatorClassName)
Adds a new type mapping to this configuration. |
AccessMode |
getAccessMode(int code)
Returns the access mode associated to the given code. |
BrokerConnectionData |
getBrokerConnectionData(UUID brokerId)
Gets from this configuration the connection data of the broker associated with the given id. |
org.apache.qpid.transport.DeliveryProperties |
getCommandDeliveryProperties()
Returns the command message delivery properties. |
org.apache.qpid.transport.Header |
getCommandMessageHeader()
Returns the message header used for sending command message on management queue. |
org.apache.qpid.transport.MessageProperties |
getCommandMessageProperties()
Returns the command message properties. |
Set<Map.Entry<UUID,BrokerConnectionData>> |
getConnectionInfos()
Gets from this configuration the list of known broker (I mean, only their connection data). |
static Configuration |
getInstance()
Returns the singleton instance. |
Map<Character,IMessageHandler> |
getManagementQueueHandlers()
Returns a map containing all the configured management message handlers. |
String |
getManagementQueueName()
Returns the name of the management queue. |
Map<Character,IMessageHandler> |
getMethodReplyQueueHandlers()
Returns a map containing all the configured method-reply message handlers. |
String |
getMethodReplyQueueName()
Returns the name of the method-reply queue. |
Type |
getType(int code)
Returns the type associated to the given code. |
String |
getValidatorClassName(Type type)
Returns the validator class name associated to the given type. |
long |
getWorkerManagerKeepAliveTime()
Returns the max amount of time that an excess thread can be idle before purging from the pool. |
int |
getWorkerManagerMaxPoolSize()
Returns the maximum size of the worker manager thread pool size. |
int |
getWorkerManagerPoolSize()
Returns the worker manager thread pool size. |
boolean |
hasOneOrMoreBrokersDefined()
Returns true if this configuration has at least one broker configured. |
(package private) void |
setWorkerManagerKeepAliveTime(long keepAliveTime)
Sets the max amount of time that an excess thread can be idle before purging from the pool. |
(package private) void |
setWorkerManagerMaxPoolSize(int maxPoolSize)
Sets the maximum size of the worker manager thread pool size. |
(package private) void |
setWorkerManagerPoolSize(int poolSize)
Sets the size of the worker manager thread pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Map<Integer,Type> _typeMappings
Map<Integer,AccessMode> _accessModes
Map<Type,String> _validators
Map<UUID,BrokerConnectionData> _brokerConnectionInfos
Map<Character,IMessageHandler> _managementQueueHandlers
Map<Character,IMessageHandler> _methodReplyQueueHandlers
Method Detail |
---|
public static Configuration getInstance()
public boolean hasOneOrMoreBrokersDefined()
public Type getType(int code) throws UnknownTypeCodeException
code
- the code used as search criteria.
UnknownTypeCodeException
- when the given code is not associated to any type.public AccessMode getAccessMode(int code) throws UnknownAccessCodeException
code
- the code used as search criteria.
UnknownAccessCodeException
- when the given code is not associated to any access mode.public String getValidatorClassName(Type type)
type
- the type.
public Set<Map.Entry<UUID,BrokerConnectionData>> getConnectionInfos()
public BrokerConnectionData getBrokerConnectionData(UUID brokerId) throws UnknownBrokerException
brokerId
- the broker identifier.
UnknownBrokerException
- when the given id is not associated with any broker.public String getManagementQueueName()
public String getMethodReplyQueueName()
public Map<Character,IMessageHandler> getManagementQueueHandlers()
public Map<Character,IMessageHandler> getMethodReplyQueueHandlers()
public org.apache.qpid.transport.Header getCommandMessageHeader()
public org.apache.qpid.transport.MessageProperties getCommandMessageProperties()
public org.apache.qpid.transport.DeliveryProperties getCommandDeliveryProperties()
void addTypeMapping(int code, Type type, String validatorClassName)
code
- the code that will be associated with the declared type.type
- the type.vailidatorClassName
- the FQN of the validator class that will be
associated with the given type.void addTypeMapping(int code, Type type)
code
- the code that will be associated with the declared type.type
- the type.void addAccessModeMapping(int code, AccessMode accessMode)
code
- the code that will be associated with the access mode,accessMode
- the accessMode.void addManagementMessageHandlerMapping(MessageHandlerMapping mapping)
mapping
- the message handler mapping.void addMethodReplyMessageHandlerMapping(MessageHandlerMapping mapping)
mapping
- the message handler mapping.void addBrokerConnectionData(UUID brokerId, BrokerConnectionData connectionData) throws BrokerAlreadyConnectedException, BrokerConnectionException
brokerId
- the broker identifier.connectionData
- the connection data.
BrokerAlreadyConnectedException
- when the broker is already connected.
BrokerConnectionException
- when a connection cannot be estabilished.public int getWorkerManagerPoolSize()
void setWorkerManagerPoolSize(int poolSize)
poolSize
- the size of the worker manager thread pool.public int getWorkerManagerMaxPoolSize()
void setWorkerManagerMaxPoolSize(int maxPoolSize)
maxPoolSize
- the max size of the worker manager thread pool.public long getWorkerManagerKeepAliveTime()
void setWorkerManagerKeepAliveTime(long keepAliveTime)
keepAliveTime
- the max keep alive time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |