|
Page Edited :
qpid :
QMan MBean
QMan MBean has been edited by Andrea Gazzarini (Feb 22, 2009). Content:QMan MBeanDescriptionQMan is exposed as MBean itself. That means its public interface will be available to any connected management client. Object NameQ-MAN:Name=QMan,Type=Service AttributesN.A. Operationsvoid addBroker
Example import java.lang.management.ManagementFactory;import javax.management.MBeanServer; import javax.management.ObjectName; public class Example { public static void main(String[] args) throws Exception { MBeanServer server = ManagementFactory.getPlatformMBeanServer(); // ObjectName objectName = new ObjectName("Q-MAN:Name=QMan,Type=Service"); ObjectName objectName = Names.QMAN_OBJECT_NAME; String host = "qpid.host.com"; int port = 2005; String username ="qpid_username"; String password ="qpid_password"; String virtualHost = "qpid_virtualhost"; int initialPoolCapacity = 3; // Open 3 connections immediately. int maxPoolCapacity = 4; // another on-demand additional connection. int maxWaitTimeout = 2000; server.invoke( objectName, "addBroker", new Object []{ host, port, username, password, virtualHost, initialPoolCapacity, maxPoolCapacity, maxWaitTimeout}, new String[] { String.class.getName(), int.class.getName(), String.class.getName(), String.class.getName(), String.class.getName(), int.class.getName(), int.class.getName(), long.class.getName() }); } } Notifications
|
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]
Unsubscribe or edit your notifications preferences
