public class OSFileStore extends Object implements OshiJsonObject
| Constructor and Description |
|---|
OSFileStore(String newName,
String newDescription,
long newUsableSpace,
long newTotalSpace)
Creates an OSFileStore with the specified parameters.
|
OSFileStore(String newName,
String newMount,
String newDescription,
long newUsableSpace,
long newTotalSpace)
Creates an OSFileStore with the specified parameters.
|
OSFileStore(String newName,
String newMount,
String newDescription,
String newType,
long newUsableSpace,
long newTotalSpace)
Creates an OSFileStore with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Description of the File System
|
String |
getMount()
Mountpoint of the File System
|
String |
getName()
Name of the File System
|
long |
getTotalSpace()
Total space/capacity of the drive.
|
String |
getType()
Type of the File System (FAT, NTFS, etx2, ext4, etc)
|
long |
getUsableSpace()
Usable space on the drive.
|
void |
setDescription(String value)
Sets the File System description
|
void |
setMount(String value)
Sets the mountpoint of the File System
|
void |
setName(String value)
Sets the File System name
|
void |
setTotalSpace(long value)
Sets the total space on the drive.
|
void |
setType(String value)
Sets the File System type
|
void |
setUsableSpace(long value)
Sets usable space on the drive.
|
javax.json.JsonObject |
toJSON()
Creates a compact JSON string containing the information for this class
|
public OSFileStore(String newName, String newDescription, long newUsableSpace, long newTotalSpace)
newName - Name of the filestorenewDescription - Description of the file storenewUsableSpace - Available/usable bytesnewTotalSpace - Total bytespublic OSFileStore(String newName, String newMount, String newDescription, long newUsableSpace, long newTotalSpace)
newName - Name of the filestorenewMount - Mountpoint of the filestorenewDescription - Description of the file storenewUsableSpace - Available/usable bytesnewTotalSpace - Total bytespublic OSFileStore(String newName, String newMount, String newDescription, String newType, long newUsableSpace, long newTotalSpace)
newName - Name of the filestorenewMount - Mountpoint of the filestorenewDescription - Description of the file storenewType - Type of the filestore, e.g. FAT, NTFS, etx2, ext4, etc.newUsableSpace - Available/usable bytesnewTotalSpace - Total bytespublic String getName()
public void setName(String value)
value - The namepublic String getMount()
public void setMount(String value)
value - The mountpointpublic String getDescription()
public void setDescription(String value)
value - The descriptionpublic String getType()
public void setType(String value)
value - The typepublic long getUsableSpace()
public void setUsableSpace(long value)
value - Bytes of writable space.public long getTotalSpace()
public void setTotalSpace(long value)
value - Bytes of total space.public javax.json.JsonObject toJSON()
toJSON in interface OshiJsonObjectCopyright © 2010–2016 com.github.dblock. All rights reserved.