public class DiskInfo extends Object implements Serializable
The DiskInfo class contains the details of a remote disk share. This class is returned by the DiskSession.getDiskInformation () method.
DiskSession
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected long |
m_blockperunit |
protected long |
m_blocksize |
protected long |
m_freeunits |
protected String |
m_nodename |
protected String |
m_share |
protected long |
m_totalunits |
Constructor and Description |
---|
DiskInfo()
Construct a blank disk information object.
|
DiskInfo(PCShare shr,
int totunits,
int blkunit,
int blksiz,
int freeunit)
Class constructor
|
DiskInfo(PCShare shr,
long totunits,
int blkunit,
int blksiz,
long freeunit)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockSize()
Get the block size, in bytes.
|
int |
getBlocksPerAllocationUnit()
Get the number of blocks per allocation unit.
|
long |
getDiskFreeSizeBytes()
Get the disk free space size in bytes
|
int |
getDiskFreeSizeKb()
Get the disk free space in kilobytes.
|
int |
getDiskFreeSizeMb()
Get the disk free space in megabytes.
|
long |
getDiskSizeBytes()
Get the disk total size in bytes
|
int |
getDiskSizeKb()
Get the disk size in kilobytes.
|
int |
getDiskSizeMb()
Get the disk size in megabytes.
|
long |
getFreeUnits()
Get the number of free units on this share.
|
String |
getNodeName()
Get the node name.
|
String |
getShareName()
Get the share name.
|
long |
getTotalUnits()
Get the total number of allocation units.
|
String |
toString()
Return the disk information as a string
|
protected String m_nodename
protected String m_share
protected long m_totalunits
protected long m_freeunits
protected long m_blockperunit
protected long m_blocksize
public DiskInfo()
public DiskInfo(PCShare shr, int totunits, int blkunit, int blksiz, int freeunit)
shr
- PCSharetotunits
- intblkunit
- intblksiz
- intfreeunit
- intpublic DiskInfo(PCShare shr, long totunits, int blkunit, int blksiz, long freeunit)
shr
- PCSharetotunits
- longblkunit
- intblksiz
- intfreeunit
- longpublic final int getBlockSize()
public final int getBlocksPerAllocationUnit()
public final long getDiskFreeSizeBytes()
public final int getDiskFreeSizeKb()
public final int getDiskFreeSizeMb()
public final long getDiskSizeBytes()
public final int getDiskSizeKb()
public final int getDiskSizeMb()
public final long getFreeUnits()
public final String getNodeName()
public final String getShareName()
public final long getTotalUnits()
Copyright © 2005–2018 Alfresco Software. All rights reserved.