Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.slm
Class SnapshotLifecyclePolicyItem
java.lang.Object
org.elasticsearch.xpack.core.slm.SnapshotLifecyclePolicyItem
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public class SnapshotLifecyclePolicyItem
extends Object
implements org.elasticsearch.xcontent.ToXContentFragment, Writeable
The
SnapshotLifecyclePolicyItem class is a special wrapper almost exactly like the
SnapshotLifecyclePolicyMetadata, however, it elides the headers to ensure that they
are not leaked to the user since they may contain sensitive information.-
Nested Class Summary
Nested ClassesNested 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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotLifecyclePolicyItem(SnapshotLifecyclePolicyMetadata policyMetadata, SnapshotLifecyclePolicyItem.SnapshotInProgress snapshotInProgress, SnapshotLifecycleStats.SnapshotPolicyStats policyStats) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonginthashCode()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
SnapshotLifecyclePolicyItem
public SnapshotLifecyclePolicyItem(SnapshotLifecyclePolicyMetadata policyMetadata, @Nullable SnapshotLifecyclePolicyItem.SnapshotInProgress snapshotInProgress, @Nullable SnapshotLifecycleStats.SnapshotPolicyStats policyStats) -
SnapshotLifecyclePolicyItem
- Throws:
IOException
-
-
Method Details
-
getPolicy
-
getVersion
public long getVersion() -
getModifiedDate
public long getModifiedDate() -
getLastSuccess
-
getLastFailure
-
getSnapshotInProgress
-
getPolicyStats
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
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
-
toString
-