C# 클래스 Raven.Bundles.Replication.Tasks.ReplicationTask

상속: IStartupTask
파일 보기 프로젝트 열기: JudahGabriel/ravendb 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
activeTasks ConcurrentQueue

Private Properties

프로퍼티 타입 설명
CleanupPrefetchingBehaviors void
CreateReplicationStrategyFromDocument ReplicationStrategy
EnsureReplicationInformationInMetadata void
Execute void
GetAttachments Etag>.Tuple
GetAttachmentsToReplicate List
GetConnectionOptionsSafe ReplicationStrategy
GetDebugInfomration string
GetDocsToReplicate List
GetIndexAndTransformersTombstones List
GetJsonDocuments JsonDocumentsToReplicate
GetLastReplicatedEtagFrom Raven.Bundles.Replication.Data.SourceReplicationInformationWithBatchInformation
GetReplicationDestinations Raven.Bundles.Replication.Tasks.ReplicationStrategy[]
GetRequestBuffering bool
HandleRequestBufferingErrors void
IsFirstFailure bool
IsNotFailing bool
NotifySibling void
NotifySiblings void
OnIndexChange void
OnTransformerChange void
RecordFailure void
RecordLastEtagChecked void
RecordSuccess void
ReplicateAttachments bool?
ReplicateDocuments bool?
ReplicateIndexDeletionIfNeeded void
ReplicateSingleIndex void
ReplicateSingleSideBySideIndex void
ReplicateSingleTransformer void
ReplicateTo bool
ReplicateTransformerDeletionIfNeeded void
ResetFailureForHeartbeat void
SetLastReplicatedEtagForServer void
TryReplicationAttachments bool
TryReplicationDocuments bool
UpdateReplicationPerformance void
UrlEncodedServerUrl string
WarnIfNoReplicationTargetsWereFound void

공개 메소드들

메소드 설명
Continue ( ) : void
Dispose ( ) : void
EscapeDestinationName ( string url ) : string
Execute ( DocumentDatabase database ) : void
ExecuteReplicationOnce ( bool runningBecauseOfDataModifications ) : Task
GetConnectionOptions ( ReplicationDestination x, DocumentDatabase database ) : ReplicationStrategy
HandleHeartbeat ( string src ) : void
IsHeartbeatAvailable ( string src, System.DateTime lastCheck ) : bool
Pause ( ) : void
ReplicateIndexesAndTransformersTask ( object state, bool>.Func shouldSkipDestinationPredicate = null, bool replicateIndexes = true, bool replicateTransformers = true ) : bool
ReplicationTask ( ) : Raven.Abstractions.Exceptions
SendLastQueriedTask ( object state ) : void

보호된 메소드들

메소드 설명
OnReplicationExecuted ( ) : void

비공개 메소드들

메소드 설명
CleanupPrefetchingBehaviors ( IEnumerable allDestinations, IEnumerable failingDestinations ) : void
CreateReplicationStrategyFromDocument ( ReplicationDestination x, ReplicationStrategy replicationStrategy ) : ReplicationStrategy
EnsureReplicationInformationInMetadata ( RavenJObject metadata, DocumentDatabase database ) : void
Execute ( ) : void
GetAttachments ( Raven.Bundles.Replication.Data.SourceReplicationInformationWithBatchInformation destinationsReplicationInformationForSource, ReplicationStrategy destination, ReplicationStatisticsRecorder scope ) : Etag>.Tuple
GetAttachmentsToReplicate ( IStorageActionsAccessor actions, Etag lastAttachmentEtag, int maxNumberOfItemsToReceiveInSingleBatch ) : List
GetConnectionOptionsSafe ( ReplicationDestination x ) : ReplicationStrategy
GetDebugInfomration ( ) : string
GetDocsToReplicate ( IStorageActionsAccessor actions, PrefetchingBehavior prefetchingBehavior, JsonDocumentsToReplicate result, int maxNumberOfItemsToReceiveInSingleBatch ) : List
GetIndexAndTransformersTombstones ( string tombstoneListName, int start, int take ) : List
GetJsonDocuments ( Raven.Bundles.Replication.Data.SourceReplicationInformationWithBatchInformation destinationsReplicationInformationForSource, ReplicationStrategy destination, PrefetchingBehavior prefetchingBehavior, ReplicationStatisticsRecorder scope ) : JsonDocumentsToReplicate
GetLastReplicatedEtagFrom ( ReplicationStrategy destination ) : Raven.Bundles.Replication.Data.SourceReplicationInformationWithBatchInformation
GetReplicationDestinations ( Predicate predicate = null ) : Raven.Bundles.Replication.Tasks.ReplicationStrategy[]
GetRequestBuffering ( ReplicationStrategy destination ) : bool
HandleRequestBufferingErrors ( Exception e, ReplicationStrategy destination ) : void
IsFirstFailure ( string url ) : bool
IsNotFailing ( ReplicationStrategy dest, int currentReplicationAttempts ) : bool
NotifySibling ( BlockingCollection collection ) : void
NotifySiblings ( ) : void
OnIndexChange ( DocumentDatabase documentDatabase, Raven.Abstractions.Data.IndexChangeNotification eventArgs ) : void
OnTransformerChange ( DocumentDatabase documentDatabase, Raven.Abstractions.Data.TransformerChangeNotification eventArgs ) : void
RecordFailure ( string url, string lastError ) : void
RecordLastEtagChecked ( string url, Etag lastEtagChecked ) : void
RecordSuccess ( string url, Etag lastReplicatedEtag = null, System.DateTime lastReplicatedLastModified = null, System.DateTime lastHeartbeatReceived = null, string lastError = null, bool forDocuments = true ) : void
ReplicateAttachments ( ReplicationStrategy destination, Raven.Bundles.Replication.Data.SourceReplicationInformationWithBatchInformation destinationsReplicationInformationForSource, ReplicationStatisticsRecorder recorder ) : bool?
ReplicateDocuments ( ReplicationStrategy destination, Raven.Bundles.Replication.Data.SourceReplicationInformationWithBatchInformation destinationsReplicationInformationForSource, ReplicationStatisticsRecorder recorder, int &replicatedDocuments ) : bool?
ReplicateIndexDeletionIfNeeded ( List indexTombstones, ReplicationStrategy destination, int>.Dictionary replicatedIndexTombstones ) : void
ReplicateSingleIndex ( ReplicationStrategy destination, IndexDefinition definition ) : void
ReplicateSingleSideBySideIndex ( ReplicationStrategy destination, IndexDefinition indexDefinition, IndexDefinition sideBySideIndexDefinition ) : void
ReplicateSingleTransformer ( ReplicationStrategy destination, TransformerDefinition definition ) : void
ReplicateTo ( ReplicationStrategy destination ) : bool
ReplicateTransformerDeletionIfNeeded ( List transformerTombstones, ReplicationStrategy destination, int>.Dictionary replicatedTransformerTombstones ) : void
ResetFailureForHeartbeat ( string src ) : void
SetLastReplicatedEtagForServer ( ReplicationStrategy destination, Etag lastDocEtag = null, Etag lastAttachmentEtag = null ) : void
TryReplicationAttachments ( ReplicationStrategy destination, RavenJArray jsonAttachments, string &errorMessage ) : bool
TryReplicationDocuments ( ReplicationStrategy destination, RavenJArray jsonDocuments, string &lastError ) : bool
UpdateReplicationPerformance ( ReplicationStrategy destination, System.DateTime startTime, System.TimeSpan elapsed, int batchSize ) : void
UrlEncodedServerUrl ( ) : string
WarnIfNoReplicationTargetsWereFound ( ) : void

메소드 상세

Continue() 공개 메소드

public Continue ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EscapeDestinationName() 공개 정적인 메소드

public static EscapeDestinationName ( string url ) : string
url string
리턴 string

Execute() 공개 메소드

public Execute ( DocumentDatabase database ) : void
database Raven.Database.DocumentDatabase
리턴 void

ExecuteReplicationOnce() 공개 메소드

public ExecuteReplicationOnce ( bool runningBecauseOfDataModifications ) : Task
runningBecauseOfDataModifications bool
리턴 Task

GetConnectionOptions() 공개 정적인 메소드

public static GetConnectionOptions ( ReplicationDestination x, DocumentDatabase database ) : ReplicationStrategy
x ReplicationDestination
database Raven.Database.DocumentDatabase
리턴 ReplicationStrategy

HandleHeartbeat() 공개 메소드

public HandleHeartbeat ( string src ) : void
src string
리턴 void

IsHeartbeatAvailable() 공개 메소드

public IsHeartbeatAvailable ( string src, System.DateTime lastCheck ) : bool
src string
lastCheck System.DateTime
리턴 bool

OnReplicationExecuted() 보호된 메소드

protected OnReplicationExecuted ( ) : void
리턴 void

Pause() 공개 메소드

public Pause ( ) : void
리턴 void

ReplicateIndexesAndTransformersTask() 공개 메소드

public ReplicateIndexesAndTransformersTask ( object state, bool>.Func shouldSkipDestinationPredicate = null, bool replicateIndexes = true, bool replicateTransformers = true ) : bool
state object
shouldSkipDestinationPredicate bool>.Func
replicateIndexes bool
replicateTransformers bool
리턴 bool

ReplicationTask() 공개 메소드

public ReplicationTask ( ) : Raven.Abstractions.Exceptions
리턴 Raven.Abstractions.Exceptions

SendLastQueriedTask() 공개 메소드

public SendLastQueriedTask ( object state ) : void
state object
리턴 void

프로퍼티 상세

activeTasks 공개적으로 프로퍼티

public ConcurrentQueue activeTasks
리턴 ConcurrentQueue