|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.systemutils.SystemUtils
public final class SystemUtils
Provides information of the disk units.
| Method Summary | |
|---|---|
static long |
getFreeDiskSpace(java.lang.String path)
Gets the free disk space in the partition/unit to which the specified path belongs. |
static java.lang.String |
getLocalMacAddress()
Obtain Mac Address of local machine. |
static long |
getTotalDiskSpace(java.lang.String path)
Gets the total disk space in the partition/unit to which the specified path belongs. |
static void |
main(java.lang.String[] args)
Test program. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long getFreeDiskSpace(java.lang.String path)
path - path to a file in the partition/unit whose space is requested.
public static long getTotalDiskSpace(java.lang.String path)
path - path to a file in the partition/unit whose space is requested.
public static java.lang.String getLocalMacAddress()
throws java.lang.Exception
java.lang.Exception - if errorpublic static void main(java.lang.String[] args)
args - Unused.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||