|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.util.RspList
public class RspList
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> responses)
Adds a list of responses |
|
| Method Summary | |
|---|---|
void |
addNotReceived(Address sender)
|
void |
addRsp(Address sender,
java.lang.Object retval)
|
void |
addSuspect(Address sender)
|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.lang.Object |
elementAt(int i)
Deprecated. Use entrySet() or values() instead |
java.util.Set<java.util.Map.Entry<Address,Rsp>> |
entrySet()
|
Rsp |
get(java.lang.Object key)
Returns the Rsp associated with address key |
java.lang.Object |
getFirst()
Returns the first value in the response set. |
java.util.Vector<java.lang.Object> |
getResults()
Returns the results from non-suspected members that are not null. |
java.util.Vector<Address> |
getSuspectedMembers()
|
java.lang.Object |
getValue(java.lang.Object key)
Returns the value associated with address key |
boolean |
isEmpty()
|
boolean |
isReceived(Address sender)
|
boolean |
isSuspected(Address sender)
|
java.util.Set<Address> |
keySet()
|
int |
numReceived()
|
int |
numSuspectedMembers()
|
Rsp |
put(Address key,
Rsp value)
|
void |
putAll(java.util.Map<? extends Address,? extends Rsp> m)
|
Rsp |
remove(java.lang.Object key)
|
void |
reset()
Deprecated. Use clear() instead |
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection<Rsp> |
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> responses)
responses - Collection| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface java.util.Map<Address,Rsp>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<Address,Rsp>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<Address,Rsp>public Rsp get(java.lang.Object key)
get in interface java.util.Map<Address,Rsp>key - Address (key)
public java.lang.Object getValue(java.lang.Object key)
key -
public Rsp put(Address key,
Rsp value)
put in interface java.util.Map<Address,Rsp>public Rsp remove(java.lang.Object key)
remove in interface java.util.Map<Address,Rsp>public void putAll(java.util.Map<? extends Address,? extends Rsp> m)
putAll in interface java.util.Map<Address,Rsp>public void clear()
clear in interface java.util.Map<Address,Rsp>public java.util.Set<Address> keySet()
keySet in interface java.util.Map<Address,Rsp>public java.util.Collection<Rsp> values()
values in interface java.util.Map<Address,Rsp>public java.util.Set<java.util.Map.Entry<Address,Rsp>> entrySet()
entrySet in interface java.util.Map<Address,Rsp>public void reset()
clear() instead
public void addRsp(Address sender,
java.lang.Object retval)
public void addNotReceived(Address sender)
public void addSuspect(Address sender)
public boolean isReceived(Address sender)
public int numSuspectedMembers()
public int numReceived()
public java.lang.Object getFirst()
public java.util.Vector<java.lang.Object> getResults()
public java.util.Vector<Address> getSuspectedMembers()
public boolean isSuspected(Address sender)
public int size()
size in interface java.util.Map<Address,Rsp>
public java.lang.Object elementAt(int i)
throws java.lang.ArrayIndexOutOfBoundsException
entrySet() or values() instead
i - The index
java.lang.ArrayIndexOutOfBoundsExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||