private long machineid;
private Vector<Entry> entries;
private int livecount;
-
+ private boolean seqnumlive;
+
Slot(long _seqnum, long _machineid, byte[] _prevhmac, byte[] _hmac) {
seqnum=_seqnum;
machineid=_machineid;
hmac=_hmac;
entries=new Vector<Entry>();
livecount=1;
+ seqnumlive=true;
}
- Slot(long _seqnum, byte[] _bytes) {
- seqnum=_seqnum;
+ Slot(long _seqnum, long _machineid, byte[] _prevhmac) {
+ this(_seqnum, _machineid, _prevhmac, new byte[HMAC_SIZE]);
}
byte[] getHMAC() {
return null;
}
+ void setDead() {
+ decrementLiveCount();
+ seqnumlive=false;
+ }
+
void decrementLiveCount() {
livecount--;
}