|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.qpid.management.domain.services.QMan
public class QMan
Main entry point for starting Q-Man application.
Constructor Summary | |
---|---|
QMan()
|
Method Summary | |
---|---|
void |
addBroker(String host,
int port,
String username,
String password,
String virtualHost,
int initialPoolCapacity,
int maxPoolCapacity,
long maxWaitTimeout)
Connects Q-Man with a broker defined by the given parameter. |
void |
createManagementClient(UUID brokerId,
BrokerConnectionData data)
Creates a management client using the given data. |
Object |
getAttribute(String attribute)
Not implemented for this MBean. |
AttributeList |
getAttributes(String[] attributes)
Not implemented for this MBean. |
List<ManagementClient> |
getManagementClients()
Returns the list of management clients currently handled by QMan. |
MBeanInfo |
getMBeanInfo()
Returns the metadata for this MBean |
void |
handleNotification(Notification notification,
Object handback)
Simply dispatches the incoming notification to registered listeners. |
Object |
invoke(String actionName,
Object[] params,
String[] signature)
Invokes an operation on QMan (MBean). |
static void |
main(String[] args)
Main method used for starting Q-Man. |
void |
setAttribute(Attribute attribute)
Not implemented for this MBean. |
AttributeList |
setAttributes(AttributeList attributes)
Not implemented for this MBean. |
void |
setConfigurator(Configurator configurator)
Injects the configurator on this QMan instance. |
void |
start()
Starts QMan. |
void |
stop()
Stop Qman |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QMan()
Method Detail |
---|
public void start() throws StartupFailureException
StartupFailureException
- when it's not possible to proceed with startup.public void addBroker(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.
MBeanException
- when it's not possible to connect with the broker.
BrokerAlreadyConnectedException
BrokerConnectionException
public void stop()
public void createManagementClient(UUID brokerId, BrokerConnectionData data)
brokerId
- the broker identifier.data
- the broker connection data.public List<ManagementClient> getManagementClients()
public void setConfigurator(Configurator configurator)
configurator
- the configurator to be injected.public static void main(String[] args)
args
- the command line arguments.public Object getAttribute(String attribute)
getAttribute
in interface DynamicMBean
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
actionName
- the operation name.params
- the operation parameters.signature
- the operation signature.
MBeanException
- Wraps a java.lang.Exception
thrown by the MBean's invoked method.
ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the methodpublic void setAttribute(Attribute attribute)
setAttribute
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public void handleNotification(Notification notification, Object handback)
handleNotification
in interface NotificationListener
notification
- the incoming notification.handback
- the context associated to this notification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |