public abstract class FailoverAgent extends Lifecycle implements CDOSessionConfigurationFactory
fail-over monitor.| Modifier and Type | Class and Description |
|---|---|
static class |
FailoverAgent.Protocol
The agent-side implementation of the
fail-over monitor protocol. |
ILifecycle.DeferrableActivation| Constructor and Description |
|---|
FailoverAgent() |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic IManagedContainer getContainer()
public IConnector getMonitorConnector()
public void setMonitorConnector(IConnector connector)
public Timer getTimer()
public void setTimer(Timer timer)
public long getRate()
public void setRate(long rate)
public long getTimeout()
public void setTimeout(long timeout)
public String getGroup()
public void setGroup(String group)
public String getConnectorDescription()
public void setConnectorDescription(String connectorDescription)
public ISynchronizableRepository getRepository()
public void setRepository(ISynchronizableRepository repository)
public long getRepositoryActivationTimeout()
public void setRepositoryActivationTimeout(long repositoryActivationTimeout)
public FailoverAgent.Protocol getProtocol()
public CDOSessionConfiguration createSessionConfiguration()
createSessionConfiguration in interface CDOSessionConfigurationFactoryprotected void doBeforeActivate()
throws Exception
doBeforeActivate in class LifecycleExceptionprotected void doActivate()
throws Exception
doActivate in class LifecycleExceptionprotected void doDeactivate()
throws Exception
doDeactivate in class LifecycleExceptionprotected void setMaster()
protected IRepositorySynchronizer createRepositorySynchronizer()
protected abstract CDOSessionConfiguration createSessionConfiguration(String connectorDescription, String repositoryName)
Copyright (c) 2014 Eike Stepper (Berlin, 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