Package org.elasticsearch.client.ccr
Class ForgetFollowerRequest
java.lang.Object
org.elasticsearch.client.ccr.ForgetFollowerRequest
- All Implemented Interfaces:
Validatable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public final class ForgetFollowerRequest extends java.lang.Object implements org.elasticsearch.common.xcontent.ToXContentObject, Validatable
Represents a forget follower request. Note that this an expert API intended to be used only when unfollowing a follower index fails to
remove the follower retention leases. Please be sure that you understand the purpose this API before using.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ForgetFollowerRequest(java.lang.String followerCluster, java.lang.String followerIndex, java.lang.String followerIndexUUID, java.lang.String leaderRemoteCluster, java.lang.String leaderIndex)
Construct a forget follower request. -
Method Summary
Modifier and Type Method Description java.lang.String
leaderIndex()
The name of the leader index.org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Constructor Details
-
ForgetFollowerRequest
public ForgetFollowerRequest(java.lang.String followerCluster, java.lang.String followerIndex, java.lang.String followerIndexUUID, java.lang.String leaderRemoteCluster, java.lang.String leaderIndex)Construct a forget follower request.- Parameters:
followerCluster
- the name of the cluster containing the follower index to forgetfollowerIndex
- the name of follower indexfollowerIndexUUID
- the UUID of the follower indexleaderRemoteCluster
- the alias of the remote cluster containing the leader index from the perspective of the follower indexleaderIndex
- the name of the leader index
-
-
Method Details
-
leaderIndex
public java.lang.String leaderIndex()The name of the leader index.- Returns:
- the name of the leader index
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-