org.objectweb.dream.protocol
Class IPExportIdentifier

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

public final class IPExportIdentifier
extends Object
implements ExportIdentifier, Externalizable

Export identifier created by TCP/IP protocol

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.dream.protocol.ExportIdentifier
EMPTY_EXPORT_IDENTIFIER_ARRAY
 
Constructor Summary
IPExportIdentifier()
          Default constructor
IPExportIdentifier(String hostName, int port)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getHostName()
           
 ExportIdentifier[] getNextExportIds()
          Returns an array of identifiers corresponding to lower level protocol layers, if any.
 int getPort()
           
 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

IPExportIdentifier

public IPExportIdentifier()
Default constructor


IPExportIdentifier

public IPExportIdentifier(String hostName,
                          int port)
Parameters:
hostName - the host name of the exported interface.
port - the port number of the exported interface.
Method Detail

getHostName

public String getHostName()
Returns:
Returns the hostName.

getPort

public int getPort()
Returns:
Returns the port.

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.