org.eclipse.emf.cdo.server.net4j
Class FailoverMonitor
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.container.Container<FailoverMonitor.AgentProtocol>
org.eclipse.emf.cdo.server.net4j.FailoverMonitor
- All Implemented Interfaces:
- IContainer<FailoverMonitor.AgentProtocol>, INotifier, ILifecycle, ILifecycle.DeferrableActivation
- public class FailoverMonitor
- extends Container<FailoverMonitor.AgentProtocol>
A facility for monitoring a variable set of fail-over participant
repositories and electing,
as well as promoting, a master
repository among them.
- Since:
- 4.0
Methods inherited from class org.eclipse.net4j.util.container.Container |
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, isEmpty, newContainerEvent, newContainerEvent |
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
PRODUCT_GROUP
public static final String PRODUCT_GROUP
- See Also:
- Constant Field Values
PROTOCOL_NAME
public static final String PROTOCOL_NAME
- See Also:
- Constant Field Values
SIGNAL_PUBLISH_MASTER
public static final short SIGNAL_PUBLISH_MASTER
- See Also:
- Constant Field Values
FailoverMonitor
public FailoverMonitor()
getGroup
public String getGroup()
setGroup
public void setGroup(String group)
getElements
public FailoverMonitor.AgentProtocol[] getElements()
getMasterAgent
public FailoverMonitor.AgentProtocol getMasterAgent()
registerAgent
public void registerAgent(FailoverMonitor.AgentProtocol agent)
deregisterAgent
public void deregisterAgent(FailoverMonitor.AgentProtocol agent)
doBeforeActivate
protected void doBeforeActivate()
throws Exception
- Overrides:
doBeforeActivate
in class Lifecycle
- Throws:
Exception
electNewMaster
protected FailoverMonitor.AgentProtocol electNewMaster(List<FailoverMonitor.AgentProtocol> agents)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.