org.jboss.mx.remoting
Class MBeanLocator

java.lang.Object
  extended by org.jboss.mx.remoting.MBeanLocator
All Implemented Interfaces:
Serializable

public class MBeanLocator
extends Object
implements Serializable

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

Version:
$Revision: 81023 $
Author:
Jeff Haynie
See Also:
Serialized Form

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

Constructor Detail

MBeanLocator

public MBeanLocator(MBeanServerLocator sl,
                    ObjectName obj)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getServerLocator

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

Returns:

getIdentity

public final org.jboss.remoting.ident.Identity getIdentity()
return the identity of the mbean server

Returns:

getObjectName

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

Returns:

toString

public String toString()
stringify

Overrides:
toString in class Object
Returns:

isSameJVM

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

Parameters:
locator -
Returns:

narrow

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

Parameters:
interfaceCl -
Returns:

getMBeanServer

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

Returns:
Throws:
org.jboss.remoting.ConnectionFailedException

narrow

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

Parameters:
interfaces -
Returns:


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.