Package org.apache.hadoop.fs
Class FsServerDefaults
java.lang.Object
org.apache.hadoop.fs.FsServerDefaults
- All Implemented Interfaces:
Writable
Provides server default configuration values to clients.
-
Constructor Summary
ConstructorsConstructorDescriptionFsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType) FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType, String keyProviderUri) FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType, String keyProviderUri, byte storagepolicy) 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 Summary
Modifier and TypeMethodDescriptionlongintbytebooleanintshortbooleanlongintvoidreadFields(DataInput in) Deserialize the fields of this object fromin.voidwrite(DataOutput out) Serialize the fields of this object toout.
-
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
-
getKeyProviderUri
-
getDefaultStoragePolicyId
public byte getDefaultStoragePolicyId() -
getSnapshotTrashRootEnabled
public boolean getSnapshotTrashRootEnabled() -
write
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-
readFields
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-