protected ReplicaSystem getReplicaSystem(ReplicationTarget target) { // Find the configured replication peer so we know how to replicate to it // Classname,Configuration String peerType = getPeerType(target.getPeerName()); // Get the peer that we're replicating to return factory.get(context, peerType); }
ReplicaSystem replica; try { replica = replicaSystemFactory.get(Monitor.getContext(), property.getValue()); } catch (Exception e) { log.warn("Could not instantiate ReplicaSystem for {} with configuration {}",
protected ReplicaSystem getReplicaSystem(ReplicationTarget target) { // Find the configured replication peer so we know how to replicate to it // Classname,Configuration String peerType = getPeerType(target.getPeerName()); // Get the peer that we're replicating to return factory.get(peerType); }