Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.concurrent.watchdog.ConsistencyWatchdogClient Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.concurrent.watchdog.ConsistencyWatchdogClient:
de.fu_berlin.inf.dpp.session.AbstractActivityProducer de.fu_berlin.inf.dpp.session.IActivityProducer

List of all members.

Public Member Functions

 ConsistencyWatchdogClient (final ISarosSessionManager sessionManager, final IsInconsistentObservable inconsistencyToResolve, final EditorManager editorManager, final IEditorAPI editorAPI, final RemoteProgressManager remoteProgressManager)
void dispose ()
Set< SPathgetPathsWithWrongChecksums ()
void runRecovery (IProgressMonitor monitor)

Detailed Description

This class is responsible for two things:

  1. Process checksums sent to us from the server by checking our locally existing files against them. See performCheck(ChecksumActivity) If an inconsistency is detected the inconsistency state is set via the IsInconsistentObservable. This enables the ConsistencyAction in the SarosView.
  2. Send a ChecksumError to the host, if the user wants to recover from an inconsistency. See runRecovery

This class both produces and consumes activities.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.concurrent.watchdog.ConsistencyWatchdogClient.ConsistencyWatchdogClient ( final ISarosSessionManager  sessionManager,
final IsInconsistentObservable  inconsistencyToResolve,
final EditorManager  editorManager,
final IEditorAPI  editorAPI,
final RemoteProgressManager  remoteProgressManager 
)

Member Function Documentation

void de.fu_berlin.inf.dpp.concurrent.watchdog.ConsistencyWatchdogClient.dispose ( )
Set<SPath> de.fu_berlin.inf.dpp.concurrent.watchdog.ConsistencyWatchdogClient.getPathsWithWrongChecksums ( )

Returns the set of files for which the ConsistencyWatchdog has identified an inconsistency

void de.fu_berlin.inf.dpp.concurrent.watchdog.ConsistencyWatchdogClient.runRecovery ( IProgressMonitor  monitor)

Start a consistency recovery by sending a checksum error to the host and waiting for his reply.
The cancellation of this method is not implemented, so canceling the given monitor does not have any effect.

This method should not be called from SWT This method returns after the recovery has finished Can only be called on the client!

 All Classes Namespaces Files Functions Variables Enumerations