AMXProxy proxies.@Deprecated @Taxonomy(stability=UNCOMMITTED) public final class ProxyFactory extends Object implements NotificationListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConnection()
Deprecated.
Verify that the connection is still alive.
|
DomainRoot |
createDomainRoot()
Deprecated.
|
static ProxyFactory |
findInstance(MBeanServerConnection conn)
Deprecated.
|
static ProxyFactory |
findInstanceByID(String mbeanServerID)
Deprecated.
|
static Class<? extends AMXProxy> |
genericInterface(MBeanInfo info)
Deprecated.
|
ObjectName |
getDomainRootObjectName()
Deprecated.
Return the ObjectName for the DomainMBean.
|
DomainRoot |
getDomainRootProxy()
Deprecated.
Return the DomainRoot.
|
DomainRoot |
getDomainRootProxy(boolean waitReady)
Deprecated.
If 'waitReady' is true, then upon return AMX is guaranteed to be fully
loaded.
|
static ProxyFactory |
getInstance(MBeanServer server)
Deprecated.
Get an instance of the ProxyFactory for the MBeanServer.
|
static ProxyFactory |
getInstance(MBeanServerConnection conn)
Deprecated.
Get an instance of the ProxyFactory for the MBeanServerConnection.
|
static ProxyFactory |
getInstance(MBeanServerConnection conn,
boolean useMBeanServerID)
Deprecated.
Get an instance.
|
MBeanInfo |
getMBeanInfo(ObjectName objectName)
Deprecated.
Return (possibly cached) MBeanInfo.
|
protected MBeanServerConnection |
getMBeanServerConnection()
Deprecated.
|
String |
getMBeanServerID()
Deprecated.
|
AMXProxy |
getProxy(ObjectName objectName)
Deprecated.
Call getProxy(objectName, getGenericAMXInterface()
|
<T extends AMXProxy> |
getProxy(ObjectName objectName,
Class<T> intf)
Deprecated.
Get any existing proxy, returning null if none exists and 'create' is
false.
|
void |
handleNotification(Notification notifIn,
Object handback)
Deprecated.
Listens for MBeanServerNotification.UNREGISTRATION_NOTIFICATION and
JMXConnectionNotification and takes appropriate action.
|
DomainRoot |
initDomainRoot()
Deprecated.
|
static boolean |
invariantMBeanInfo(MBeanInfo info)
Deprecated.
|
AMXProxy[] |
toProxy(ObjectName[] objectNames)
Deprecated.
Array entries for MBeans that are no longer registered will contain null
values.
|
List<AMXProxy> |
toProxyList(Collection<ObjectName> objectNames)
Deprecated.
Convert a Collection of ObjectName to a List of AMX.
|
List<AMXProxy> |
toProxyList(ObjectName[] objectNames,
Class<? extends AMXProxy> intf)
Deprecated.
Resulting list could differ in size if some MBeans are no longer
registered
|
Map<String,AMXProxy> |
toProxyMap(Map<String,ObjectName> objectNameMap)
Deprecated.
Convert a Map of ObjectName, and convert it to a Map of AMX, with the
same keys.
|
Map<String,AMXProxy> |
toProxyMap(ObjectName[] objectNames,
Class<? extends AMXProxy> intf)
Deprecated.
Resulting Map could differ in size if some MBeans are no longer
registered
|
Set<AMXProxy> |
toProxySet(ObjectName[] objectNames,
Class<? extends AMXProxy> intf)
Deprecated.
Convert a Set of ObjectName to a Set of AMX.
|
Set<AMXProxy> |
toProxySet(Set<ObjectName> objectNames)
Deprecated.
Convert a Set of ObjectName to a Set of AMX.
|
protected static String |
toString(Object o)
Deprecated.
|
public boolean checkConnection()
public void handleNotification(Notification notifIn, Object handback)
NotificationListener.
DO NOT CALL THIS METHOD.handleNotification in interface NotificationListenerpublic DomainRoot createDomainRoot() throws IOException
IOExceptionpublic DomainRoot initDomainRoot() throws IOException
IOExceptionpublic ObjectName getDomainRootObjectName()
public DomainRoot getDomainRootProxy()
public DomainRoot getDomainRootProxy(boolean waitReady)
waitReady - public String getMBeanServerID()
public static ProxyFactory getInstance(MBeanServer server)
server - public static ProxyFactory getInstance(MBeanServerConnection conn)
public static ProxyFactory getInstance(MBeanServerConnection conn, boolean useMBeanServerID)
connSource - the ConnectionSourceuseMBeanServerID - use the MBeanServerID to determine if it's the
same serverpublic static ProxyFactory findInstance(MBeanServerConnection conn)
public static ProxyFactory findInstanceByID(String mbeanServerID)
public MBeanInfo getMBeanInfo(ObjectName objectName)
public static boolean invariantMBeanInfo(MBeanInfo info)
protected MBeanServerConnection getMBeanServerConnection()
public <T extends AMXProxy> T getProxy(ObjectName objectName, Class<T> intf)
objectName - ObjectName for which a proxy should be createdintf - class of returned proxy, avoids casts and compiler warningsAMXProxy interface for the ObjectNamepublic AMXProxy getProxy(ObjectName objectName)
public static Class<? extends AMXProxy> genericInterface(MBeanInfo info)
public AMXProxy[] toProxy(ObjectName[] objectNames)
public Set<AMXProxy> toProxySet(Set<ObjectName> objectNames)
public Set<AMXProxy> toProxySet(ObjectName[] objectNames, Class<? extends AMXProxy> intf)
public List<AMXProxy> toProxyList(Collection<ObjectName> objectNames)
public Map<String,AMXProxy> toProxyMap(Map<String,ObjectName> objectNameMap)
public Map<String,AMXProxy> toProxyMap(ObjectName[] objectNames, Class<? extends AMXProxy> intf)
public List<AMXProxy> toProxyList(ObjectName[] objectNames, Class<? extends AMXProxy> intf)
Copyright © 2017. All rights reserved.