Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Inherits Startable.
Public Member Functions | |
ConcurrentDocumentServer (final ISarosSession sarosSession) | |
void | start () |
void | stop () |
void | checkFileDeleted (final IActivity activity) |
List< QueueItem > | transformIncoming (final IActivity activity) |
synchronized void | reset (final User user, final SPath path) |
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!
de.fu_berlin.inf.dpp.concurrent.management.ConcurrentDocumentServer.ConcurrentDocumentServer | ( | final ISarosSession | sarosSession | ) |
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.
activity | Activity 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!!
activity | Activity to be transformed |