Package org.eclipse.emf.cdo.server.net4j

# Klasse FailoverAgent

java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.server.net4j.FailoverAgent

Alle implementierten Schnittstellen:
  `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`.

Seit:
  4.0
Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static class`
`FailoverAgent.Protocol`
The agent-side implementation of the `fail-over monitor` protocol.

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle

`org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier

`org.eclipse.net4j.util.event.INotifier.INotifier2`

## Feldübersicht

### Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle

`USE_LABEL`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`FailoverAgent()`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`protected IRepositorySynchronizer`
`createRepositorySynchronizer()`
`CDOSessionConfiguration`
`createSessionConfiguration()`
`protected abstract CDOSessionConfiguration`
`createSessionConfiguration(String connectorDescription, String repositoryName)`
`protected void`
`doActivate()`
`protected void`
`doBeforeActivate()`
`protected void`
`doDeactivate()`
`String`
`getConnectorDescription()`
`org.eclipse.net4j.util.container.IManagedContainer`
`getContainer()`
`String`
`getGroup()`
`org.eclipse.net4j.connector.IConnector`
`getMonitorConnector()`
`FailoverAgent.Protocol`
`getProtocol()`
`long`
`getRate()`
`ISynchronizableRepository`
`getRepository()`
`long`
`getRepositoryActivationTimeout()`
`long`
`getTimeout()`
`Timer`
`getTimer()`
`protected void`
`setBackup(String connectorDescription, String repositoryName)`
`void`
`setConnectorDescription(String connectorDescription)`
`void`
`setGroup(String group)`
`protected void`
`setMaster()`
`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`
`setTimer(Timer timer)`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle

`activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier

`addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier

`addListener, getListeners, hasListeners, removeListener`

## Konstruktordetails

### FailoverAgent

public FailoverAgent()

## Methodendetails

### getContainer

public org.eclipse.net4j.util.container.IManagedContainer getContainer()

Angegeben von:
  `getContainer` in Schnittstelle `org.eclipse.net4j.util.container.IManagedContainerProvider`
Seit:
  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()

Seit:
  4.1

### setRepositoryActivationTimeout

public void setRepositoryActivationTimeout(long repositoryActivationTimeout)

Seit:
  4.1

### getProtocol

public FailoverAgent.Protocol getProtocol()

### createSessionConfiguration

public CDOSessionConfiguration createSessionConfiguration()

Angegeben von:
  `createSessionConfiguration` in Schnittstelle `CDOSessionConfigurationFactory`

### doBeforeActivate

protected void doBeforeActivate() throws Exception

Setzt außer Kraft:
  `doBeforeActivate` in Klasse `org.eclipse.net4j.util.lifecycle.Lifecycle`
Löst aus:
  `Exception`

### doActivate

protected void doActivate() throws Exception

Setzt außer Kraft:
  `doActivate` in Klasse `org.eclipse.net4j.util.lifecycle.Lifecycle`
Löst aus:
  `Exception`

### doDeactivate

protected void doDeactivate() throws Exception

Setzt außer Kraft:
  `doDeactivate` in Klasse `org.eclipse.net4j.util.lifecycle.Lifecycle`
Löst aus:
  `Exception`

### setMaster

protected void setMaster()

### setBackup

protected void setBackup(String connectorDescription, String repositoryName)

### createRepositorySynchronizer

protected IRepositorySynchronizer createRepositorySynchronizer()

Seit:
  4.1

### createSessionConfiguration

protected abstract CDOSessionConfiguration createSessionConfiguration(String connectorDescription, String repositoryName)