Class GcApplication

java.lang.Object
io.deephaven.app.GcApplication
All Implemented Interfaces:
ApplicationState.Factory, EventListener, NotificationListener

public final class GcApplication extends Object implements ApplicationState.Factory, NotificationListener
The "Garbage-Collection Application", application id "io.deephaven.app.GcApplication", produces stream tables "notification_info" and "pools"; and derived tables "notification_info_stats", "notification_info_ring", and "pools_stats". This data is modeled after the GarbageCollectionNotificationInfo event information from ManagementFactory.getGarbageCollectorMXBeans().
See Also:
  • Constructor Details

    • GcApplication

      public GcApplication()
  • Method Details

    • enabled

      public static boolean enabled()
      Looks up the system property "io.deephaven.app.GcApplication.enabled", defaults to false.
      Returns:
      if the GC application is enabled
    • notificationInfoEnabled

      public static boolean notificationInfoEnabled()
      Looks up the system property "io.deephaven.app.GcApplication.notification_info.enabled", defaults to true.
      Returns:
      if "notification_info" table is enabled
    • notificationInfoStatsEnabled

      public static boolean notificationInfoStatsEnabled()
      Looks up the system property "io.deephaven.app.GcApplication.notification_info_stats.enabled", defaults to true.
      Returns:
      if "notification_info_stats" table is enabled
    • notificationInfoRingSize

      public static int notificationInfoRingSize()
      Looks up the system property "io.deephaven.app.GcApplication.notification_info_ring.enabled", defaults to 1024. The "notification_info_ring" table is disabled when 0 or less.
      Returns:
      the "notification_info_ring" table size
    • poolsEnabled

      public static boolean poolsEnabled()
      Looks up the system property "io.deephaven.app.GcApplication.pools.enabled", defaults to true.
      Returns:
      if "pools" table is enabled
    • poolStatsEnabled

      public static boolean poolStatsEnabled()
      Looks up the system property "io.deephaven.app.GcApplication.pools_stats.enabled", defaults to true.
      Returns:
      if "pools_stats" table is enabled
    • handleNotification

      public void handleNotification(Notification notification, Object handback)
      Specified by:
      handleNotification in interface NotificationListener
    • create

      public ApplicationState create(ApplicationState.Listener listener)
      Specified by:
      create in interface ApplicationState.Factory