public class OSFileStore extends AbstractOshiJsonObject
| Constructor and Description |
|---|
OSFileStore(String newName,
String newVolume,
String newMount,
String newDescription,
String newType,
String newUuid,
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.
|
String |
getUUID()
UUID/GUID of the File System
|
String |
getVolume()
Volume of the File System
|
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.
|
void |
setUUID(String value)
Sets the File System UUID/GUID
|
void |
setVolume(String value)
Sets the volume of the File System
|
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringpublic OSFileStore(String newName, String newVolume, String newMount, String newDescription, String newType, String newUuid, long newUsableSpace, long newTotalSpace)
newName - Name of the filestorenewVolume - Volume of the filestorenewMount - Mountpoint of the filestorenewDescription - Description of the file storenewType - Type of the filestore, e.g. FAT, NTFS, etx2, ext4, etc.newUuid - UUID/GUID of the filestorenewUsableSpace - Available/usable bytesnewTotalSpace - Total bytespublic String getName()
public void setName(String value)
value - The namepublic String getVolume()
public void setVolume(String value)
value - The volumepublic 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 String getUUID()
public void setUUID(String value)
value - The UUID/GUIDpublic 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(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().properties - Properties to configure returned resultsJsonObject for this class.Copyright © 2010–2017 oshi. All rights reserved.