ElectionManager.java :  » Net » Terracotta » com » tc » l2 » state » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » l2 » state » ElectionManager.java
/*
 * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
 * notice. All rights reserved.
 */
package com.tc.l2.state;

import com.tc.l2.ha.WeightGeneratorFactory;
import com.tc.l2.msg.L2StateMessage;
import com.tc.net.groups.NodeID;

public interface ElectionManager {

  public NodeID runElection(NodeID myNodeId, boolean isNew, WeightGeneratorFactory weightsFactory);

  public void declareWinner(NodeID myNodeId);

  public boolean handleStartElectionRequest(L2StateMessage msg);

  public void handleElectionAbort(L2StateMessage msg);

  public void handleElectionResultMessage(L2StateMessage msg);

  public void reset(Enrollment winner);

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.