Package io.deephaven.app
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().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ApplicationState.Listener listener) static booleanenabled()Looks up the system property "io.deephaven.app.GcApplication.enabled", defaults tofalse.voidhandleNotification(Notification notification, Object handback) static booleanLooks up the system property "io.deephaven.app.GcApplication.notification_info.enabled", defaults totrue.static intLooks up the system property "io.deephaven.app.GcApplication.notification_info_ring.enabled", defaults to1024.static booleanLooks up the system property "io.deephaven.app.GcApplication.notification_info_stats.enabled", defaults totrue.static booleanLooks up the system property "io.deephaven.app.GcApplication.pools.enabled", defaults totrue.static booleanLooks up the system property "io.deephaven.app.GcApplication.pools_stats.enabled", defaults totrue.
-
Constructor Details
-
GcApplication
public GcApplication()
-
-
Method Details
-
enabled
public static boolean enabled()Looks up the system property "io.deephaven.app.GcApplication.enabled", defaults tofalse.- 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 totrue.- 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 totrue.- 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 to1024. The "notification_info_ring" table is disabled when0or 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 totrue.- Returns:
- if "pools" table is enabled
-
poolStatsEnabled
public static boolean poolStatsEnabled()Looks up the system property "io.deephaven.app.GcApplication.pools_stats.enabled", defaults totrue.- Returns:
- if "pools_stats" table is enabled
-
handleNotification
- Specified by:
handleNotificationin interfaceNotificationListener
-
create
- Specified by:
createin interfaceApplicationState.Factory
-