org.eclipse.emf.cdo.server.net4j
Class FailoverAgent.Protocol

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.lifecycle.Lifecycle
          extended by org.eclipse.spi.net4j.Protocol<INFRA_STRUCTURE>
              extended by org.eclipse.net4j.signal.SignalProtocol<Object>
                  extended by org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol
                      extended by org.eclipse.emf.cdo.server.net4j.FailoverAgent.Protocol
All Implemented Interfaces:
IBufferHandler, ILocationAware, IProtocol<Object>, ISignalProtocol<Object>, INotifier, ILifecycle, ILifecycle.DeferrableActivation, IUserAware
Enclosing class:
FailoverAgent

public static class FailoverAgent.Protocol
extends HeartBeatProtocol

The agent-side implementation of the fail-over monitor protocol.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol
HeartBeatProtocol.Server
 
Nested classes/interfaces inherited from class org.eclipse.net4j.signal.SignalProtocol
SignalProtocol.TimeoutChangedEvent
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.ILocationAware
ILocationAware.Location
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
Field Summary
 
Fields inherited from class org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol
TYPE
 
Fields inherited from class org.eclipse.net4j.signal.SignalProtocol
SIGNAL_MONITOR_CANCELED, SIGNAL_MONITOR_PROGRESS, SIGNAL_REMOTE_EXCEPTION, SIGNAL_SET_TIMEOUT
 
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
 
Fields inherited from interface org.eclipse.net4j.signal.ISignalProtocol
DEFAULT_TIMEOUT, NO_TIMEOUT
 
Constructor Summary
FailoverAgent.Protocol(FailoverAgent agent)
           
 
Method Summary
protected  SignalReactor createSignalReactor(short signalID)
           
 FailoverAgent getAgent()
           
protected  void requestingStart(ExtendedDataOutputStream out, long rate)
           
 
Methods inherited from class org.eclipse.net4j.signal.heartbeat.HeartBeatProtocol
doDeactivate, getDefaultTimer, getTimer, handleTimeout, start, start
 
Methods inherited from class org.eclipse.net4j.signal.SignalProtocol
addStreamWrapper, close, doAfterActivate, doBeforeDeactivate, getStreamWrapper, getTimeout, handleBuffer, handleChannelDeactivation, isSendingTimeoutChanges, open, provideSignalReactor, setStreamWrapper, setTimeout, toString, waitForSignals
 
Methods inherited from class org.eclipse.spi.net4j.Protocol
doBeforeActivate, getBufferProvider, getChannel, getExecutorService, getInfraStructure, getLocation, getType, getUserID, isClient, isServer, setChannel, setExecutorService, setInfraStructure, setUserID
 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, dump, getLifecycleState, isActive, isDeferredActivation
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, fireEvent, fireEvent, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, 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.protocol.IProtocol
getBufferProvider, getChannel, getExecutorService, getInfraStructure, getType, setChannel, setExecutorService, setInfraStructure
 
Methods inherited from interface org.eclipse.net4j.util.security.IUserAware
getUserID
 
Methods inherited from interface org.eclipse.net4j.ILocationAware
getLocation, isClient, isServer
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Constructor Detail

FailoverAgent.Protocol

public FailoverAgent.Protocol(FailoverAgent agent)
Method Detail

getAgent

public FailoverAgent getAgent()

requestingStart

protected void requestingStart(ExtendedDataOutputStream out,
                               long rate)
                        throws IOException
Overrides:
requestingStart in class HeartBeatProtocol
Throws:
IOException

createSignalReactor

protected SignalReactor createSignalReactor(short signalID)
Overrides:
createSignalReactor in class HeartBeatProtocol


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.