org.objectweb.dream.protocol.channel
Class MultiplexExportIdentifier

java.lang.Object
  extended by org.objectweb.dream.protocol.channel.MultiplexExportIdentifier
All Implemented Interfaces:
Externalizable, Serializable, ExportIdentifier

public final class MultiplexExportIdentifier
extends Object
implements ExportIdentifier, Externalizable

Export identifier created by multiplex protocol.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.dream.protocol.ExportIdentifier
EMPTY_EXPORT_IDENTIFIER_ARRAY
 
Constructor Summary
MultiplexExportIdentifier(short id, ExportIdentifier next)
           
 
Method Summary
 boolean equals(Object obj)
           
 ExportIdentifier[] getNextExportIds()
          Returns an array of identifiers corresponding to lower level protocol layers, if any.
 short getRouteId()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiplexExportIdentifier

public MultiplexExportIdentifier(short id,
                                 ExportIdentifier next)
Parameters:
id - the routeId
next - identifier corresponding to lower level protocol layer.
Method Detail

getRouteId

public short getRouteId()
Returns:
Returns the routeId.

getNextExportIds

public ExportIdentifier[] getNextExportIds()
Description copied from interface: ExportIdentifier
Returns an array of identifiers corresponding to lower level protocol layers, if any.

Specified by:
getNextExportIds in interface ExportIdentifier
Returns:
an array of identifiers corresponding to lower level protocol layers. If their is no lower level protocol layer, returns an empty array.
See Also:
ExportIdentifier.getNextExportIds()

readExternal

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

writeExternal

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.