Interface ContainerReplicationSource

All Known Implementing Classes:
OnDemandContainerReplicationSource

public interface ContainerReplicationSource
Contract to prepare provide the container in binary form..

Prepare will be called when container is closed. An implementation could precache any binary representation of a container and store the pre packede images.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyData(long containerId, OutputStream destination, CopyContainerCompression compression)
    Copy the container data to an output stream.
    void
    prepare(long containerId)
    Prepare for the replication.
  • Method Details

    • prepare

      void prepare(long containerId)
      Prepare for the replication.
      Parameters:
      containerId - The name of the container the package.
    • copyData

      void copyData(long containerId, OutputStream destination, CopyContainerCompression compression) throws IOException
      Copy the container data to an output stream.
      Parameters:
      containerId - Container to replicate
      destination - The destination stream to copy all the container data.
      compression - Compression algorithm.
      Throws:
      IOException