public class DiskInfo
extends java.lang.Object
implements java.io.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 java.lang.String |
m_nodename |
protected java.lang.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.
|
java.lang.String |
getNodeName()
Get the node name.
|
java.lang.String |
getShareName()
Get the share name.
|
long |
getTotalUnits()
Get the total number of allocation units.
|
java.lang.String |
toString()
Return the disk information as a string
|
protected java.lang.String m_nodename
protected java.lang.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 java.lang.String getNodeName()
public final java.lang.String getShareName()
public final long getTotalUnits()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.