public class JavaAppUtils
extends java.lang.Object
Constructor and Description |
---|
JavaAppUtils() |
Modifier and Type | Method and Description |
---|---|
static <any> |
compositeDataToMemoryUsage() |
static void |
connectJavaAppServerPolicies(Entity entity) |
static void |
connectJavaAppServerPolicies(Entity entity,
Duration windowPeriod) |
static JmxFeed |
connectMXBeanSensors(Entity entity) |
static JmxFeed |
connectMXBeanSensors(Entity entity,
Duration jmxPollPeriod) |
static JmxFeed |
connectMXBeanSensors(Entity entity,
long jmxPollPeriodMs) |
static JmxFeed.Builder |
getMxBeanSensorsBuilder(Entity entity) |
static JmxFeed.Builder |
getMxBeanSensorsBuilder(Entity entity,
Duration jmxPollPeriod) |
static JmxFeed.Builder |
getMxBeanSensorsBuilder(Entity entity,
long jmxPollPeriod) |
static void |
init()
Setup renderer hints for the MXBean attributes.
|
static boolean |
isEntityMxBeanStatsEnabled(Entity entity) |
public static boolean isEntityMxBeanStatsEnabled(Entity entity)
@Nullable public static JmxFeed connectMXBeanSensors(Entity entity, long jmxPollPeriodMs)
@Nullable public static JmxFeed connectMXBeanSensors(Entity entity, Duration jmxPollPeriod)
entity
- The entity at which to polljmxPollPeriod
- How often to pollJmxFeed
configured to poll the given entity at the given period,
or null if the entity is not configured for MXBEAN_STATSUsesJavaMXBeans.MXBEAN_STATS_ENABLED
public static void connectJavaAppServerPolicies(Entity entity)
public static void connectJavaAppServerPolicies(Entity entity, Duration windowPeriod)
@Nonnull public static JmxFeed.Builder getMxBeanSensorsBuilder(Entity entity)
entity
- The entity at which to pollJmxFeed.Builder
configured to poll entity every ten secondsgetMxBeanSensorsBuilder(Entity, Duration)
@Nonnull public static JmxFeed.Builder getMxBeanSensorsBuilder(Entity entity, long jmxPollPeriod)
@Nonnull public static JmxFeed.Builder getMxBeanSensorsBuilder(Entity entity, Duration jmxPollPeriod)
entity
- The entity at which to polljmxPollPeriod
- How often to pollJmxFeed.Builder
configured to poll many interesting MXBeans
at the given entity and to repeat according to the given poll period.
If an entity does not have MXBean stats enabled (i.e. UsesJavaMXBeans.MXBEAN_STATS_ENABLED
is
configured to false) then returns a builder configured with entity and duration but no polls.
Use connectMXBeanSensors(Entity, Duration)
to create and build in one step.public static <any> compositeDataToMemoryUsage()
public static void init()