|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.qpid.management.configuration.Configurator
public class Configurator
Director used for coordinating the build process of configuration. This is the only component which has a read-write permission on Configuration object.
Field Summary | |
---|---|
(package private) IParser |
_brokerConfigurationParser
|
(package private) IParser |
_currentParser
|
(package private) IParser |
_workerManagerConfigurationParser
|
(package private) static IParser |
DEFAULT_PARSER
Default (empty) parser used when there's no need to process data (non relevant elements). |
Constructor Summary | |
---|---|
Configurator()
|
Method Summary | |
---|---|
(package private) void |
addMandatoryManagementMessageHandlers()
Configures the mandatory management message handlers. |
(package private) void |
addMandatoryMethodReplyMessageHandlers()
Configures the mandatory management message handlers. |
void |
characters(char[] ch,
int start,
int length)
Delegates the processing to the current parser. |
void |
configure()
Builds whole configuration. |
BrokerConnectionData |
createAndReturnBrokerConnectionData(UUID brokerId,
String host,
int port,
String username,
String password,
String virtualHost,
int initialPoolCapacity,
int maxPoolCapacity,
long maxWaitTimeout)
Creates and return a value object (BrokerConnectionData) with the given parameters. |
void |
endElement(String uri,
String localName,
String name)
|
void |
startElement(String uri,
String localName,
String name,
Attributes attributes)
Here is defined what parser needs to be used for processing the current data. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final IParser DEFAULT_PARSER
IParser _brokerConfigurationParser
IParser _workerManagerConfigurationParser
IParser _currentParser
Constructor Detail |
---|
public Configurator()
Method Detail |
---|
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void configure() throws ConfigurationException
ConfigurationException
- when the build fails.public BrokerConnectionData createAndReturnBrokerConnectionData(UUID brokerId, String host, int port, String username, String password, String virtualHost, int initialPoolCapacity, int maxPoolCapacity, long maxWaitTimeout) throws BrokerAlreadyConnectedException, BrokerConnectionException
host
- the hostname where the broker is running.port
- the port where the broker is running.username
- the username for connecting with the broker.password
- the password for connecting with the broker.virtualHost
- the virtual host.initialPoolCapacity
- the number of the connection that must be immediately opened.maxPoolCapacity
- the maximum number of opened connection.maxWaitTimeout
- the maximum amount of time that a client will wait for obtaining a connection.
BrokerAlreadyConnectedException
- when the broker is already connected.
BrokerConnectionException
- when a connection cannot be estabilished.void addMandatoryMethodReplyMessageHandlers()
void addMandatoryManagementMessageHandlers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |