Package 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.lifecycle.ShareableLifecycle
org.eclipse.net4j.util.container.Container<FailoverMonitor.AgentProtocol>
org.eclipse.emf.cdo.server.net4j.FailoverMonitor
- All Implemented Interfaces:
org.eclipse.net4j.util.container.IContainer<FailoverMonitor.AgentProtocol>
,org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.event.INotifier.INotifier2
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
public class FailoverMonitor
extends org.eclipse.net4j.util.container.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
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An abstract base class for theserver-side protocol factories
required by afail-over monitor
.static class
The monitor-side implementation of thefail-over monitor
agent protocol.static class
The monitor-side implementation of thefail-over monitor
client protocol.static class
Createsfail-over monitor
instances.static interface
Provides afail-over monitor
for a given named fail-over group.Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistence<E extends Object>
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected FailoverMonitor.AgentProtocol
getGroup()
boolean
isEmpty()
void
void
Methods inherited from class org.eclipse.net4j.util.container.Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, 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
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
PRODUCT_GROUP
- See Also:
-
PROTOCOL_NAME
- See Also:
-
SIGNAL_PUBLISH_MASTER
public static final short SIGNAL_PUBLISH_MASTER- See Also:
-
-
Constructor Details
-
FailoverMonitor
public FailoverMonitor()
-
-
Method Details
-
getGroup
-
setGroup
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.eclipse.net4j.util.container.IContainer<FailoverMonitor.AgentProtocol>
- Overrides:
isEmpty
in classorg.eclipse.net4j.util.container.Container<FailoverMonitor.AgentProtocol>
-
getElements
-
getMasterAgent
-
registerAgent
-
deregisterAgent
-
doBeforeActivate
- Overrides:
doBeforeActivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
electNewMaster
-