@InterfaceAudience.Public @InterfaceStability.Evolving public class FsServerDefaults extends Object implements Writable
Constructor and Description |
---|
FsServerDefaults() |
FsServerDefaults(long blockSize,
int bytesPerChecksum,
int writePacketSize,
short replication,
int fileBufferSize,
boolean encryptDataTransfer,
long trashInterval,
DataChecksum.Type checksumType) |
Modifier and Type | Method and Description |
---|---|
long |
getBlockSize() |
int |
getBytesPerChecksum() |
DataChecksum.Type |
getChecksumType() |
boolean |
getEncryptDataTransfer() |
int |
getFileBufferSize() |
short |
getReplication() |
long |
getTrashInterval() |
int |
getWritePacketSize() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public FsServerDefaults()
public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication, int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType)
public long getBlockSize()
public int getBytesPerChecksum()
public int getWritePacketSize()
public short getReplication()
public int getFileBufferSize()
public boolean getEncryptDataTransfer()
public long getTrashInterval()
public DataChecksum.Type getChecksumType()
@InterfaceAudience.Private public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
@InterfaceAudience.Private public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.