|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--demo.helloworld.step3.api.HelloWorldQueryState
HelloWorldQueryState is a DDQueryState
used in a HelloWorldLocateMsg
used to keep track of servers'guid and virtual coordinate that
has be found by HelloWorldQuery
| Constructor Summary | |
|---|---|
HelloWorldQueryState(InputBuffer buffer)
Constructs a HelloWorldQueryState from its
serialized form. |
|
HelloWorldQueryState(int numberOfReqServers)
Creates a new HelloWorldQueryState. |
|
| Method Summary | |
|---|---|
Object |
add(SecureHash src,
bamboo.vivaldi.VirtualCoordinate vc)
Adds the specified server's GUID and virtual coordinate to the serversInfo if it is not already present. |
boolean |
contains(SecureHash src)
Tests whether the serversInfo contains the
specified server |
Hashtable |
getMap()
getMap returns the serversInfo with requested number of GUID and corresponding VirtualCoordinate. |
int |
numberOfRequestedServers()
numberOfRequestedServers returns the requested number of servers. |
void |
serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable |
int |
size()
size returns the size of the serversInfo |
String |
toString()
Specified by java.lang.Object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HelloWorldQueryState(int numberOfReqServers)
HelloWorldQueryState.
public HelloWorldQueryState(InputBuffer buffer)
throws QSException
HelloWorldQueryState from its
serialized form.
buffer - serialized
form of object.| Method Detail |
public void serialize(OutputBuffer buffer)
serialize in interface QuickSerializable
public Object add(SecureHash src,
bamboo.vivaldi.VirtualCoordinate vc)
serversInfo if it is not already present.
src - SecureHashvc - VirtualCoordinate
public boolean contains(SecureHash src)
serversInfo contains the
specified server
src - SecureHash
serversInfo already
contains the specified server.public Hashtable getMap()
public int numberOfRequestedServers()
public int size()
serversInfo
serversInfopublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||