Class FsServerDefaults

java.lang.Object
org.apache.hadoop.fs.FsServerDefaults
All Implemented Interfaces:
Writable

@Public @Evolving public class FsServerDefaults extends Object implements Writable
Provides server default configuration values to clients.
  • Constructor Details

    • FsServerDefaults

      public FsServerDefaults()
    • FsServerDefaults

      public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType)
    • FsServerDefaults

      public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType, String keyProviderUri)
    • FsServerDefaults

      public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType, String keyProviderUri, byte storagepolicy)
    • FsServerDefaults

      public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType, String keyProviderUri, byte storagepolicy, boolean snapshotTrashRootEnabled)
  • Method Details

    • getBlockSize

      public long getBlockSize()
    • getBytesPerChecksum

      public int getBytesPerChecksum()
    • getWritePacketSize

      public int getWritePacketSize()
    • getReplication

      public short getReplication()
    • getFileBufferSize

      public int getFileBufferSize()
    • getEncryptDataTransfer

      public boolean getEncryptDataTransfer()
    • getTrashInterval

      public long getTrashInterval()
    • getChecksumType

      public DataChecksum.Type getChecksumType()
    • getKeyProviderUri

      public String getKeyProviderUri()
    • getDefaultStoragePolicyId

      public byte getDefaultStoragePolicyId()
    • getSnapshotTrashRootEnabled

      public boolean getSnapshotTrashRootEnabled()
    • write

      @Private public void write(DataOutput out) throws IOException
      Description copied from interface: Writable
      Serialize the fields of this object to out.
      Specified by:
      write in interface Writable
      Parameters:
      out - DataOuput to serialize this object into.
      Throws:
      IOException - any other problem for write.
    • readFields

      @Private public void readFields(DataInput in) throws IOException
      Description copied from interface: Writable
      Deserialize the fields of this object from in.

      For efficiency, implementations should attempt to re-use storage in the existing object where possible.

      Specified by:
      readFields in interface Writable
      Parameters:
      in - DataInput to deseriablize this object from.
      Throws:
      IOException - any other problem for readFields.