Joram 5.3.0

org.objectweb.joram.client.jms.admin
Interface JoramAdminConnectMBean

All Known Implementing Classes:
JoramAdminConnect

public interface JoramAdminConnectMBean

Allows the creation of JoramAdmin instances connected to servers.


Method Summary
 void connect(java.lang.String name)
          Creates an administration connection with default parameters, a JoramAdmin MBean is created and registered in the given domain.
 void connect(java.lang.String name, java.lang.String host, int port, java.lang.String user, java.lang.String pass)
          Creates an administration connection with given parameters, a JoramAdmin MBean is created and registered.
 void exit(boolean force)
          Unregisters the MBean.
 

Method Detail

connect

void connect(java.lang.String name)
             throws java.net.ConnectException,
                    AdminException
Creates an administration connection with default parameters, a JoramAdmin MBean is created and registered in the given domain.

Parameters:
name - The name of the corresponding JMX domain.
Throws:
AdminException - If the creation fails.
java.net.ConnectException - if the connection is closed or broken

connect

void connect(java.lang.String name,
             java.lang.String host,
             int port,
             java.lang.String user,
             java.lang.String pass)
             throws java.net.ConnectException,
                    AdminException
Creates an administration connection with given parameters, a JoramAdmin MBean is created and registered.

Parameters:
name - The name of the corresponding JMX domain.
host - The hostname of the server.
port - The listening port of the server.
user - The login identification of the administrator.
pass - The password of the administrator.
Throws:
AdminException - If the creation fails.
java.net.ConnectException - if the connection is closed or broken

exit

void exit(boolean force)
Unregisters the MBean.

Parameters:
force - If true calls System.exit method.

Joram 5.3.0

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved