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

Quick Search    Search Deep

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

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

public class AckCollector
extends java.lang.Object

Version:
$Id: AckCollector.java,v 1.5 2005/10/10 12:23:10 belaban Exp $

Field Summary
private  Promise all_acks_received
           
private  java.util.List missing_acks
          List: list of members from whom we haven't received an ACK yet
private  org.jgroups.ViewId proposed_view
           
private  java.util.Set received_acks
           
private  java.util.Set suspected_mbrs
           
 
Constructor Summary
AckCollector()
           
AckCollector(org.jgroups.ViewId v, java.util.List l)
           
 
Method Summary
 void ack(java.lang.Object member)
           
 java.util.List getMissing()
           
 java.util.Set getReceived()
           
 org.jgroups.ViewId getViewId()
           
 void handleView(org.jgroups.View v)
           
 void reset(org.jgroups.ViewId v, java.util.List l)
           
 int size()
           
 void suspect(java.lang.Object member)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void unsuspect(java.lang.Object member)
           
 boolean waitForAllAcks()
           
 boolean waitForAllAcks(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

missing_acks

private final java.util.List missing_acks
List: list of members from whom we haven't received an ACK yet


received_acks

private final java.util.Set received_acks

all_acks_received

private final Promise all_acks_received

proposed_view

private org.jgroups.ViewId proposed_view

suspected_mbrs

private final java.util.Set suspected_mbrs
Constructor Detail

AckCollector

public AckCollector()

AckCollector

public AckCollector(org.jgroups.ViewId v,
                    java.util.List l)
Method Detail

getMissing

public java.util.List getMissing()

getReceived

public java.util.Set getReceived()

getViewId

public org.jgroups.ViewId getViewId()

reset

public void reset(org.jgroups.ViewId v,
                  java.util.List l)

size

public int size()

ack

public void ack(java.lang.Object member)

suspect

public void suspect(java.lang.Object member)

unsuspect

public void unsuspect(java.lang.Object member)

handleView

public void handleView(org.jgroups.View v)

waitForAllAcks

public boolean waitForAllAcks()

waitForAllAcks

public boolean waitForAllAcks(long timeout)
                       throws org.jgroups.TimeoutException

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()).