|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.commands.admin.UtilAdmin
public class UtilAdmin
Utility class allowing MBean manipulations on the managed server.
Field Summary | |
---|---|
static String |
ALL
Constant used in pattern ObjectNames. |
static String |
J2EEServer
|
static String |
J2EEType
|
static String |
ServerProxy
|
static String |
ServiceType
|
static String |
Type
|
Method Summary | |
---|---|
static String |
dumpCustom(String domain,
String server,
MBeanServerConnection conn)
|
protected static ObjectName |
getJ2eeMBean(String domain,
String server,
String type,
String name)
Construct ObjectName for an MBean associated with a manageable object in a J2EEServer. |
static ObjectName |
getJonasServiceMBean(String domain,
String server,
String service)
|
static ObjectName |
getJonasServiceMBean(String domain,
String server,
String service,
Properties keyProps)
|
static String |
getTopicLevel(String domain,
String server,
MBeanServerConnection conn,
String topic)
|
static String[] |
getTopics(String domain,
String server,
MBeanServerConnection conn)
|
static ObjectName |
J2EEServer(String serverName)
Create ObjectName for J2EEServer MBean without knowing domain name |
protected static ArrayList<String> |
listApps(String domain,
String server,
MBeanServerConnection conn)
Get the application name list in a given server |
static ArrayList<String> |
listBeans(String domain,
String server,
MBeanServerConnection conn)
Get the beans name list in a given server |
static ArrayList<ObjectName> |
listJNDIResources(String domain,
String server,
MBeanServerConnection conn)
|
protected static ArrayList<String> |
listModules(String domain,
String server,
MBeanServerConnection conn)
Get the modules name list in a given server |
static ObjectName |
ServerProxy(String serverName)
Create ObjectName for ServerProxy MBean without knowing domain name |
static void |
setTopicLevel(String domain,
String server,
MBeanServerConnection conn,
String topic,
String level)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALL
public static final String J2EEServer
public static final String ServerProxy
public static final String J2EEType
public static final String Type
public static final String ServiceType
Method Detail |
---|
protected static ObjectName getJ2eeMBean(String domain, String server, String type, String name) throws MalformedObjectNameException
domain
- management domain nameserver
- J2EE server nametype
- manageable object typename
- MBean name
MalformedObjectNameException
- Could not create the ObjectName aspublic static ObjectName J2EEServer(String serverName) throws MalformedObjectNameException, NullPointerException
serverName
- the server name
MalformedObjectNameException
- Format exception
NullPointerException
- null parameterpublic static ObjectName ServerProxy(String serverName) throws MalformedObjectNameException, NullPointerException
serverName
- the server name
MalformedObjectNameException
- Format exception
NullPointerException
- null parameterpublic static ObjectName getJonasServiceMBean(String domain, String server, String service) throws MalformedObjectNameException, NullPointerException
MalformedObjectNameException
NullPointerException
public static ObjectName getJonasServiceMBean(String domain, String server, String service, Properties keyProps) throws MalformedObjectNameException, NullPointerException
MalformedObjectNameException
NullPointerException
public static ArrayList<String> listBeans(String domain, String server, MBeanServerConnection conn) throws MalformedObjectNameException, IOException
domain
- the server's domainserver
- the server nameconn
- the MBeanServer connection for this server
MalformedObjectNameException
- should not arrive if we construct correct ObjectName
IOException
- A communication problem occurred when talking to the MBean serverprotected static ArrayList<String> listModules(String domain, String server, MBeanServerConnection conn) throws MalformedObjectNameException, IOException
domain
- the server's domainserver
- the server nameconn
- the MBeanServer connection for this server
MalformedObjectNameException
- should not arrive if we construct correct ObjectName
IOException
- A communication problem occurred when talking to the MBean serverprotected static ArrayList<String> listApps(String domain, String server, MBeanServerConnection conn) throws MalformedObjectNameException, IOException
domain
- the server's domainserver
- the server nameconn
- the MBeanServer connection for this server
MalformedObjectNameException
- should not arrive if we construct correct ObjectName
IOException
- A communication problem occurred when talking to the MBean serverpublic static String dumpCustom(String domain, String server, MBeanServerConnection conn) throws Exception
Exception
public static ArrayList<ObjectName> listJNDIResources(String domain, String server, MBeanServerConnection conn) throws Exception
Exception
public static String[] getTopics(String domain, String server, MBeanServerConnection conn) throws Exception
Exception
public static String getTopicLevel(String domain, String server, MBeanServerConnection conn, String topic) throws Exception
Exception
public static void setTopicLevel(String domain, String server, MBeanServerConnection conn, String topic, String level) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |