|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--demo.helloworld.step2.api.HelloWorldQueryState
HelloWorldQueryState
is a DDQueryState
used in a HelloWorldLocateMsg
used to keep track of number of servers 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 | |
---|---|
boolean |
add(SecureHash src)
Adds the specified server to the serversGuidSet
if it is not already present. |
boolean |
contains(SecureHash src)
Tests whether the serversGuidSet contains the
specified server |
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 serversGuidSet |
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 boolean add(SecureHash src)
serversGuidSet
if it is not already present.
src
- SecureHash
serversGuidSet
did not
already contain the specified server.public boolean contains(SecureHash src)
serversGuidSet
contains the
specified server
src
- SecureHash
serversGuidSet
already
contains the specified server.public int numberOfRequestedServers()
public int size()
serversGuidSet
serversGuidSet
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |