01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.l2.state;
06:
07: import com.tc.l2.ha.WeightGeneratorFactory;
08: import com.tc.l2.msg.L2StateMessage;
09: import com.tc.net.groups.NodeID;
10:
11: public interface ElectionManager {
12:
13: public NodeID runElection(NodeID myNodeId, boolean isNew,
14: WeightGeneratorFactory weightsFactory);
15:
16: public void declareWinner(NodeID myNodeId);
17:
18: public boolean handleStartElectionRequest(L2StateMessage msg);
19:
20: public void handleElectionAbort(L2StateMessage msg);
21:
22: public void handleElectionResultMessage(L2StateMessage msg);
23:
24: public void reset(Enrollment winner);
25:
26: }
|