|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.management.MBeanHelper
public abstract class MBeanHelper
Helper class providing various functionality related to aggregation of attributes and methods exposed by Coherence JMX framework MBeans.
Field Summary | |
---|---|
static String |
NETWORK_HEALTH
The Network Health MBean name. |
Constructor Summary | |
---|---|
MBeanHelper()
|
Method Summary | |
---|---|
static double |
calculateAverage(MBeanServer server,
String sPattern,
String sAttribute)
Calculate the average of the attribute values across all the MBeans with a given name pattern. |
static ObjectName |
ensureNetworkHealthMBean()
Ensure that there is an instance of NetworkHealth MBean registered with the default MBeansServer. |
static ObjectName |
ensureSingletonMBean(String sName)
Ensure that there is an instance of a local MBean of the specified type registered with the default MBeansServer. |
static MBeanServer |
findMBeanServer()
Find an MBeanServer that Coherence MBeans are registered with. |
static MBeanServer |
findMBeanServer(String sDefaultDomain)
Find an MBeanServer that has the specified default domain name. |
static String |
getDefaultDomain()
Return the the default domain name as configured in the Coherence operational configuration descriptor. |
static Object |
startHttpConnector(int nPort,
MBeanServer mbs)
Start a com.sun.jdmk.comm.HtmlAdaptorServer, which is a part of the Sun JMX reference implementation. |
static JMXConnectorServer |
startRmiConnector(String sHost,
int nRegPort,
int nConPort,
MBeanServer mbs,
Map mapEnv)
Start a JMXConnectorServer . |
Field Detail |
---|
public static final String NETWORK_HEALTH
Constructor Detail |
---|
public MBeanHelper()
Method Detail |
---|
public static String getDefaultDomain()
public static MBeanServer findMBeanServer()
public static MBeanServer findMBeanServer(String sDefaultDomain)
sDefaultDomain
- the domain name
public static double calculateAverage(MBeanServer server, String sPattern, String sAttribute)
server
- the MBeanServersPattern
- the name patternsAttribute
- the attribute name
public static ObjectName ensureNetworkHealthMBean()
public static ObjectName ensureSingletonMBean(String sName)
public static JMXConnectorServer startRmiConnector(String sHost, int nRegPort, int nConPort, MBeanServer mbs, Map mapEnv)
JMXConnectorServer
. This method is used to expose the
specified MBeanServer to external agents (such as JConsole) using RMI.
sHost
- host to bind tonRegPort
- port used for the JMX RMI registrynConPort
- port used for the JMX RMI connectionmbs
- MBeanServer
that contains Coherence MBeansmapEnv
- a set of attributes to control the new connector server's
behavior
JMXConnectorServerFactory
public static Object startHttpConnector(int nPort, MBeanServer mbs)
nPort
- port to bind the HTTP server tombs
- MBeanServer that this HTTP server will expose
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |