|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.util.RspList<T>
public class RspList<T>
Contains responses from all members. Marks faulty members. A RspList is a response list used in peer-to-peer protocols. This class is unsynchronized
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
RspList()
|
|
RspList(java.util.Collection<Rsp<T>> responses)
Adds a list of responses |
Method Summary | |
---|---|
void |
addNotReceived(Address sender)
|
void |
addRsp(Address sender,
T retval)
|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set<java.util.Map.Entry<Address,Rsp<T>>> |
entrySet()
|
Rsp<T> |
get(java.lang.Object key)
Returns the Rsp associated with address key |
T |
getFirst()
Returns the first value in the response set. |
java.util.List<T> |
getResults()
Returns the results from non-suspected members that are not null. |
java.util.List<Address> |
getSuspectedMembers()
|
T |
getValue(java.lang.Object key)
Returns the value associated with address key |
boolean |
isEmpty()
|
boolean |
isReceived(Address sender)
|
boolean |
isSuspected(Address sender)
|
java.util.Iterator<Rsp<T>> |
iterator()
|
java.util.Set<Address> |
keySet()
|
int |
numReceived()
|
int |
numSuspectedMembers()
|
Rsp<T> |
put(Address key,
Rsp<T> value)
|
void |
putAll(java.util.Map<? extends Address,? extends Rsp<T>> m)
|
Rsp<T> |
remove(java.lang.Object key)
|
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection<Rsp<T>> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public RspList()
public RspList(java.util.Collection<Rsp<T>> responses)
responses
- CollectionMethod Detail |
---|
public boolean isEmpty()
isEmpty
in interface java.util.Map<Address,Rsp<T>>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<Address,Rsp<T>>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<Address,Rsp<T>>
public Rsp<T> get(java.lang.Object key)
get
in interface java.util.Map<Address,Rsp<T>>
key
- Address (key)
public T getValue(java.lang.Object key)
key
-
public Rsp<T> put(Address key, Rsp<T> value)
put
in interface java.util.Map<Address,Rsp<T>>
public Rsp<T> remove(java.lang.Object key)
remove
in interface java.util.Map<Address,Rsp<T>>
public void putAll(java.util.Map<? extends Address,? extends Rsp<T>> m)
putAll
in interface java.util.Map<Address,Rsp<T>>
public void clear()
clear
in interface java.util.Map<Address,Rsp<T>>
public java.util.Set<Address> keySet()
keySet
in interface java.util.Map<Address,Rsp<T>>
public java.util.Collection<Rsp<T>> values()
values
in interface java.util.Map<Address,Rsp<T>>
public java.util.Set<java.util.Map.Entry<Address,Rsp<T>>> entrySet()
entrySet
in interface java.util.Map<Address,Rsp<T>>
public void addRsp(Address sender, T retval)
public void addNotReceived(Address sender)
public boolean isReceived(Address sender)
public int numSuspectedMembers()
public int numReceived()
public T getFirst()
public java.util.List<T> getResults()
public java.util.List<Address> getSuspectedMembers()
public boolean isSuspected(Address sender)
public int size()
size
in interface java.util.Map<Address,Rsp<T>>
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<Rsp<T>> iterator()
iterator
in interface java.lang.Iterable<Rsp<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |