KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > l2 > state > ElectionManager


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.l2.state;
6
7 import com.tc.l2.msg.L2StateMessage;
8 import com.tc.net.groups.NodeID;
9
10 public interface ElectionManager {
11
12   public NodeID runElection(NodeID myNodeId, boolean isNew);
13
14   public void declareWinner(NodeID myNodeId);
15   
16   public void handleStartElectionRequest(L2StateMessage msg);
17
18   public void handleElectionAbort(L2StateMessage msg);
19
20   public void handleElectionResultMessage(L2StateMessage msg);
21
22   public void reset();
23
24 }
25
Popular Tags