Class SysmonKeys

java.lang.Object
com.guinetik.hexafun.examples.sysmon.SysmonKeys

public final class SysmonKeys extends Object
Type-safe keys for the system monitor use cases and adapters.

Centralizing keys here provides:

  • Single source of truth for all operations
  • Compile-time type safety
  • IDE discoverability
  • Field Details

    • GET_CPU

      public static final UseCaseKey<Void,Double> GET_CPU
      Get CPU usage. Input: Void (no input needed), Output: Double (percentage).
    • GET_MEMORY

      public static final UseCaseKey<Void,Double> GET_MEMORY
      Get memory usage. Input: Void, Output: Double (percentage).
    • GET_DISK

      public static final UseCaseKey<Void,Double> GET_DISK
      Get disk usage. Input: Void, Output: Double (percentage).
    • GET_ALL

      public static final UseCaseKey<Void,SystemMetrics> GET_ALL
      Get all metrics at once. Input: Void, Output: SystemMetrics.
    • TO_TUI

      public static final AdapterKey<SystemMetrics,String> TO_TUI
      Adapt to TUI format - colorful progress bars with box drawing.
    • TO_CLI

      public static final AdapterKey<SystemMetrics,String> TO_CLI
      Adapt to CLI format - plain text suitable for scripting.
    • TO_JSON

      public static final AdapterKey<SystemMetrics,String> TO_JSON
      Adapt to JSON format - machine-readable output.
    • TO_PROMETHEUS

      public static final AdapterKey<SystemMetrics,String> TO_PROMETHEUS
      Adapt to Prometheus format - metrics exposition format.