water.util
Class TimelineSnapshot.Event
java.lang.Object
water.util.TimelineSnapshot.Event
- Enclosing class:
- TimelineSnapshot
public class TimelineSnapshot.Event
- extends java.lang.Object
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
_nodeId
public final int _nodeId
TimelineSnapshot.Event
public TimelineSnapshot.Event(int nodeId,
int eventIdx)
hashCode
public final int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
send_recv
public final int send_recv()
dropped
public final int dropped()
isSend
public final boolean isSend()
isRecv
public final boolean isRecv()
isDropped
public final boolean isDropped()
addrPack
public final java.net.InetAddress addrPack()
dataLo
public final long dataLo()
dataHi
public final long dataHi()
ns
public final long ns()
isTCP
public final boolean isTCP()
ms
public final long ms()
packH2O
public H2ONode packH2O()
recoH2O
public H2ONode recoH2O()
portPack
public final int portPack()
addrString
public final java.lang.String addrString()
ioflavor
public final java.lang.String ioflavor()
is_io
public final int is_io()
ms_io
public final int ms_io()
size_io
public final int size_io()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isEmpty
public final boolean isEmpty()
clone
public final TimelineSnapshot.Event clone()
- Overrides:
clone
in class java.lang.Object
compareTo
public final int compareTo(TimelineSnapshot.Event ev)
- Used to determine ordering of events not bound by any dependency.
Events compared according to following rules:
Receives go before sends. Since we are only here with unbound events,
unbound receives means their sender has already appeared and they
should go adjacent to their sender.
For two sends, pick the one with receives with smallest timestamp (ms)
otherwise pick the sender with smallest timestamp (ms)
- Parameters:
other
- other Event to compare
- Returns: