Class DiskSpaceInfo

java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.DiskSpaceInfo
All Implemented Interfaces:
Serializable

This class provides a data structure that may be used to hold information about disk space information for a Directory Server component.
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.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    DiskSpaceInfo(String consumerName, String path, Long totalBytes, Long usableBytes, long usablePercent)
    Deprecated.
    Use the constructor that takes a Long object for the usableBytes parameter.
    DiskSpaceInfo(String consumerName, String path, Long totalBytes, Long usableBytes, Long usablePercent)
    Creates a new disk space info object with the provided information.
  • Method Summary

    Modifier and Type
    Method
    Description
    The name of the server component which may consume disk space.
    Retrieves the path in which the server component may consume disk space.
    Retrieves the total amount of space in bytes on the volume that holds the specified path.
    Retrieves the amount of usable free space in bytes on the volume that holds the specified path.
    Retrieves the percentage of the total space on the volume that holds the specified path which is free and usable by the Directory Server.
    Retrieves a string representation of this disk space info object.
    void
    Appends a string representation of this disk space info object to the provided buffer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DiskSpaceInfo

      @Deprecated public DiskSpaceInfo(@Nullable String consumerName, @Nullable String path, @Nullable Long totalBytes, @Nullable Long usableBytes, long usablePercent)
      Deprecated.
      Use the constructor that takes a Long object for the usableBytes parameter.
      Creates a new disk space info object with the provided information.
      Parameters:
      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.
    • DiskSpaceInfo

      public DiskSpaceInfo(@Nullable String consumerName, @Nullable String path, @Nullable Long totalBytes, @Nullable Long usableBytes, @Nullable Long usablePercent)
      Creates a new disk space info object with the provided information.
      Parameters:
      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.
  • Method Details

    • getConsumerName

      The name of the server component which may consume disk space.
      Returns:
      The name of the server component which may consume disk space, or null if that is not available.
    • getPath

      Retrieves the path in which the server component may consume disk space.
      Returns:
      The path in which the server component may consume disk space, or null if that is not available.
    • getTotalBytes

      Retrieves the total amount of space in bytes on the volume that holds the specified path.
      Returns:
      The total amount of space in bytes on the volume that holds the specified path, or null if that is not available.
    • getUsableBytes

      Retrieves the amount of usable free space in bytes on the volume that holds the specified path.
      Returns:
      The total amount of usable free space in bytes on the volume that holds the specified path, or null if that is not available.
    • 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.
      Returns:
      The percentage of the total space on the volume that holds the specified path which is free and usable by the Directory Server.
    • toString

      Retrieves a string representation of this disk space info object.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this disk space info object.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      Appends a string representation of this disk space info object to the provided buffer.
      Parameters:
      buffer - The buffer to which the information should be appended.