Package alluxio.wire

Class PersistFile


  • public final class PersistFile
    extends java.lang.Object
    Class to represent a file persist info.
    • Constructor Summary

      Constructors 
      Constructor Description
      PersistFile​(long fileId, java.util.List<java.lang.Long> blockIds)
      Creates a new instance for persist file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Long> getBlockIds()  
      long getFileId()  
      void setBlockIds​(java.util.List<java.lang.Long> blockIds)
      Set the block ids.
      void setFileId​(long fileId)
      Set the file id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PersistFile

        public PersistFile​(long fileId,
                           java.util.List<java.lang.Long> blockIds)
        Creates a new instance for persist file.
        Parameters:
        fileId - the file id
        blockIds - the list of block ids to persist
    • Method Detail

      • getBlockIds

        public java.util.List<java.lang.Long> getBlockIds()
        Returns:
        return the block ids
      • getFileId

        public long getFileId()
        Returns:
        the file id
      • setBlockIds

        public void setBlockIds​(java.util.List<java.lang.Long> blockIds)
        Set the block ids.
        Parameters:
        blockIds - the block ids
      • setFileId

        public void setFileId​(long fileId)
        Set the file id.
        Parameters:
        fileId - the file id