Interface AtomicCommand<T>

All Known Implementing Classes:
PosixAtomicFileCopier, PosixAtomicFileDownloader, PosixAtomicFileUploader, S3AtomicBucketCreator, S3AtomicBucketDeleter, S3AtomicBucketListGetter, S3AtomicFileContentGetter, S3AtomicFileDeleter, S3AtomicFileDownloaderV2, S3AtomicFileExistsGetter, S3AtomicFileListDeleter, S3AtomicFileListGetter, S3AtomicFileSizeGetter, S3AtomicFileUploader, S3AtomicFileUploaderV2, S3AtomicInputStreamGetter

public interface AtomicCommand<T>
An interface for atomic operations or commands related to IO operations with storage systems. It provides a set of methods to execute, retrieve information, and handle the results of these atomic commands.
Author:
Denys Chaykovskiy
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes atomic command
    Gets information about completed atomic command (mostly for logs)
    Gets information about failed atomic command (mostly for logs)
    Gets information about atomic command (mostly for logs)
  • Method Details

    • execute

      T execute() throws IOException
      Executes atomic command
      Returns:
      string with result of command execution
      Throws:
      IOException - if atomic command was not successful
    • getInfo

      String getInfo()
      Gets information about atomic command (mostly for logs)
      Returns:
      information about atomic command
    • getCompletedInfo

      String getCompletedInfo()
      Gets information about completed atomic command (mostly for logs)
      Returns:
      information about completed atomic command
    • getFailedInfo

      String getFailedInfo()
      Gets information about failed atomic command (mostly for logs)
      Returns:
      information about failed atomic command