org.eclipse.emf.cdo.server.net4j
Class FailoverAgent
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.server.net4j.FailoverAgent
- All Implemented Interfaces:
- CDOSessionConfigurationFactory, INotifier, ILifecycle, ILifecycle.DeferrableActivation
- public abstract class FailoverAgent
- extends Lifecycle
- implements CDOSessionConfigurationFactory
A repository-side agent for a fail-over monitor
.
- Since:
- 4.0
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
FailoverAgent
public FailoverAgent()
getMonitorConnector
public IConnector getMonitorConnector()
setMonitorConnector
public void setMonitorConnector(IConnector connector)
getTimer
public Timer getTimer()
setTimer
public void setTimer(Timer timer)
getRate
public long getRate()
setRate
public void setRate(long rate)
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
getGroup
public String getGroup()
setGroup
public void setGroup(String group)
getConnectorDescription
public String getConnectorDescription()
setConnectorDescription
public void setConnectorDescription(String connectorDescription)
getRepository
public ISynchronizableRepository getRepository()
setRepository
public void setRepository(ISynchronizableRepository repository)
getProtocol
public FailoverAgent.Protocol getProtocol()
createSessionConfiguration
public CDOSessionConfiguration createSessionConfiguration()
- Specified by:
createSessionConfiguration
in interface CDOSessionConfigurationFactory
doBeforeActivate
protected void doBeforeActivate()
throws Exception
- Overrides:
doBeforeActivate
in class Lifecycle
- Throws:
Exception
doActivate
protected void doActivate()
throws Exception
- Overrides:
doActivate
in class Lifecycle
- Throws:
Exception
doDeactivate
protected void doDeactivate()
throws Exception
- Overrides:
doDeactivate
in class Lifecycle
- Throws:
Exception
setMaster
protected void setMaster()
setBackup
protected void setBackup(String connectorDescription,
String repositoryName)
createSessionConfiguration
protected abstract CDOSessionConfiguration createSessionConfiguration(String connectorDescription,
String repositoryName)
getContainer
protected IManagedContainer getContainer()
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.