|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.appserv.management.client.ProxyFactory
Factory for AMX
proxies.
Usually proxies are obtained by starting with the DomainRoot obtained via
AppserverConnectionSource.getDomainRoot()
.
AppserverConnectionSource
Method Summary | |
DomainRoot |
createDomainRoot()
|
static ProxyFactory |
findInstance(ConnectionSource conn)
|
static ProxyFactory |
findInstance(MBeanServerConnection conn)
|
static ProxyFactory |
findInstanceByID(java.lang.String mbeanServerID)
|
protected MBeanServerConnection |
getConnection()
|
ConnectionSource |
getConnectionSource()
|
DomainRoot |
getDomainRoot()
|
ObjectName |
getDomainRootObjectName()
Return the ObjectName for the DomainMBean. |
static ProxyFactory |
getInstance(ConnectionSource conn)
Calls getInstance( connSource, true ). |
static ProxyFactory |
getInstance(ConnectionSource connSource,
boolean useMBeanServerID)
Get an instance. |
static ProxyFactory |
getInstance(MBeanServer server)
Get an instance of the ProxyFactory for the MBeanServer. |
static ProxyFactory |
getInstance(MBeanServerConnection conn)
Get an instance of the ProxyFactory for the MBeanServerConnection. |
java.lang.String |
getMBeanServerID()
|
AMX |
getProxy(ObjectName objectName)
|
AMX |
getProxy(ObjectName objectName,
boolean create)
Get any existing proxy, returning null if none exists and 'create' is false. |
void |
handleNotification(Notification notifIn,
java.lang.Object handback)
Listens for MBeanServerNotification.UNREGISTRATION_NOTIFICATION and JMXConnectionNotification and takes appropriate action. |
DomainRoot |
initDomainRoot()
|
java.lang.Object |
newProxyInstance(ObjectName objectName,
java.lang.Class[] interfaceClasses)
Instantiates a new proxy using the default AttributeNameMangler and with any desired number of interfaces. |
java.util.Map |
toProxyMap(java.util.Map objectNameMap)
Convert a Map of ObjectName, with any type of key, and convert it to a Map of AMX, with the same keys. |
java.util.Set |
toProxySet(java.util.Set objectNames)
Convert a Set of ObjectName to a Set of AMX. |
protected static java.lang.String |
toString(java.lang.Object o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void handleNotification(Notification notifIn, java.lang.Object handback)
handleNotification
in interface NotificationListener
notifIn
- The notification.handback
- An opaque object which helps the listener to associate information
regarding the MBean emitter. This object is passed to the MBean during the
addListener call and resent, without modification, to the listener. The MBean object
should not use or modify the object.public DomainRoot createDomainRoot() throws java.io.IOException
java.io.IOException
public DomainRoot initDomainRoot() throws java.io.IOException
java.io.IOException
public DomainRoot getDomainRoot()
public ConnectionSource getConnectionSource()
public java.lang.String getMBeanServerID()
public ObjectName getDomainRootObjectName() throws java.io.IOException
java.io.IOException
public static ProxyFactory getInstance(MBeanServer server)
server
- public static ProxyFactory getInstance(MBeanServerConnection conn)
public static ProxyFactory getInstance(ConnectionSource conn)
public static ProxyFactory getInstance(ConnectionSource connSource, boolean useMBeanServerID)
connSource
- the ConnectionSourceuseMBeanServerID
- use the MBeanServerID to determine if it's the same serverpublic static ProxyFactory findInstance(ConnectionSource conn)
public static ProxyFactory findInstance(MBeanServerConnection conn)
public static ProxyFactory findInstanceByID(java.lang.String mbeanServerID)
public AMX getProxy(ObjectName objectName)
AMX
interface for the ObjectNamepublic AMX getProxy(ObjectName objectName, boolean create)
objectName
- ObjectName for which a proxy should be createdcreate
- true to create the proxy, false to return existing value
AMX
interface for the ObjectNameprotected MBeanServerConnection getConnection() throws java.io.IOException
java.io.IOException
public java.lang.Object newProxyInstance(ObjectName objectName, java.lang.Class[] interfaceClasses) throws java.io.IOException
Use of this routine forces a new proxy to be created which cannot make use of any internal
caching already established. Use of this routine is discouraged in favor of
getProxy(javax.management.ObjectName)
objectName
- the target MBean which will be invoked by the proxyinterfaceClasses
- all interfaces the proxy should implement
java.io.IOException
protected static java.lang.String toString(java.lang.Object o)
public java.util.Set toProxySet(java.util.Set objectNames)
public java.util.Map toProxyMap(java.util.Map objectNameMap)
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.