synchronization
Class SynchronizationService

java.lang.Object
  extended by synchronization.SynchronizationService

public abstract class SynchronizationService
extends Object


Field Summary
(package private)  SynchronizationStrategy syncStrategy
           
(package private)  TopologyService topologyService
          The SynchronizationService needs a list of the online devices and their connectivity information in order to synchronize changes.
(package private)  UserIO userIO
          The SynchronizationService notifies the user about the state of files (finish synchronizing or not, problems that may occur etc).
 
Constructor Summary
SynchronizationService()
           
 
Method Summary
abstract  void pullChanges(Group group)
          Pulls all changes (group or filesystem) from other online devices in the given group.
abstract  void synchornizeFilesystemChange(Change change)
          Pushes the filesystem change to other online devices in the group.
abstract  void synchronizeGroupChange(Change change)
          Pushes the group change to other online devices in the group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

syncStrategy

SynchronizationStrategy syncStrategy

topologyService

TopologyService topologyService
The SynchronizationService needs a list of the online devices and their connectivity information in order to synchronize changes. It obtains this list from the TopologyService.


userIO

UserIO userIO
The SynchronizationService notifies the user about the state of files (finish synchronizing or not, problems that may occur etc).

Constructor Detail

SynchronizationService

public SynchronizationService()
Method Detail

synchronizeGroupChange

public abstract void synchronizeGroupChange(Change change)
Pushes the group change to other online devices in the group.

Parameters:
change -

synchornizeFilesystemChange

public abstract void synchornizeFilesystemChange(Change change)
Pushes the filesystem change to other online devices in the group.

Parameters:
change -

pullChanges

public abstract void pullChanges(Group group)
Pulls all changes (group or filesystem) from other online devices in the given group.

Parameters:
group -