Package com.yahoo.vespa.model.content
Class Redundancy
java.lang.Object
com.yahoo.vespa.model.content.Redundancy
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,com.yahoo.vespa.config.content.StorDistributionConfig.Producer
,com.yahoo.vespa.config.search.core.ProtonConfig.Producer
public class Redundancy
extends Object
implements com.yahoo.vespa.config.content.StorDistributionConfig.Producer, com.yahoo.vespa.config.search.core.ProtonConfig.Producer
Configuration of the redundancy of a content cluster.
- Author:
- bratseth
-
Constructor Summary
ConstructorDescriptionRedundancy
(Integer initialRedundancy, int finalRedundancy, int readyCopies, int groups, int totalNodes) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the final redundancy over all groupsint
int
int
Returns the final redundancy per groupvoid
getConfig
(com.yahoo.vespa.config.content.StorDistributionConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.core.ProtonConfig.Builder builder) int
groups()
boolean
int
int
-
Constructor Details
-
Redundancy
public Redundancy(Integer initialRedundancy, int finalRedundancy, int readyCopies, int groups, int totalNodes)
-
-
Method Details
-
finalRedundancy
public int finalRedundancy()Returns the final redundancy per group -
readyCopies
public int readyCopies() -
groups
public int groups() -
totalNodes
public int totalNodes() -
effectiveInitialRedundancy
public int effectiveInitialRedundancy() -
effectiveFinalRedundancy
public int effectiveFinalRedundancy()Returns the final redundancy over all groups -
effectiveReadyCopies
public int effectiveReadyCopies() -
isEffectivelyGloballyDistributed
public boolean isEffectivelyGloballyDistributed() -
getConfig
public void getConfig(com.yahoo.vespa.config.content.StorDistributionConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.config.content.StorDistributionConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.ProtonConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.core.ProtonConfig.Producer
-