com.starla.smb
Class SMBDiskInfo

java.lang.Object
  |
  +--com.starla.smb.SMBDiskInfo

public final class SMBDiskInfo
extends java.lang.Object

SMB disk information class.

The SMBDiskInfo class contains the details of a remote disk share. This class is returned by the SMBDiskSession.getDiskInformation () method.


Method Summary
 int getBlockSize()
          Get the block size, in bytes.
 int getBlocksPerAllocationUnit()
          Get the number of blocks per allocation unit.
 int getDiskFreeSizeKb()
          Get the disk free space in kilobytes.
 int getDiskFreeSizeMb()
          Get the disk free space in megabytes.
 int getDiskSizeKb()
          Get the disk size in kilobytes.
 int getDiskSizeMb()
          Get the disk size in megabytes.
 int 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.
 int getTotalUnits()
          Get the total number of allocation units.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBlockSize

public final int getBlockSize()
Get the block size, in bytes.
Returns:
Block size in bytes.

getBlocksPerAllocationUnit

public final int getBlocksPerAllocationUnit()
Get the number of blocks per allocation unit.
Returns:
Number of blocks per allocation unit.

getDiskFreeSizeKb

public final int getDiskFreeSizeKb()
Get the disk free space in kilobytes.
Returns:
Remote disk free space in kilobytes.

getDiskFreeSizeMb

public final int getDiskFreeSizeMb()
Get the disk free space in megabytes.
Returns:
Remtoe disk free space in megabytes.

getDiskSizeKb

public final int getDiskSizeKb()
Get the disk size in kilobytes.
Returns:
Remote disk size in kilobytes.

getDiskSizeMb

public final int getDiskSizeMb()
Get the disk size in megabytes.
Returns:
Remote disk size in megabytes.

getFreeUnits

public final int getFreeUnits()
Get the number of free units on this share.
Returns:
Number of free units.

getNodeName

public final java.lang.String getNodeName()
Get the node name.
Returns:
Node name of the remote server.

getShareName

public final java.lang.String getShareName()
Get the share name.
Returns:
Remote share name.

getTotalUnits

public final int getTotalUnits()
Get the total number of allocation units.
Returns:
The total number of allocation units.