org.apache.geronimo.messaging.reference
Class ReferenceableInfo

java.lang.Object
  extended byorg.apache.geronimo.messaging.reference.ReferenceableInfo
All Implemented Interfaces:
Externalizable, Serializable

public class ReferenceableInfo
extends Object
implements Externalizable

Wraps meta-data about a Referenceable.

Version:
$Revision: 1.1 $ $Date: 2004/05/11 12:06:42 $
See Also:
Serialized Form

Constructor Summary
ReferenceableInfo()
          Required for Externalization.
ReferenceableInfo(NodeInfo anHostingNode, Object anID, Class[] aClazz, int aRefId)
          Creates the meta-data of a Referenceable.
 
Method Summary
 boolean equals(Object obj)
           
 NodeInfo getHostingNode()
          Gets the hosting node.
 Object getID()
          Gets the EndPoint identifier containing the Reference.
 Class[] getRefClass()
          Gets the Referenceable interfaces.
 int getRefID()
          Gets the Reference identifier.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceableInfo

public ReferenceableInfo()
Required for Externalization.


ReferenceableInfo

public ReferenceableInfo(NodeInfo anHostingNode,
                         Object anID,
                         Class[] aClazz,
                         int aRefId)
Creates the meta-data of a Referenceable.

Parameters:
anHostingNode - Hosting node.
anID - EndPoint identifier.
aClazz - Referenceable interfaces.
aRefId - Referenceable identifier contained by the EndPoint.
Method Detail

getHostingNode

public NodeInfo getHostingNode()
Gets the hosting node.

Returns:
Returns the hostingNode.

getRefID

public int getRefID()
Gets the Reference identifier.

Returns:
Returns the id.

getID

public Object getID()
Gets the EndPoint identifier containing the Reference.

Returns:
Returns the EndPoint identifier.

getRefClass

public Class[] getRefClass()
Gets the Referenceable interfaces.

Returns:
Referenceable interfaces.

equals

public boolean equals(Object obj)
Returns:
true if the two references are hosted by the same node, contained by the same EndPoint and have the same id.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.