public class FailoverMonitor extends Container<FailoverMonitor.AgentProtocol>
fail-over participant repositories and electing,
as well as promoting, a master repository among them.| Modifier and Type | Class and Description |
|---|---|
static class |
FailoverMonitor.AbstractServerProtocolFactory
An abstract base class for the
server-side protocol factories
required by a fail-over monitor. |
static class |
FailoverMonitor.AgentProtocol
The monitor-side implementation of the
fail-over monitor agent protocol. |
static class |
FailoverMonitor.ClientProtocol
The monitor-side implementation of the
fail-over monitor client protocol. |
static class |
FailoverMonitor.Factory
Creates
fail-over monitor instances. |
static interface |
FailoverMonitor.Provider
Provides a
fail-over monitor for a given named fail-over group. |
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>ILifecycle.DeferrableActivation| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRODUCT_GROUP |
static java.lang.String |
PROTOCOL_NAME |
static short |
SIGNAL_PUBLISH_MASTER |
| Constructor and Description |
|---|
FailoverMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterAgent(FailoverMonitor.AgentProtocol agent) |
protected void |
doBeforeActivate() |
protected FailoverMonitor.AgentProtocol |
electNewMaster(java.util.List<FailoverMonitor.AgentProtocol> agents) |
FailoverMonitor.AgentProtocol[] |
getElements() |
java.lang.String |
getGroup() |
FailoverMonitor.AgentProtocol |
getMasterAgent() |
boolean |
isEmpty() |
void |
registerAgent(FailoverMonitor.AgentProtocol agent) |
void |
setGroup(java.lang.String group) |
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic static final java.lang.String PRODUCT_GROUP
public static final java.lang.String PROTOCOL_NAME
public static final short SIGNAL_PUBLISH_MASTER
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
public boolean isEmpty()
isEmpty in interface IContainer<FailoverMonitor.AgentProtocol>isEmpty in class Container<FailoverMonitor.AgentProtocol>public FailoverMonitor.AgentProtocol[] getElements()
public FailoverMonitor.AgentProtocol getMasterAgent()
public void registerAgent(FailoverMonitor.AgentProtocol agent)
public void deregisterAgent(FailoverMonitor.AgentProtocol agent)
protected void doBeforeActivate()
throws java.lang.Exception
doBeforeActivate in class Lifecyclejava.lang.Exceptionprotected FailoverMonitor.AgentProtocol electNewMaster(java.util.List<FailoverMonitor.AgentProtocol> agents)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html