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<org.elasticsearch.common.unit.TimeValue>
COMMIT_TIMEOUT_SETTING
sets the timeout for receiving enough acks for a specific cluster state and committing it.static Setting<org.elasticsearch.common.unit.TimeValue>
INITIAL_STATE_TIMEOUT_SETTING
static Setting<java.lang.Boolean>
PUBLISH_DIFF_ENABLE_SETTING
static Setting<org.elasticsearch.common.unit.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 org.elasticsearch.common.unit.TimeValue
getCommitTimeout()
boolean
getPublishDiff()
org.elasticsearch.common.unit.TimeValue
getPublishTimeout()
Returns the current publish timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
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. -
PUBLISH_DIFF_ENABLE_SETTING
-
INITIAL_STATE_TIMEOUT_SETTING
-
-
Constructor Details
-
DiscoverySettings
-
-
Method Details
-
getPublishTimeout
public org.elasticsearch.common.unit.TimeValue getPublishTimeout()Returns the current publish timeout -
getCommitTimeout
public org.elasticsearch.common.unit.TimeValue getCommitTimeout() -
getPublishDiff
public boolean getPublishDiff()
-