Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer Class Reference

Inherits Startable.

List of all members.

Public Member Functions

 ConcurrentDocumentServer (final ISarosSession sarosSession)
void start ()
void stop ()
void checkFileDeleted (final IActivity activity)
List< QueueItemtransformIncoming (final IActivity activity)
synchronized void reset (final User user, final SPath path)

Detailed Description

The ConcurrentDocumentServer is responsible for coordinating all JupiterActivities.

All clients (including the host!) will send their JupiterActivities to the ConcurrentDocumentServer on the host, which transforms them (using Jupiter) and then sends them to everybody else.

A ConcurrentDocumentServer exists only on the host!


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.ConcurrentDocumentServer ( final ISarosSession  sarosSession)

Member Function Documentation

void de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.checkFileDeleted ( final IActivity  activity)

Dispatched the activity to the internal ActivityReceiver. The ActivityReceiver will remove FileDocuments when the file has been deleted.

Parameters:
activityActivity to be dispatched
synchronized void de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.reset ( final User  user,
final SPath  path 
)

Resets the JupiterServer for the given combination and path and user.

When this is called on the host, a call to ConcurrentDocumentClient#reset(SPath) should be executed at the same time on the side of the given user.

void de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.start ( )
void de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.stop ( )
List<QueueItem> de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.transformIncoming ( final IActivity  activity)

Transforms the given activities on the server side and returns a list of QueueItems containing the transformed activities and there receivers.

Must be executed in the Saros dispatch thread.

This method may not be called from SWT, otherwise a deadlock might occur!!

Parameters:
activityActivity to be transformed
Returns:
A list of QueueItems containing the activities and receivers
 All Classes Namespaces Files Functions Variables Enumerations