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,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Enclosing class:
AutoFollowMetadata
public static class AutoFollowMetadata.AutoFollowPattern
extends ImmutableFollowParameters
implements org.elasticsearch.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.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, org.elasticsearch.core.TimeValue maxRetryDelay, org.elasticsearch.core.TimeValue pollTimeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisActive()static booleanmatch(List<String> leaderIndexPatterns, List<String> leaderIndexExclusionPatterns, IndexAbstraction indexAbstraction) booleanmatch(IndexAbstraction indexAbstraction) readFrom(StreamInput in) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField ACTIVE -
REMOTE_CLUSTER_FIELD
public static final org.elasticsearch.xcontent.ParseField REMOTE_CLUSTER_FIELD -
LEADER_PATTERNS_FIELD
public static final org.elasticsearch.xcontent.ParseField LEADER_PATTERNS_FIELD -
LEADER_EXCLUSION_PATTERNS_FIELD
public static final org.elasticsearch.xcontent.ParseField LEADER_EXCLUSION_PATTERNS_FIELD -
FOLLOW_PATTERN_FIELD
public static final org.elasticsearch.xcontent.ParseField FOLLOW_PATTERN_FIELD -
SETTINGS_FIELD
public static final org.elasticsearch.xcontent.ParseField 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, org.elasticsearch.core.TimeValue maxRetryDelay, org.elasticsearch.core.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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
- Overrides:
equalsin classImmutableFollowParameters
-
hashCode
public int hashCode()- Overrides:
hashCodein classImmutableFollowParameters
-