Class ReplicaSystemFactory
- java.lang.Object
-
- org.apache.accumulo.server.replication.ReplicaSystemFactory
-
public class ReplicaSystemFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ReplicaSystemFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicaSystem
get(String value)
static String
getPeerConfigurationValue(Class<? extends ReplicaSystem> system, String configuration)
Generate the configuration value for aReplicaSystem
in the instance propertiesMap.Entry<String,String>
parseReplicaSystemConfiguration(String value)
Parse the configuration value for a peer into its components:ReplicaSystem
class name and configuration string.
-
-
-
Method Detail
-
get
public ReplicaSystem get(String value)
- Parameters:
value
-ReplicaSystem
implementation class name- Returns:
- A
ReplicaSystem
object from the given name
-
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 aReplicaSystem
in the instance properties- Parameters:
system
- The desired ReplicaSystem to useconfiguration
- Configuration string for the desired ReplicaSystem- Returns:
- Value to set for peer configuration in the instance
-
-