< prev index next >

src/java.base/linux/classes/jdk/internal/platform/CgroupSubsystem.java

Print this page
@  rev 57734 : Review feedback
|
o  rev 57733 : 8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
|  Reviewed-by: bobv, mchung
~
o  rev 56862 : 8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
|  Reviewed-by: bobv
~

@@ -28,6 +28,23 @@
 /**
  * Marker interface for cgroup-based metrics
  *
  */
 public interface CgroupSubsystem extends Metrics {
+
+    /**
+     * Returned for metrics of type long if the underlying implementation
+     * has determined that no limit is being imposed.
+     */
+    public static final long LONG_RETVAL_UNLIMITED = -1;
+    /**
+     * Returned for metrics of type long if the underlying implementation
+     * doesn't support that metric.
+     */
+    public static final long LONG_RETVAL_NOT_SUPPORTED = -2;
+    public static final double DOUBLE_RETVAL_NOT_SUPPORTED = LONG_RETVAL_NOT_SUPPORTED;
+    /**
+     * Returned for metrics of type Boolean if the underlying implementation
+     * doesn't support that metric.
+     */
+    public static final Boolean BOOL_RETVAL_NOT_SUPPORTED = null;
 }
< prev index next >