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,ToXContent,ToXContentFragment
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
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
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()toXContent(XContentBuilder builder, 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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
-