Class FileMessage

  • All Implemented Interfaces:
    java.io.Serializable, ClusterMessage

    public class FileMessage
    extends ClusterMessageBase
    Contains the data for a file being transferred over TCP, this is essentially a fragment of a file, read and written by the FileMessageFactory
    Version:
    1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • FileMessage

        public FileMessage​(Member source,
                           java.lang.String fileName,
                           java.lang.String contextName)
    • Method Detail

      • getMessageNumber

        public int getMessageNumber()
      • setMessageNumber

        public void setMessageNumber​(int messageNumber)
      • getTotalNrOfMsgs

        public long getTotalNrOfMsgs()
      • setTotalNrOfMsgs

        public void setTotalNrOfMsgs​(long totalNrOfMsgs)
      • getData

        public byte[] getData()
      • setData

        public void setData​(byte[] data,
                            int length)
      • getDataLength

        public int getDataLength()
      • getUniqueId

        public java.lang.String getUniqueId()
      • getFileName

        public java.lang.String getFileName()
      • getContextName

        public java.lang.String getContextName()