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))); }
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))); } }
public ReplicationLink(ReplicationSource source, ReplicationTarget target) { Source = source; Target = target; }