Package org.apache.ignite.internal.dto
Class IgniteDataTransferObject
- java.lang.Object
-
- org.apache.ignite.internal.dto.IgniteDataTransferObject
-
- All Implemented Interfaces:
Externalizable,Serializable
- Direct Known Subclasses:
BaselineCommand.BaselineTaskArg,BaselineNode.ResolvedAddresses,CacheClearCommandArg,CacheContentionCommandArg,CacheCreateCommandArg,CacheDestroyCommandArg,CacheDistributionCommandArg,CacheFindGarbageCommandArg,CacheGroupEncryptionTask.SingleFieldDto,CacheGroupEncryptionTaskResult,CacheIdleVerifyCommandArg,CacheIndexesForceRebuildCommandArg,CacheIndexesListCommandArg,CacheIndexesRebuildStatusCommandArg,CacheListCommandArg,CacheMetricsCommandArg,CacheMetricsSnapshot,CacheResetLostPartitionsCommandArg,CacheScanCommandArg,CacheScanTaskResult,CacheScheduleIndexesRebuildCommandArg,CacheValidateIndexesCommandArg,CdcDeleteLostSegmentLinksCommandArg,CdcResendCommandArg,ChangeTagCommandArg,CheckIndexInlineSizesResult,ClusterChangeTagTaskResult,ConnectivityResult,ConsistencyRepairCommandArg,ConsistencyTaskResult,DeactivateCommandArg,DefragmentationCommand.DefragmentationStatusCommandArg,DefragmentationTaskResult,DiagnosticConnectivityCommandArg,DiagnosticPagelocksCommandArg,DurableBackgroundCleanupIndexTreeTaskV2,EarliestCheckpointMapSnapshot,EncryptionCacheGroupArg,EncryptionChangeMasterKeyCommandArg,EncryptionReencryptionRateLimitCommandArg,EncryptionReencryptionStatusCommandArg,FindAndDeleteGarbageInPersistenceJobResult,FindAndDeleteGarbageInPersistenceTaskResult,GridAffinityAssignmentV2,IndexForceRebuildTaskRes,IndexListInfoContainer,IndexRebuildCacheInfo,IndexRebuildStatusInfoContainer,KillClientCommandArg,KillComputeCommandArg,KillContinuousCommandArg,KillScanCommandArg,KillServiceCommandArg,KillSqlCommandArg,KillTransactionCommandArg,MetadataListResult,MetadataMarshalled,MetaDetailsCommandArg,MetaUpdateCommandArg,MetricCommandArg,NoArg,PageLocksResult,PerformanceStatisticsCommand.PerformanceStatisticsStatusCommandArg,PersistenceCommand.PersistenceTaskArg,PersistenceTaskResult,PropertiesListResult,PropertyGetCommandArg,PropertyListCommandArg,PropertyOperationResult,ReencryptionRateTask.ReencryptionRateJobResult,ScheduleIndexRebuildJobRes,ScheduleIndexRebuildTaskRes,SetStateCommandArg,ShutdownPolicyCommandArg,ShutdownPolicyTaskResult,SnapshotCancelTask.CancelSnapshotArg,SnapshotCheckCommandArg,SnapshotCreateCommandArg,SnapshotMetadataVerificationTaskResult,SnapshotPartitionsVerifyTaskResult,SnapshotRestoreCommandArg,SystemViewCommandArg,SystemViewTaskResult,TracingConfigurationCommand.TracingConfigurationCommandArg,TracingConfigurationItem,TracingConfigurationTaskResult,TransactionsHashRecord,TxCommand.AbstractTxCommandArg,TxVerboseInfo,TxVerboseKey,ValidateIndexesCheckSizeIssue,ValidateIndexesCheckSizeResult,ValidateIndexesJobResult,VisorIdAndTagViewTaskResult,VisorTaskResult,WalDeleteCommandArg
public abstract class IgniteDataTransferObject extends Object implements Externalizable
Base class for data transfer objects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static byteV1Version 1.protected static byteV2Version 2.protected static byteV3Version 3.protected static byteV4Version 4.protected static byteV5Version 5.protected static byteV6Version 6.protected static byteV7Version 7.protected static byteV8Version 8.protected static byteV9Version 9.
-
Constructor Summary
Constructors Constructor Description IgniteDataTransferObject()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description bytegetProtocolVersion()voidreadExternal(ObjectInput in)protected abstract voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.protected static <T> @Nullable List<T>toList(Collection<T> col)protected static <T> @Nullable Set<T>toSet(Collection<T> col)voidwriteExternal(ObjectOutput out)protected abstract voidwriteExternalData(ObjectOutput out)Save object's specific data content.
-
-
-
Field Detail
-
V1
protected static final byte V1
Version 1.- See Also:
- Constant Field Values
-
V2
protected static final byte V2
Version 2.- See Also:
- Constant Field Values
-
V3
protected static final byte V3
Version 3.- See Also:
- Constant Field Values
-
V4
protected static final byte V4
Version 4.- See Also:
- Constant Field Values
-
V5
protected static final byte V5
Version 5.- See Also:
- Constant Field Values
-
V6
protected static final byte V6
Version 6.- See Also:
- Constant Field Values
-
V7
protected static final byte V7
Version 7.- See Also:
- Constant Field Values
-
V8
protected static final byte V8
Version 8.- See Also:
- Constant Field Values
-
V9
protected static final byte V9
Version 9.- See Also:
- Constant Field Values
-
-
Method Detail
-
toList
@Nullable protected static <T> @Nullable List<T> toList(Collection<T> col)
- Type Parameters:
T- Collection type.- Parameters:
col- Source collection.- Returns:
- List based on passed collection.
-
toSet
@Nullable protected static <T> @Nullable Set<T> toSet(Collection<T> col)
- Type Parameters:
T- Collection type.- Parameters:
col- Source collection.- Returns:
- List based on passed collection.
-
getProtocolVersion
public byte getProtocolVersion()
- Returns:
- Transfer object version.
-
writeExternalData
protected abstract void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternalData
protected abstract void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-