public class CheckpointInfo
extends java.lang.Object
PushAPI#setCheckpoint()
and {@link PushAPI#getCheckpoint()
for more information on how to set and retrieve checkpoints.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
Checkpoint name.
|
protected CheckpointInfoIterator |
parentIterator
Parent iterator in an enumeration context.
|
protected boolean |
synced
Checkpoint synchronization state
|
protected java.lang.String |
value
Checkpoint value.
|
Constructor and Description |
---|
CheckpointInfo()
Constructor initializing an empty checkpoint.
|
CheckpointInfo(CheckpointInfoIterator parentIterator)
Constructor specifying the parent iterator.
|
CheckpointInfo(java.lang.String name,
java.lang.String value,
boolean synced,
CheckpointInfoIterator parentIterator)
Constructor specifying the checkpoint content and the parent iterator.
|
CheckpointInfo(java.lang.String name,
java.lang.String value,
CheckpointInfoIterator parentIterator)
Constructor specifying the checkpoint content and the parent iterator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone a checkpoint by keeping the referencing to the checkpoint content and
iterator.
|
boolean |
equals(java.lang.Object obj)
Compare a checkpoint with a given object.
|
java.lang.String |
getName()
Gets the checkpoint name.
|
CheckpointInfoIterator |
getParentIterator()
Get the parent iterator which generated this checkpoint (enumeration
context).
|
java.lang.String |
getValue()
Get checkpoint value.
|
int |
hashCode() |
boolean |
isSynced()
Returns true if this checkpoint is synchronized (i.e safe), false otherwise.
|
protected void |
setName(java.lang.String name)
Set the checkpoint name.
|
protected void |
setSynced(boolean synced)
Set the checkpoint synchronized flag.
|
protected void |
setValue(java.lang.String value)
Set the checkpoint value.
|
protected java.lang.String name
protected java.lang.String value
protected boolean synced
protected CheckpointInfoIterator parentIterator
public CheckpointInfo()
public CheckpointInfo(CheckpointInfoIterator parentIterator)
parentIterator
- the parent iterator (only used in an enumeration context).public CheckpointInfo(java.lang.String name, java.lang.String value, CheckpointInfoIterator parentIterator)
name
- the checkpoint namevalue
- the checkpoint valueparentIterator
- the parent iterator (only used in an enumeration context)public CheckpointInfo(java.lang.String name, java.lang.String value, boolean synced, CheckpointInfoIterator parentIterator)
name
- the checkpoint namevalue
- the checkpoint valuesynced
- the checkpoint sync stateparentIterator
- the parent iterator (only used in an enumeration context)public java.lang.String getName()
public java.lang.String getValue()
public boolean isSynced()
protected void setName(java.lang.String name)
name
- the checkpoint name.protected void setValue(java.lang.String value)
value
- the checkpoint value.protected void setSynced(boolean synced)
synced
- the checkpoint sync statepublic CheckpointInfoIterator getParentIterator()
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
true
if the object is a checkpoint with the same name
and value, false
otherwise.Copyright © 2021 Dassault Systèmes, All Rights Reserved.