public class Connection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JMXServiceURL |
address |
protected HashMap<String,Object> |
env |
protected MBeanServerConnection |
mbs |
| Constructor and Description |
|---|
Connection() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnector() |
protected void |
createConnection() |
Object |
getAttribute(ObjectName objectName,
String attributeName) |
MBeanAttributeInfo[] |
getAttributesForBean(ObjectName bean_name) |
boolean |
isAlive() |
Set<ObjectName> |
queryNames(ObjectName name) |
protected MBeanServerConnection mbs
protected JMXServiceURL address
public MBeanAttributeInfo[] getAttributesForBean(ObjectName bean_name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException
public Set<ObjectName> queryNames(ObjectName name) throws IOException
IOExceptionprotected void createConnection()
throws IOException
IOExceptionpublic Object getAttribute(ObjectName objectName, String attributeName) throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException
public void closeConnector()
public boolean isAlive()
Copyright © 2019. All rights reserved.