public class Connection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JMXServiceURL |
address |
static String |
CLOSED_CLIENT_CAUSE |
protected Map<String,Object> |
env |
protected MBeanServerConnection |
mbs |
| Constructor and Description |
|---|
Connection() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnector()
Closes the connector.
|
protected void |
createConnection() |
Object |
getAttribute(ObjectName objectName,
String attributeName)
Gets attribute for matching bean and attribute name.
|
MBeanAttributeInfo[] |
getAttributesForBean(ObjectName beanName)
Gets attributes for matching bean name.
|
String |
getClassNameForBean(ObjectName beanName)
Gets class name for matching bean name.
|
boolean |
isAlive()
Returns a boolean describing if the connection is still alive.
|
Set<ObjectName> |
queryNames(ObjectName name)
Queries beans on specific scope.
|
public static final String CLOSED_CLIENT_CAUSE
protected MBeanServerConnection mbs
protected JMXServiceURL address
public MBeanAttributeInfo[] getAttributesForBean(ObjectName beanName) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException
public String getClassNameForBean(ObjectName beanName) 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 © 2020. All rights reserved.