|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adeptia.indigo.utils.MBeanUtils
public class MBeanUtils
MBean utilities
| Field Summary | |
|---|---|
static java.lang.String |
HEART_BEAT_PERIOD
|
static java.lang.String |
HEART_BEAT_TRIES
|
| Constructor Summary | |
|---|---|
MBeanUtils()
|
|
| Method Summary | |
|---|---|
static javax.management.remote.JMXConnector |
getConnnector(javax.management.remote.JMXServiceURL url,
java.util.Properties p,
javax.management.NotificationListener nf)
Creates a connection to the connector server at the given address. |
static java.lang.Object |
getMBeanProxy(com.adeptia.indigo.system.ObjectAddress objectAddress,
java.lang.Class interfaceClass)
Provides a MBean proxy object |
static java.lang.Object |
getMBeanProxy(com.adeptia.indigo.system.ObjectAddress objectAddress,
java.lang.Class[] interfaceClasses)
Provides a MBean proxy object for multiple interface classes |
static javax.management.MBeanServerConnection |
getMBeanServerConnection(java.lang.String jmxJndiName)
Returns an MBeanServerConnection object representing a remote MBean server. |
static javax.management.MBeanServerConnection |
getMBeanServerConnection(java.lang.String jmxJndiName,
int port,
java.util.Properties p)
Returns an MBeanServerConnection object representing a remote MBean server. |
static javax.management.MBeanServerConnection |
getMBeanServerConnection(java.lang.String jmxJndiName,
java.util.Properties p)
Returns an MBeanServerConnection object representing a remote MBean server. |
static boolean |
isConnectorAlive(java.lang.String urlPath)
Returns true if connection to the connector server at the given address is still alive |
static void |
registerMBean(com.adeptia.indigo.io.IndigoInputHandler inputHandler,
java.lang.String streamName)
Registers a pre-existing object as an MBean with the MBean server |
static void |
setConnectorAlive(javax.management.NotificationListener nl,
java.lang.String urlPath,
boolean connectorAlive)
Set status for connection to the connector server at the given address |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HEART_BEAT_PERIOD
public static final java.lang.String HEART_BEAT_TRIES
| Constructor Detail |
|---|
public MBeanUtils()
| Method Detail |
|---|
public static javax.management.MBeanServerConnection getMBeanServerConnection(java.lang.String jmxJndiName)
throws javax.naming.NamingException,
java.lang.Exception
jmxJndiName -
javax.naming.NamingException
java.lang.Exception
public static java.lang.Object getMBeanProxy(com.adeptia.indigo.system.ObjectAddress objectAddress,
java.lang.Class interfaceClass)
throws javax.naming.NamingException,
java.lang.Exception
objectAddress - interfaceClass -
javax.naming.NamingException
java.lang.Exception
public static java.lang.Object getMBeanProxy(com.adeptia.indigo.system.ObjectAddress objectAddress,
java.lang.Class[] interfaceClasses)
throws javax.naming.NamingException,
java.lang.Exception
objectAddress - interfaceClasses -
javax.naming.NamingException
java.lang.Exception
public static void registerMBean(com.adeptia.indigo.io.IndigoInputHandler inputHandler,
java.lang.String streamName)
throws java.lang.Exception
inputHandler - The MBean to be registered as an MBean.streamName - The object name of the MBean.
java.lang.Exception
public static javax.management.MBeanServerConnection getMBeanServerConnection(java.lang.String jmxJndiName,
java.util.Properties p)
throws javax.naming.NamingException,
java.io.IOException
jmxJndiName - p -
javax.naming.NamingException
java.io.IOException
public static javax.management.MBeanServerConnection getMBeanServerConnection(java.lang.String jmxJndiName,
int port,
java.util.Properties p)
throws javax.naming.NamingException,
java.io.IOException
jmxJndiName - port - p -
javax.naming.NamingException
java.io.IOException
public static javax.management.remote.JMXConnector getConnnector(javax.management.remote.JMXServiceURL url,
java.util.Properties p,
javax.management.NotificationListener nf)
throws java.io.IOException
url - the address of the connector server to connect top - nf -
java.io.IOExceptionpublic static boolean isConnectorAlive(java.lang.String urlPath)
urlPath - the address of the connector server to be tested
public static void setConnectorAlive(javax.management.NotificationListener nl,
java.lang.String urlPath,
boolean connectorAlive)
nl - urlPath - connectorAlive -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||