public class SnapshotEvent extends EventAdapter
Constructor and Description |
---|
SnapshotEvent()
No-arg constructor.
|
SnapshotEvent(ClusterNode node,
@Nullable String msg,
int type)
Creates snapshot event with given parameters.
|
SnapshotEvent(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() |
compareTo, equals, hashCode, id, localOrder, message, message, name, node, node, shortDisplay, timestamp, type, type
public SnapshotEvent()
public SnapshotEvent(ClusterNode node, @Nullable @Nullable String msg, int type)
node
- Node.msg
- Optional message.type
- Event type.public SnapshotEvent(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 EventAdapter
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024