Package org.elasticsearch.discovery
Class DiscoverySettings
- java.lang.Object
-
- org.elasticsearch.discovery.DiscoverySettings
-
public class DiscoverySettings extends java.lang.Object
Exposes common discovery settings that may be supported by all the different discovery implementations
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<TimeValue>
COMMIT_TIMEOUT_SETTING
sets the timeout for receiving enough acks for a specific cluster state and committing it.static Setting<TimeValue>
INITIAL_STATE_TIMEOUT_SETTING
static ClusterBlock
NO_MASTER_BLOCK_ALL
static int
NO_MASTER_BLOCK_ID
static Setting<ClusterBlock>
NO_MASTER_BLOCK_SETTING
static ClusterBlock
NO_MASTER_BLOCK_WRITES
static Setting<java.lang.Boolean>
PUBLISH_DIFF_ENABLE_SETTING
static Setting<TimeValue>
PUBLISH_TIMEOUT_SETTING
sets the timeout for a complete publishing cycle, including both sending and committing.
-
Constructor Summary
Constructors Constructor Description DiscoverySettings(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
Modifier and Type Method Description TimeValue
getCommitTimeout()
ClusterBlock
getNoMasterBlock()
boolean
getPublishDiff()
TimeValue
getPublishTimeout()
Returns the current publish timeout
-
-
-
Field Detail
-
NO_MASTER_BLOCK_ID
public static final int NO_MASTER_BLOCK_ID
- See Also:
- Constant Field Values
-
NO_MASTER_BLOCK_ALL
public static final ClusterBlock NO_MASTER_BLOCK_ALL
-
NO_MASTER_BLOCK_WRITES
public static final ClusterBlock NO_MASTER_BLOCK_WRITES
-
PUBLISH_TIMEOUT_SETTING
public static final Setting<TimeValue> PUBLISH_TIMEOUT_SETTING
sets the timeout for a complete publishing cycle, including both sending and committing. the master will continue to process the next cluster state update after this time has elapsed
-
COMMIT_TIMEOUT_SETTING
public static final Setting<TimeValue> COMMIT_TIMEOUT_SETTING
sets the timeout for receiving enough acks for a specific cluster state and committing it. failing to receive responses within this window will cause the cluster state change to be rejected.
-
NO_MASTER_BLOCK_SETTING
public static final Setting<ClusterBlock> NO_MASTER_BLOCK_SETTING
-
PUBLISH_DIFF_ENABLE_SETTING
public static final Setting<java.lang.Boolean> PUBLISH_DIFF_ENABLE_SETTING
-
-
Constructor Detail
-
DiscoverySettings
public DiscoverySettings(Settings settings, ClusterSettings clusterSettings)
-
-
Method Detail
-
getPublishTimeout
public TimeValue getPublishTimeout()
Returns the current publish timeout
-
getCommitTimeout
public TimeValue getCommitTimeout()
-
getNoMasterBlock
public ClusterBlock getNoMasterBlock()
-
getPublishDiff
public boolean getPublishDiff()
-
-