Rice Pastry API

rice.pastry.wire
Class PendingWrite

java.lang.Object
  |
  +--rice.pastry.wire.PendingWrite

public class PendingWrite
extends java.lang.Object

Wrapper class which contains an object to write and the address it needs to be written to.

Version:
$Id: PendingWrite.java,v 1.2 2002/09/09 01:19:48 amislove Exp $
Author:
Alan Mislove

Constructor Summary
PendingWrite(rice.pastry.NodeId destination, java.net.InetSocketAddress address, java.lang.Object o)
          Contructs a PendingWrite from an address and an object
 
Method Summary
 java.net.InetSocketAddress getAddress()
          Returns the destination address of this write
 rice.pastry.NodeId getDestination()
          Returns the destination address of this write
 java.lang.Object getObject()
          Returns the object to be written
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingWrite

public PendingWrite(rice.pastry.NodeId destination,
                    java.net.InetSocketAddress address,
                    java.lang.Object o)
Contructs a PendingWrite from an address and an object

Parameters:
address - The destination address of this object
o - The object to be written.
Method Detail

getDestination

public rice.pastry.NodeId getDestination()
Returns the destination address of this write

Returns:
The destination address of this pending write.

getAddress

public java.net.InetSocketAddress getAddress()
Returns the destination address of this write

Returns:
The destination address of this pending write.

getObject

public java.lang.Object getObject()
Returns the object to be written

Returns:
The object to be written

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection