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
  • Constructor Details

    • FailoverAgent

      public FailoverAgent()
  • Method Details

    • getContainer

      public org.eclipse.net4j.util.container.IManagedContainer getContainer()
      Specified by:
      getContainer in interface org.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

      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)
    • getRepositoryActivationTimeout

      public long getRepositoryActivationTimeout()
      Since:
      4.1
    • setRepositoryActivationTimeout

      public void setRepositoryActivationTimeout(long repositoryActivationTimeout)
      Since:
      4.1
    • 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 org.eclipse.net4j.util.lifecycle.Lifecycle
      Throws:
      Exception
    • doActivate

      protected void doActivate() throws Exception
      Overrides:
      doActivate in class org.eclipse.net4j.util.lifecycle.Lifecycle
      Throws:
      Exception
    • doDeactivate

      protected void doDeactivate() throws Exception
      Overrides:
      doDeactivate in class org.eclipse.net4j.util.lifecycle.Lifecycle
      Throws:
      Exception
    • setMaster

      protected void setMaster()
    • setBackup

      protected void setBackup(String connectorDescription, String repositoryName)
    • createRepositorySynchronizer

      protected IRepositorySynchronizer createRepositorySynchronizer()
      Since:
      4.1
    • createSessionConfiguration

      protected abstract CDOSessionConfiguration createSessionConfiguration(String connectorDescription, String repositoryName)