|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.mcast.RespList
public class RespList
Models a list of Response objects.
| Constructor Summary | |
|---|---|
RespList(int capacity)
Constructor for RespList. |
|
| Method Summary | |
|---|---|
void |
addResponse(Response resp)
Adds the given response to this instance. |
boolean |
containsError()
Returns true if this instance contains a
Response object that represents an error
that occurred on the remote side. |
boolean |
containsSuspect()
Returns true if this instance contains
a Response object whose status is "suspect" -
meaning that the corresponding node is probably down. |
int |
count()
Returns the number of responses within this instance. |
Response |
get(int index)
Returns the Response object at
the given index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RespList(int capacity)
| Method Detail |
|---|
public void addResponse(Response resp)
a - Response object.public Response get(int index)
Response object at
the given index.
a - Response object.public boolean containsError()
true if this instance contains a
Response object that represents an error
that occurred on the remote side.
true if this instance contains a
Response object that holds a Throwablepublic boolean containsSuspect()
true if this instance contains
a Response object whose status is "suspect" -
meaning that the corresponding node is probably down.
true if this instance contains
a Response whose corresponding node is probably
down.public int count()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||