public class SnapshotEvent
extends org.apache.ignite.events.EventAdapter
| Constructor and Description |
|---|
SnapshotEvent()
No-arg constructor.
|
SnapshotEvent(org.apache.ignite.cluster.ClusterNode node,
@Nullable String msg,
int type)
Creates snapshot event with given parameters.
|
SnapshotEvent(org.apache.ignite.cluster.ClusterNode node,
@Nullable String msg,
int type,
long snapshotId,
@Nullable Throwable error)
Creates snapshot event with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable Throwable |
error()
Returns error, if snapshot operation that triggered event, has failed, and
null if it has succeeded. |
long |
snapshotId()
Returns snapshot ID.
|
String |
toString() |
public SnapshotEvent()
public SnapshotEvent(org.apache.ignite.cluster.ClusterNode node,
@Nullable
@Nullable String msg,
int type)
node - Node.msg - Optional message.type - Event type.public SnapshotEvent(org.apache.ignite.cluster.ClusterNode node,
@Nullable
@Nullable String msg,
int type,
long snapshotId,
@Nullable
@Nullable Throwable error)
node - Node.msg - Optional message.type - Event type.snapshotId - Snapshot ID.error - Error, if snapshot operation has failed, and null otherwise.public long snapshotId()
@Nullable public @Nullable Throwable error()
null if it has succeeded.public String toString()
toString in class org.apache.ignite.events.EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024