Package io.deephaven.app
Class GcApplication
- java.lang.Object
-
- io.deephaven.app.GcApplication
-
- All Implemented Interfaces:
io.deephaven.appmode.ApplicationState.Factory,java.util.EventListener,javax.management.NotificationListener
public final class GcApplication extends java.lang.Object implements io.deephaven.appmode.ApplicationState.Factory, javax.management.NotificationListenerThe "Garbage-Collection Application", application id "io.deephaven.app.GcApplication", produces streamtables"notification_info" and "pools"; and derived tables "notification_info_stats", "notification_info_ring", and "pools_stats". This data is modeled after theGarbageCollectionNotificationInfoevent information fromManagementFactory.getGarbageCollectorMXBeans().
-
-
Constructor Summary
Constructors Constructor Description GcApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.deephaven.appmode.ApplicationStatecreate(io.deephaven.appmode.ApplicationState.Listener listener)static booleanenabled()Looks up the system property "io.deephaven.app.GcApplication.enabled", defaults tofalse.voidhandleNotification(javax.management.Notification notification, java.lang.Object handback)static booleannotificationInfoEnabled()Looks up the system property "io.deephaven.app.GcApplication.notification_info.enabled", defaults totrue.static intnotificationInfoRingSize()Looks up the system property "io.deephaven.app.GcApplication.notification_info_ring.enabled", defaults to1024.static booleannotificationInfoStatsEnabled()Looks up the system property "io.deephaven.app.GcApplication.notification_info_stats.enabled", defaults totrue.static booleanpoolsEnabled()Looks up the system property "io.deephaven.app.GcApplication.pools.enabled", defaults totrue.static booleanpoolStatsEnabled()Looks up the system property "io.deephaven.app.GcApplication.pools_stats.enabled", defaults totrue.
-
-
-
Method Detail
-
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
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)- Specified by:
handleNotificationin interfacejavax.management.NotificationListener
-
create
public io.deephaven.appmode.ApplicationState create(io.deephaven.appmode.ApplicationState.Listener listener)
- Specified by:
createin interfaceio.deephaven.appmode.ApplicationState.Factory
-
-