org.sapia.ubik.mcast
Class RespList

java.lang.Object
  extended by org.sapia.ubik.mcast.RespList

public class RespList
extends java.lang.Object

Models a list of Response objects.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

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

RespList

public RespList(int capacity)
Constructor for RespList.

Method Detail

addResponse

public void addResponse(Response resp)
Adds the given response to this instance.

Parameters:
a - Response object.

get

public Response get(int index)
Returns the Response object at the given index.

Parameters:
a - Response object.

containsError

public boolean containsError()
Returns true if this instance contains a Response object that represents an error that occurred on the remote side.

Returns:
true if this instance contains a Response object that holds a Throwable

containsSuspect

public boolean containsSuspect()
Returns true if this instance contains a Response object whose status is "suspect" - meaning that the corresponding node is probably down.

Returns:
true if this instance contains a Response whose corresponding node is probably down.

count

public int count()
Returns the number of responses within this instance.

Returns:
the number of responses within this instance.


Copyright © 2010 Sapia OSS. All Rights Reserved.