Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ccr
Class AutoFollowMetadata.AutoFollowPattern
java.lang.Object
org.elasticsearch.xpack.core.ccr.action.ImmutableFollowParameters
org.elasticsearch.xpack.core.ccr.AutoFollowMetadata.AutoFollowPattern
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
- Enclosing class:
AutoFollowMetadata
public static class AutoFollowMetadata.AutoFollowPattern
extends ImmutableFollowParameters
implements ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAutoFollowPattern(String remoteCluster, List<String> leaderIndexPatterns, List<String> leaderIndexExclusionPatterns, String followIndexPattern, Settings settings, boolean active, Integer maxReadRequestOperationCount, Integer maxWriteRequestOperationCount, Integer maxOutstandingReadRequests, Integer maxOutstandingWriteRequests, ByteSizeValue maxReadRequestSize, ByteSizeValue maxWriteRequestSize, Integer maxWriteBufferCount, ByteSizeValue maxWriteBufferSize, TimeValue maxRetryDelay, TimeValue pollTimeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisActive()static booleanmatch(List<String> leaderIndexPatterns, List<String> leaderIndexExclusionPatterns, IndexAbstraction indexAbstraction) booleanmatch(IndexAbstraction indexAbstraction) readFrom(StreamInput in) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.ccr.action.ImmutableFollowParameters
getMaxOutstandingReadRequests, getMaxOutstandingWriteRequests, getMaxReadRequestOperationCount, getMaxReadRequestSize, getMaxRetryDelay, getMaxWriteBufferCount, getMaxWriteBufferSize, getMaxWriteRequestOperationCount, getMaxWriteRequestSize, getReadPollTimeout, initParser, toXContentFragmentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
ACTIVE
-
REMOTE_CLUSTER_FIELD
-
LEADER_PATTERNS_FIELD
-
LEADER_EXCLUSION_PATTERNS_FIELD
-
FOLLOW_PATTERN_FIELD
-
SETTINGS_FIELD
-
-
Constructor Details
-
AutoFollowPattern
public AutoFollowPattern(String remoteCluster, List<String> leaderIndexPatterns, List<String> leaderIndexExclusionPatterns, String followIndexPattern, Settings settings, boolean active, Integer maxReadRequestOperationCount, Integer maxWriteRequestOperationCount, Integer maxOutstandingReadRequests, Integer maxOutstandingWriteRequests, ByteSizeValue maxReadRequestSize, ByteSizeValue maxWriteRequestSize, Integer maxWriteBufferCount, ByteSizeValue maxWriteBufferSize, TimeValue maxRetryDelay, TimeValue pollTimeout)
-
-
Method Details
-
readFrom
- Throws:
IOException
-
match
-
match
public static boolean match(List<String> leaderIndexPatterns, List<String> leaderIndexExclusionPatterns, IndexAbstraction indexAbstraction) -
getRemoteCluster
-
getLeaderIndexPatterns
-
getLeaderIndexExclusionPatterns
-
getFollowIndexPattern
-
getSettings
-
isActive
public boolean isActive() -
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classImmutableFollowParameters- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
- Overrides:
equalsin classImmutableFollowParameters
-
hashCode
public int hashCode()- Overrides:
hashCodein classImmutableFollowParameters
-