|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.StaticDomain
public abstract class StaticDomain
A convenience class to access domains and servers statically.
| Field Summary | |
|---|---|
static ObjectName |
FULL_QUERY
A query pattern for all MBeans in the server. |
static String |
LINE_SEPARATOR
The line separator to apply. |
| Constructor Summary | |
|---|---|
StaticDomain()
|
|
| Method Summary | |
|---|---|
static MBeanServer |
createMBeanServer(String domain)
Creates a new shared MBean server. |
static Object |
find(Class clazz)
Finds the referent of the MBean in the default domain of the default MBean server implementing the specified class or interface. |
static Object |
find(Class clazz,
MBeanServer server)
Finds the referent of the MBean in the default domain of the specified MBean server implementing the specified class or interface. |
static Broker |
findBroker()
Finds the referent of the default broker MBean. |
static Broker |
findBroker(MBeanServer server)
Finds the referent of the default broker MBean in the specified MBean server. |
static Domain |
findDomain()
Finds the referent of the default domain MBean. |
static Domain |
findDomain(MBeanServer server)
Finds the referent of the default domain MBean in the specified MBean server. |
static Factory |
findFactory()
Finds the referent of the default factory MBean. |
static Factory |
findFactory(MBeanServer server)
Finds the referent of the default factory MBean in the specified MBean server. |
static LoaderMBean |
findLoader()
Finds the referent of the default loader MBean. |
static LoaderMBean |
findLoader(MBeanServer server)
Finds the referent of the default loader MBean in the specified MBean server. |
static MBeanServer |
findMBeanServer()
Finds the default MBean server. |
static MBeanServer |
findMBeanServer(String id)
Finds the specified MBean server. |
static MBeanServer[] |
findMBeanServers(String id)
Finds the specified MBean servers. |
static String |
getMBeanServerId()
Gets the default MBean server id. |
static String |
getMBeanServerId(MBeanServer server)
Gets the specified MBean server id. |
static MBeanServer |
newMBeanServer(String domain)
Creates a new local MBean server. |
static void |
releaseMBeanServer(MBeanServer server)
Releases a shared MBean server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LINE_SEPARATOR
public static final ObjectName FULL_QUERY
| Constructor Detail |
|---|
public StaticDomain()
| Method Detail |
|---|
public static MBeanServer findMBeanServer()
RuntimeOperationsException - if the server is not available.public static MBeanServer findMBeanServer(String id)
id - the agent id of the server, null for any.
SecurityException - if not allowed.public static MBeanServer[] findMBeanServers(String id)
id - the agent id of the server, null for any.
SecurityException - if not allowed.public static MBeanServer newMBeanServer(String domain)
domain - the default domain.
SecurityException - if not allowed.public static MBeanServer createMBeanServer(String domain)
domain - the default domain.
SecurityException - if not allowed.public static void releaseMBeanServer(MBeanServer server)
server - the MBean server.
SecurityException - if not allowed.public static String getMBeanServerId()
RuntimeOperationsException - if the server is not available.public static String getMBeanServerId(MBeanServer server)
server - the MBean server.
public static Object find(Class clazz)
clazz - the MBean interface.
public static Domain findDomain()
public static LoaderMBean findLoader()
public static Broker findBroker()
public static Factory findFactory()
public static Object find(Class clazz,
MBeanServer server)
clazz - the MBean interface.server - the MBean server.
public static Domain findDomain(MBeanServer server)
server - the MBean server.
public static LoaderMBean findLoader(MBeanServer server)
server - the MBean server.
public static Broker findBroker(MBeanServer server)
server - the MBean server.
public static Factory findFactory(MBeanServer server)
server - the MBean server.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||