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 ReplicaSystemget(ServerContext context, String value)static StringgetPeerConfigurationValue(Class<? extends ReplicaSystem> system, String configuration)Generate the configuration value for aReplicaSystemin the instance propertiesMap.Entry<String,String>parseReplicaSystemConfiguration(String value)Parse the configuration value for a peer into its components:ReplicaSystemclass name and configuration string.
-
-
-
Method Detail
-
get
public ReplicaSystem get(ServerContext context, String value)
- Parameters:
value-ReplicaSystemimplementation class name- Returns:
- A
ReplicaSystemobject from the given name
-
parseReplicaSystemConfiguration
public Map.Entry<String,String> parseReplicaSystemConfiguration(String value)
Parse the configuration value for a peer into its components:ReplicaSystemclass 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 aReplicaSystemin 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
-
-