@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DiskSpaceInfo extends java.lang.Object implements java.io.Serializable
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
DiskSpaceInfo(java.lang.String consumerName,
java.lang.String path,
java.lang.Long totalBytes,
java.lang.Long usableBytes,
long usablePercent)
Deprecated.
Use the constructor that takes a
Long object for the
usableBytes parameter. |
DiskSpaceInfo(java.lang.String consumerName,
java.lang.String path,
java.lang.Long totalBytes,
java.lang.Long usableBytes,
java.lang.Long usablePercent)
Creates a new disk space info object with the provided information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConsumerName()
The name of the server component which may consume disk space.
|
java.lang.String |
getPath()
Retrieves the path in which the server component may consume disk space.
|
java.lang.Long |
getTotalBytes()
Retrieves the total amount of space in bytes on the volume that holds the
specified path.
|
java.lang.Long |
getUsableBytes()
Retrieves the amount of usable free space in bytes on the volume that holds
the specified path.
|
java.lang.Long |
getUsablePercent()
Retrieves the percentage of the total space on the volume that holds the
specified path which is free and usable by the Directory Server.
|
java.lang.String |
toString()
Retrieves a string representation of this disk space info object.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this disk space info object to the
provided buffer.
|
@Deprecated public DiskSpaceInfo(@Nullable java.lang.String consumerName, @Nullable java.lang.String path, @Nullable java.lang.Long totalBytes, @Nullable java.lang.Long usableBytes, long usablePercent)
Long
object for the
usableBytes
parameter.consumerName
- The name of the server component which may consume
disk space.path
- The path in which the server component may consume
disk space.totalBytes
- The total amount of space in bytes on the volume
that holds the specified path.usableBytes
- The amount of usable space in bytes on the volume
that holds the specified path.usablePercent
- The percentage of the total space that is usable on
the volume that holds the specified path.public DiskSpaceInfo(@Nullable java.lang.String consumerName, @Nullable java.lang.String path, @Nullable java.lang.Long totalBytes, @Nullable java.lang.Long usableBytes, @Nullable java.lang.Long usablePercent)
consumerName
- The name of the server component which may consume
disk space.path
- The path in which the server component may consume
disk space.totalBytes
- The total amount of space in bytes on the volume
that holds the specified path.usableBytes
- The amount of usable space in bytes on the volume
that holds the specified path.usablePercent
- The percentage of the total space that is usable on
the volume that holds the specified path.@Nullable public java.lang.String getConsumerName()
null
if that is not available.@Nullable public java.lang.String getPath()
null
if that is not available.@Nullable public java.lang.Long getTotalBytes()
null
if that is not available.@Nullable public java.lang.Long getUsableBytes()
null
if that is not
available.@Nullable public java.lang.Long getUsablePercent()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object