Class OpenZFSReadCacheConfiguration

    • Method Detail

      • sizingMode

        public final OpenZFSReadCacheSizingMode sizingMode()

        Specifies how the provisioned SSD read cache is sized, as follows:

        • Set to NO_CACHE if you do not want to use an SSD read cache with your Intelligent-Tiering file system.

        • Set to USER_PROVISIONED to specify the exact size of your SSD read cache.

        • Set to PROPORTIONAL_TO_THROUGHPUT_CAPACITY to have your SSD read cache automatically sized based on your throughput capacity.

        If the service returns an enum value that is not available in the current SDK version, sizingMode will return OpenZFSReadCacheSizingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sizingModeAsString().

        Returns:
        Specifies how the provisioned SSD read cache is sized, as follows:

        • Set to NO_CACHE if you do not want to use an SSD read cache with your Intelligent-Tiering file system.

        • Set to USER_PROVISIONED to specify the exact size of your SSD read cache.

        • Set to PROPORTIONAL_TO_THROUGHPUT_CAPACITY to have your SSD read cache automatically sized based on your throughput capacity.

        See Also:
        OpenZFSReadCacheSizingMode
      • sizingModeAsString

        public final String sizingModeAsString()

        Specifies how the provisioned SSD read cache is sized, as follows:

        • Set to NO_CACHE if you do not want to use an SSD read cache with your Intelligent-Tiering file system.

        • Set to USER_PROVISIONED to specify the exact size of your SSD read cache.

        • Set to PROPORTIONAL_TO_THROUGHPUT_CAPACITY to have your SSD read cache automatically sized based on your throughput capacity.

        If the service returns an enum value that is not available in the current SDK version, sizingMode will return OpenZFSReadCacheSizingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sizingModeAsString().

        Returns:
        Specifies how the provisioned SSD read cache is sized, as follows:

        • Set to NO_CACHE if you do not want to use an SSD read cache with your Intelligent-Tiering file system.

        • Set to USER_PROVISIONED to specify the exact size of your SSD read cache.

        • Set to PROPORTIONAL_TO_THROUGHPUT_CAPACITY to have your SSD read cache automatically sized based on your throughput capacity.

        See Also:
        OpenZFSReadCacheSizingMode
      • sizeGiB

        public final Integer sizeGiB()

        Required if SizingMode is set to USER_PROVISIONED. Specifies the size of the file system's SSD read cache, in gibibytes (GiB).

        Returns:
        Required if SizingMode is set to USER_PROVISIONED. Specifies the size of the file system's SSD read cache, in gibibytes (GiB).
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)