예제 #1
0
 public Replicator(ReplicationTarget target, ReplicationSource source)
 {
     this.target   = target;
     this.source   = source;
     this.settings = target.Endpoint.Settings;
     this.detector = Context.ActorOf(Props.Create(() => new FailureDetector(source.EndpointId, source.LogName, target.Endpoint.Settings.FailureDetectionLimit)));
 }
예제 #2
0
 public IEnumerable <ReplicationLink> Links(ReplicationEndpointInfo sourceInfo)
 {
     foreach (var logName in this.TargetEndpoint.CommonLogNames(sourceInfo))
     {
         var sourceLogId = sourceInfo.LogId(logName);
         var source      = new ReplicationSource(sourceInfo.EndpointId, logName, sourceLogId, RemoteAcceptor);
         yield return(new ReplicationLink(source, TargetEndpoint.Target(logName)));
     }
 }
예제 #3
0
 public ReplicationLink(ReplicationSource source, ReplicationTarget target)
 {
     Source = source;
     Target = target;
 }