C# Class RavenFS.Synchronization.SynchronizationTask

Exibir arquivo Open project: hibernating-rhinos/RavenFS

Public Methods

Method Description
Cancel ( string fileName ) : void
SynchronizationTask ( TransactionalStorage storage, SigGenerator sigGenerator, NotificationPublisher publisher, InMemoryConfiguration systemConfiguration ) : System
SynchronizeDestinationsAsync ( bool forceSyncingContinuation = true ) : Task
SynchronizeFileToAsync ( string fileName, string destinationUrl ) : Task

Private Methods

Method Description
AvailableSynchronizationRequestsTo ( string destination ) : int
CanSynchronizeTo ( string destination ) : bool
ConfirmPushedFiles ( IList filesNeedConfirmation, RavenFileSystemClient destinationClient ) : Task>
CreateSyncingConfiguration ( string fileName, System.Guid etag, string destination, SynchronizationType synchronizationType ) : void
EnqueueMissingUpdatesAsync ( RavenFileSystemClient destinationClient, SourceSynchronizationInformation lastEtag, IList needSyncingAgain ) : System.Threading.Tasks.Task
GetFilesToSynchronization ( SourceSynchronizationInformation destinationsSynchronizationInformationForSource, int take ) : IEnumerable
GetLocalMetadata ( string fileName ) : NameValueCollection
GetSynchronizationDestinations ( ) : IEnumerable
GetSyncingConfigurations ( string destination ) : IEnumerable
InitializeTimer ( ) : void
LimitOfConcurrentSynchronizations ( ) : int
LogFilesInfo ( string message, ICollection files ) : void
PerformSynchronizationAsync ( string destinationUrl, SynchronizationWorkItem work ) : Task
RemoveSyncingConfiguration ( string fileName, string destination ) : void
SynchronizeDestinationAsync ( string destinationUrl, bool forceSyncingContinuation ) : Task
SynchronizePendingFilesAsync ( string destinationUrl, bool forceSyncingContinuation ) : IEnumerable>

Method Details

Cancel() public method

public Cancel ( string fileName ) : void
fileName string
return void

SynchronizationTask() public method

public SynchronizationTask ( TransactionalStorage storage, SigGenerator sigGenerator, NotificationPublisher publisher, InMemoryConfiguration systemConfiguration ) : System
storage RavenFS.Storage.TransactionalStorage
sigGenerator RavenFS.Synchronization.Rdc.Wrapper.SigGenerator
publisher RavenFS.Notifications.NotificationPublisher
systemConfiguration RavenFS.Config.InMemoryConfiguration
return System

SynchronizeDestinationsAsync() public method

public SynchronizeDestinationsAsync ( bool forceSyncingContinuation = true ) : Task
forceSyncingContinuation bool
return Task

SynchronizeFileToAsync() public method

public SynchronizeFileToAsync ( string fileName, string destinationUrl ) : Task
fileName string
destinationUrl string
return Task