public class JoramAdminConnect extends Object implements JoramAdminConnectMBean
| Modifier and Type | Field and Description |
|---|---|
static org.objectweb.util.monolog.api.Logger |
logger |
| Constructor and Description |
|---|
JoramAdminConnect() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String name)
Creates an administration connection with default parameters, a JoramAdmin
MBean is created and registered in the given domain.
|
void |
connect(String name,
String host,
int port,
String user,
String pass)
Creates an administration connection with given parameters, a JoramAdmin
MBean is created and registered.
|
void |
exit(boolean force)
Unregisters the MBean.
|
static void |
main(String[] args) |
void |
registerMBean() |
void |
unregisterMBean() |
public static void main(String[] args)
public void registerMBean()
public void unregisterMBean()
public void connect(String name) throws ConnectException, AdminException
connect in interface JoramAdminConnectMBeanname - The name of the corresponding JMX domain.AdminException - If the creation fails.ConnectException - if the connection is closed or brokenpublic void connect(String name, String host, int port, String user, String pass) throws ConnectException, AdminException
connect in interface JoramAdminConnectMBeanname - 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.AdminException - If the creation fails.ConnectException - if the connection is closed or brokenpublic void exit(boolean force)
exit in interface JoramAdminConnectMBeanforce - If true calls System.exit method.Copyright © 2023 ScalAgent D.T.. All rights reserved.