|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.network.StatusTableEvent
public class StatusTableEvent
Wraps the information describing a status table modification.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_AFFECTS_CONNECTIVITY
The default value for whether this event affects the connectivity of the server. |
static boolean |
DEFAULT_AFFECTS_HASH_SPANS
|
| Constructor Summary | |
|---|---|
StatusTableEvent(java.util.Collection<java.lang.String> hosts)
|
|
StatusTableEvent(java.util.Map<java.lang.String,java.lang.Boolean> hosts,
java.util.Map<java.lang.String,java.lang.Boolean> affectsHashSpans)
|
|
StatusTableEvent(java.lang.String host)
|
|
StatusTableEvent(java.lang.String host,
boolean affectsConnectivity,
boolean affectsHashSpans)
|
|
| Method Summary | |
|---|---|
boolean |
affectedConnectivity(java.lang.String host)
|
boolean |
affectedHashSpans(java.lang.String host)
|
java.util.Set<java.lang.String> |
getHosts()
Returns a map of host names to whether the event affects the connectivity of the server. |
long |
getTimestamp()
Returns the timestamp the event occurred. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_AFFECTS_CONNECTIVITY
The default value for whether this event affects the connectivity of the server.
public static final boolean DEFAULT_AFFECTS_HASH_SPANS
| Constructor Detail |
|---|
public StatusTableEvent(java.lang.String host,
boolean affectsConnectivity,
boolean affectsHashSpans)
host - A host nameaffectsConnectivity - Whether this event affects the connectivity of the serveraffectsHashSpans - Whether this even affects the hash spans of the serverpublic StatusTableEvent(java.lang.String host)
host - A host name
public StatusTableEvent(java.util.Map<java.lang.String,java.lang.Boolean> hosts,
java.util.Map<java.lang.String,java.lang.Boolean> affectsHashSpans)
hosts - Host names to whether the event affects the connectivity of the serveraffectsHashSpans - Host names to whether the event affects the hash spans of the serverpublic StatusTableEvent(java.util.Collection<java.lang.String> hosts)
hosts - | Method Detail |
|---|
public java.util.Set<java.lang.String> getHosts()
Returns a map of host names to whether the event affects the connectivity of the server.
public boolean affectedConnectivity(java.lang.String host)
host -
public boolean affectedHashSpans(java.lang.String host)
host -
public long getTimestamp()
Returns the timestamp the event occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||