public static final Pattern REP_JE_PARAM_PATTERN = Pattern.compile("^je\\.rep\\..*");
@Override
public EnvironmentFacade createEnvironmentFacade(final ConfiguredObject<?> parent)
{
final HASettings settings = (HASettings) parent;
ReplicatedEnvironmentConfiguration configuration = new ReplicatedEnvironmentConfiguration()
{
@Override
public boolean isDesignatedPrimary()
{
return settings.isDesignatedPrimary();
}
@Override
public String getStorePath()
{
return settings.getStorePath();
}
@Override
public Map<String, String> getParameters()
{
return buildEnvironmentConfigParameters(parent);
}
@Override
public Map<String, String> getReplicationParameters()
{
return buildReplicationConfigParameters(parent);
}
@Override
public String getHelperNodeName()
{
return settings.getHelperNodeName();
}
@Override
public int getQuorumOverride()
{
return settings.getQuorumOverride();
}
@Override
public int getPriority()
{
return settings.getPriority();
}
@Override
public String getName()
{
return parent.getName();
}
@Override
public String getHostPort()
{
return settings.getAddress();
}
@Override
public String getHelperHostPort()
{
return settings.getHelperAddress();
}
@Override
public String getGroupName()
{
return settings.getGroupName();
}
@Override
public int getFacadeParameter(final String parameterName, final int defaultValue)
{