Class RestoreSnapshotGlobalStateSerializer
java.lang.Object
org.apache.ignite.internal.versioned.VersionedSerializer<RestoreSnapshotGlobalState>
org.gridgain.internal.snapshots.communication.metastorage.RestoreSnapshotGlobalStateSerializer
public class RestoreSnapshotGlobalStateSerializer
extends org.apache.ignite.internal.versioned.VersionedSerializer<RestoreSnapshotGlobalState>
VersionedSerializer for RestoreSnapshotGlobalState instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RestoreSnapshotGlobalStateSerializerSerializer instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestoreSnapshotGlobalStatedeserialize(byte[] bytes) Deserializes the given byte array to aRestoreSnapshotGlobalStateinstance.protected byteprotected RestoreSnapshotGlobalStatereadExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) static byte[]Serializes the givenRestoreSnapshotGlobalStateinstance to a byte array.protected voidwriteExternalData(RestoreSnapshotGlobalState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) Methods inherited from class org.apache.ignite.internal.versioned.VersionedSerializer
readByteArrayWithLength, readExternal, readNullableString, readNullableUuid, readStringSet, readUuidSet, readVarIntSet, writeByteArrayWithLength, writeExternal, writeNullableString, writeNullableUuid, writeStringSet, writeUuidSet, writeVarIntSet
-
Field Details
-
INSTANCE
Serializer instance.
-
-
Constructor Details
-
RestoreSnapshotGlobalStateSerializer
public RestoreSnapshotGlobalStateSerializer()
-
-
Method Details
-
getProtocolVersion
protected byte getProtocolVersion()- Overrides:
getProtocolVersionin classorg.apache.ignite.internal.versioned.VersionedSerializer<RestoreSnapshotGlobalState>
-
writeExternalData
protected void writeExternalData(RestoreSnapshotGlobalState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) throws IOException - Specified by:
writeExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<RestoreSnapshotGlobalState>- Throws:
IOException
-
readExternalData
protected RestoreSnapshotGlobalState readExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) throws IOException - Specified by:
readExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<RestoreSnapshotGlobalState>- Throws:
IOException
-
serialize
Serializes the givenRestoreSnapshotGlobalStateinstance to a byte array.- Parameters:
state- State to serialize.- Returns:
- Serialized state.
-
deserialize
Deserializes the given byte array to aRestoreSnapshotGlobalStateinstance.- Parameters:
bytes- Bytes to deserialize.- Returns:
- Deserialized state.
-