org.jboss.mx.remoting
Class MBeanLocator

java.lang.Object
  extended byorg.jboss.mx.remoting.MBeanLocator
All Implemented Interfaces:
java.io.Serializable

public class MBeanLocator
extends java.lang.Object
implements java.io.Serializable

MBeanLocator is used to uniquely indentify and locate a specific MBean on the JMX remoting network.

See Also:
Serialized Form

Constructor Summary
MBeanLocator(MBeanServerLocator (src)  sl, ObjectName (src)  obj)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Identity (src) getIdentity()
          return the identity of the mbean server
 MBeanServer (src) getMBeanServer()
          return a dynamic proxy to the remote mbean server where this locator lives ...
 ObjectName (src) getObjectName()
          return the ObjectName that identifies the MBean
 MBeanServerLocator (src) getServerLocator()
          return the server locator for this mbean
 int hashCode()
           
 boolean isSameJVM(MBeanLocator (src)  locator)
          returns true if the MBeanLocator is the same JVM as this locator
 java.lang.Object narrow(java.lang.Class interfaceCl)
          narrow this locator to an interface class that the MBean locator implements
 java.lang.Object narrow(java.lang.Class[] interfaces)
          narrow the locator to a specific Class interface that the MBean locator implements
 java.lang.String toString()
          stringify
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MBeanLocator

public MBeanLocator(MBeanServerLocator (src)  sl,
                    ObjectName (src)  obj)
Method Detail

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getServerLocator

public MBeanServerLocator (src)  getServerLocator()
return the server locator for this mbean

Returns:

getIdentity

public final Identity (src)  getIdentity()
return the identity of the mbean server

Returns:

getObjectName

public final ObjectName (src)  getObjectName()
return the ObjectName that identifies the MBean

Returns:

toString

public java.lang.String toString()
stringify

Returns:

isSameJVM

public boolean isSameJVM(MBeanLocator (src)  locator)
returns true if the MBeanLocator is the same JVM as this locator

Parameters:
locator -
Returns:

narrow

public java.lang.Object narrow(java.lang.Class interfaceCl)
narrow this locator to an interface class that the MBean locator implements

Parameters:
interfaceCl -
Returns:

getMBeanServer

public MBeanServer (src)  getMBeanServer()
                           throws ConnectionFailedException (src) 
return a dynamic proxy to the remote mbean server where this locator lives ...

Returns:
Throws:
ConnectionFailedException (src)

narrow

public java.lang.Object narrow(java.lang.Class[] interfaces)
narrow the locator to a specific Class interface that the MBean locator implements

Parameters:
interfaces -
Returns: