Package 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
,org.eclipse.net4j.util.container.IManagedContainerProvider
,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 abstract class FailoverAgent
extends org.eclipse.net4j.util.lifecycle.Lifecycle
implements CDOSessionConfigurationFactory, org.eclipse.net4j.util.container.IManagedContainerProvider
A repository-side agent for a
fail-over monitor
.- Since:
- 4.0
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The agent-side implementation of thefail-over monitor
protocol.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 TypeMethodDescriptionprotected IRepositorySynchronizer
protected abstract CDOSessionConfiguration
createSessionConfiguration
(String connectorDescription, String repositoryName) protected void
protected void
protected void
org.eclipse.net4j.util.container.IManagedContainer
getGroup()
org.eclipse.net4j.connector.IConnector
long
getRate()
long
long
getTimer()
protected void
void
setConnectorDescription
(String connectorDescription) void
protected void
void
setMonitorConnector
(org.eclipse.net4j.connector.IConnector connector) void
setRate
(long rate) void
setRepository
(ISynchronizableRepository repository) void
setRepositoryActivationTimeout
(long repositoryActivationTimeout) void
setTimeout
(long timeout) void
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
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, 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
-
Constructor Details
-
FailoverAgent
public FailoverAgent()
-
-
Method Details
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()- Specified by:
getContainer
in interfaceorg.eclipse.net4j.util.container.IManagedContainerProvider
- Since:
- 4.1
-
getMonitorConnector
public org.eclipse.net4j.connector.IConnector getMonitorConnector() -
setMonitorConnector
public void setMonitorConnector(org.eclipse.net4j.connector.IConnector connector) -
getTimer
-
setTimer
-
getRate
public long getRate() -
setRate
public void setRate(long rate) -
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
getGroup
-
setGroup
-
getConnectorDescription
-
setConnectorDescription
-
getRepository
-
setRepository
-
getRepositoryActivationTimeout
public long getRepositoryActivationTimeout()- Since:
- 4.1
-
setRepositoryActivationTimeout
public void setRepositoryActivationTimeout(long repositoryActivationTimeout) - Since:
- 4.1
-
getProtocol
-
createSessionConfiguration
- Specified by:
createSessionConfiguration
in interfaceCDOSessionConfigurationFactory
-
doBeforeActivate
- Overrides:
doBeforeActivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
doActivate
- Overrides:
doActivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
setMaster
protected void setMaster() -
setBackup
-
createRepositorySynchronizer
- Since:
- 4.1
-
createSessionConfiguration
protected abstract CDOSessionConfiguration createSessionConfiguration(String connectorDescription, String repositoryName)
-