Class ReplicaSystemFactory


  • public class ReplicaSystemFactory
    extends Object
    • Constructor Detail

      • ReplicaSystemFactory

        public ReplicaSystemFactory()
    • Method Detail

      • parseReplicaSystemConfiguration

        public Map.Entry<String,​String> parseReplicaSystemConfiguration​(String value)
        Parse the configuration value for a peer into its components: ReplicaSystem class name and configuration string.
        Parameters:
        value - The configuration value for a replication peer.
        Returns:
        An entry where the set is the replica system name and the value is the configuration string.
      • getPeerConfigurationValue

        public static String getPeerConfigurationValue​(Class<? extends ReplicaSystem> system,
                                                       String configuration)
        Generate the configuration value for a ReplicaSystem in the instance properties
        Parameters:
        system - The desired ReplicaSystem to use
        configuration - Configuration string for the desired ReplicaSystem
        Returns:
        Value to set for peer configuration in the instance