oogp2p.chord.nettables
Class ChordRingQueryNettable

java.lang.Object
  extended byoogp2p.Nettable
      extended byoogp2p.chord.nettables.ChordNettable
          extended byoogp2p.chord.nettables.ChordRingQueryNettable
All Implemented Interfaces:
java.io.Serializable

public class ChordRingQueryNettable
extends ChordNettable

Author:
cmz Asks if the Chord Ring (for a certain type) is available
See Also:
Serialized Form

Field Summary
private  int myHops
           
private  java.net.InetAddress myOriginator
           
 
Fields inherited from class oogp2p.Nettable
myApplication, myReceiver, mySender
 
Constructor Summary
ChordRingQueryNettable(java.net.InetAddress sender, java.net.InetAddress receiver, java.net.InetAddress originator, int hops)
           
 
Method Summary
 java.lang.Object getContents()
           
 int getHops()
           
 java.net.InetAddress getOriginator()
           
 
Methods inherited from class oogp2p.Nettable
getApplicationName, getReceiver, getSender, setReceiver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myOriginator

private java.net.InetAddress myOriginator

myHops

private int myHops
Constructor Detail

ChordRingQueryNettable

public ChordRingQueryNettable(java.net.InetAddress sender,
                              java.net.InetAddress receiver,
                              java.net.InetAddress originator,
                              int hops)
Method Detail

getContents

public java.lang.Object getContents()
Overrides:
getContents in class ChordNettable

getOriginator

public java.net.InetAddress getOriginator()
Returns:
the originiator of the chord ring query

getHops

public int getHops()
Returns:
number of hops for the query to go