Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jgroups.util
Class RspList  view RspList download RspList.java

java.lang.Object
  extended byorg.jgroups.util.RspList

public class RspList
extends java.lang.Object

Contains responses from all members. Marks faulty members. A RspList is a response list used in peer-to-peer protocols.


Field Summary
(package private)  java.util.Vector rsps
           
 
Constructor Summary
RspList()
           
RspList(java.util.Collection responses)
           
 
Method Summary
 void addNotReceived(org.jgroups.Address sender)
           
 void addRsp(org.jgroups.Address sender, java.lang.Object retval)
           
 void addSuspect(org.jgroups.Address sender)
           
(package private)  boolean contains(org.jgroups.Address sender)
           
 java.lang.Object elementAt(int i)
           
(package private)  Rsp find(org.jgroups.Address sender)
           
 java.lang.Object get(org.jgroups.Address sender)
           
 java.lang.Object getFirst()
           
 java.util.Vector getResults()
          Returns the results from non-suspected members that are not null.
 java.util.Vector getSuspectedMembers()
           
 boolean isReceived(org.jgroups.Address sender)
           
 boolean isSuspected(org.jgroups.Address sender)
           
 int numSuspectedMembers()
           
 void reset()
           
 int size()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rsps

final java.util.Vector rsps
Constructor Detail

RspList

public RspList()

RspList

public RspList(java.util.Collection responses)
Method Detail

reset

public void reset()

addRsp

public void addRsp(org.jgroups.Address sender,
                   java.lang.Object retval)

addNotReceived

public void addNotReceived(org.jgroups.Address sender)

addSuspect

public void addSuspect(org.jgroups.Address sender)

isReceived

public boolean isReceived(org.jgroups.Address sender)

numSuspectedMembers

public int numSuspectedMembers()

getFirst

public java.lang.Object getFirst()

getResults

public java.util.Vector getResults()
Returns the results from non-suspected members that are not null.


getSuspectedMembers

public java.util.Vector getSuspectedMembers()

isSuspected

public boolean isSuspected(org.jgroups.Address sender)

get

public java.lang.Object get(org.jgroups.Address sender)

size

public int size()

elementAt

public java.lang.Object elementAt(int i)
                           throws java.lang.ArrayIndexOutOfBoundsException

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


contains

boolean contains(org.jgroups.Address sender)

find

Rsp find(org.jgroups.Address sender)