Class TransmissionMeta

  • All Implemented Interfaces:
    Externalizable, Serializable

    public class TransmissionMeta
    extends Object
    implements Externalizable
    Class represents a file meta information to send to the remote node. Used to initiate a new file transfer process or to continue the previous unfinished from the last transmitted point.
    See Also:
    Serialized Form
    • Constructor Detail

      • TransmissionMeta

        public TransmissionMeta()
        Default constructor, usually used to create meta to read channel data into.
      • TransmissionMeta

        public TransmissionMeta​(Exception err)
        Parameters:
        err - Last seen error if it has been occurred, or null the otherwise.
      • TransmissionMeta

        public TransmissionMeta​(String name,
                                long offset,
                                long cnt,
                                Map<String,​Serializable> params,
                                TransmissionPolicy plc,
                                Exception err)
        Parameters:
        name - File name to assoticate particular meta with.
        offset - The start position of file.
        cnt - Number of bytes expected to transfer.
        params - Additional meta params.
        plc - Policy of how file will be handled.
        err - Last seen error if it has been occurred, or null the otherwise.