Class CreateSnapshotGlobalStateSerializer
java.lang.Object
org.apache.ignite.internal.versioned.VersionedSerializer<CreateSnapshotGlobalState>
org.gridgain.internal.snapshots.communication.metastorage.CreateSnapshotGlobalStateSerializer
public class CreateSnapshotGlobalStateSerializer
extends org.apache.ignite.internal.versioned.VersionedSerializer<CreateSnapshotGlobalState>
VersionedSerializer for CreateSnapshotGlobalState instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CreateSnapshotGlobalStateSerializerSerializer instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateSnapshotGlobalStatedeserialize(byte[] bytes) Deserializes the given byte array to aCreateSnapshotGlobalStateinstance.protected byteprotected CreateSnapshotGlobalStatereadExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) static byte[]Serializes the givenCreateSnapshotGlobalStateinstance to a byte array.protected voidwriteExternalData(CreateSnapshotGlobalState 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
-
CreateSnapshotGlobalStateSerializer
public CreateSnapshotGlobalStateSerializer()
-
-
Method Details
-
getProtocolVersion
protected byte getProtocolVersion()- Overrides:
getProtocolVersionin classorg.apache.ignite.internal.versioned.VersionedSerializer<CreateSnapshotGlobalState>
-
writeExternalData
protected void writeExternalData(CreateSnapshotGlobalState state, org.apache.ignite.internal.util.io.IgniteDataOutput out) throws IOException - Specified by:
writeExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<CreateSnapshotGlobalState>- Throws:
IOException
-
readExternalData
protected CreateSnapshotGlobalState readExternalData(byte protoVer, org.apache.ignite.internal.util.io.IgniteDataInput in) throws IOException - Specified by:
readExternalDatain classorg.apache.ignite.internal.versioned.VersionedSerializer<CreateSnapshotGlobalState>- Throws:
IOException
-
serialize
Serializes the givenCreateSnapshotGlobalStateinstance to a byte array.- Parameters:
state- State to serialize.- Returns:
- Serialized state.
-
deserialize
Deserializes the given byte array to aCreateSnapshotGlobalStateinstance.- Parameters:
bytes- Bytes to deserialize.- Returns:
- Deserialized state.
-