public class SrvDiskInfo extends DiskInfo
The class extends the client side version of the disk information class to allow values to be set after construction by a disk interface implementation.
The class contains information about the total, free and used blocks on a disk device, and the block size and blocks per allocation unit of the device.
m_blockperunit, m_blocksize, m_freeunits, m_nodename, m_share, m_totalunits
Modifier | Constructor and Description |
---|---|
|
SrvDiskInfo()
Create an empty disk information object.
|
|
SrvDiskInfo(int totunits,
int blkunit,
int blksiz,
int freeunit)
Construct a disk information object.
|
|
SrvDiskInfo(long totunits,
long blkunit,
long blksiz,
long freeunit)
Construct a disk information object.
|
protected |
SrvDiskInfo(PCShare shr,
int totunits,
int blkunit,
int blksiz,
int freeunit)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(SrvDiskInfo disk)
Copy the disk information details
|
void |
setBlockSize(int siz)
Set the block size, in bytes.
|
void |
setBlockSize(long siz)
Set the block size, in bytes.
|
void |
setBlocksPerAllocationUnit(int blks)
Set the number of blocks per filesystem allocation unit.
|
void |
setBlocksPerAllocationUnit(long blks)
Set the number of blocks per filesystem allocation unit.
|
void |
setFreeUnits(int units)
Set the number of free units on this shared disk device.
|
void |
setFreeUnits(long units)
Set the number of free units on this shared disk device.
|
protected void |
setNodeName(String name)
Set the node name.
|
protected void |
setShareName(String name)
Set the shared device name.
|
void |
setTotalUnits(int units)
Set the total number of units on this shared disk device.
|
void |
setTotalUnits(long units)
Set the total number of units on this shared disk device.
|
getBlockSize, getBlocksPerAllocationUnit, getDiskFreeSizeKb, getDiskFreeSizeMb, getDiskSizeKb, getDiskSizeMb, getFreeUnits, getNodeName, getShareName, getTotalUnits, getUnitSize, toString
public SrvDiskInfo()
public SrvDiskInfo(int totunits, int blkunit, int blksiz, int freeunit)
totunits
- intblkunit
- intblksiz
- intfreeunit
- intpublic SrvDiskInfo(long totunits, long blkunit, long blksiz, long freeunit)
totunits
- longblkunit
- longblksiz
- longfreeunit
- longprotected SrvDiskInfo(PCShare shr, int totunits, int blkunit, int blksiz, int freeunit)
shr
- PCSharetotunits
- intblkunit
- intblksiz
- intfreeunit
- intpublic final void setBlockSize(int siz)
siz
- intpublic final void setBlocksPerAllocationUnit(int blks)
blks
- intpublic final void setFreeUnits(int units)
units
- intpublic final void setTotalUnits(int units)
units
- intpublic final void setBlockSize(long siz)
siz
- longpublic final void setBlocksPerAllocationUnit(long blks)
blks
- longpublic final void setFreeUnits(long units)
units
- longpublic final void setTotalUnits(long units)
units
- longprotected final void setNodeName(String name)
name
- java.lang.Stringprotected final void setShareName(String name)
name
- java.lang.Stringpublic final void copyFrom(SrvDiskInfo disk)
disk
- SrvDiskInfoCopyright © 2005–2018 Alfresco Software. All rights reserved.