@Test public void testJmxAttributePollerReturnsMBeanAttribute() throws Exception { GeneralisedDynamicMBean mbean = jmxService.registerMBean(ImmutableMap.of(attributeName, 42), objectName); feed = JmxFeed.builder() .entity(entity) .pollAttribute(new JmxAttributePollConfig<Integer>(intAttribute) .objectName(objectName) .period(50) .attributeName(attributeName)) .build(); assertSensorEventually(intAttribute, 42, TIMEOUT_MS); mbean.updateAttributeValue(attributeName, 64); assertSensorEventually(intAttribute, 64, TIMEOUT_MS); }
public static Builder builder() { return new Builder(); }
JmxFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } }
JmxFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } JmxFeed(); protected  JmxFeed(Builder builder); }
JmxFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } JmxFeed(); protected  JmxFeed(Builder builder); static Builder builder(); @Override void setEntity(EntityLocal entity); String getJmxUri(); @Override String toString(); }
JmxFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } JmxFeed(); protected  JmxFeed(Builder builder); static Builder builder(); @Override void setEntity(EntityLocal entity); String getJmxUri(); @Override String toString(); static final Logger log; static final long JMX_CONNECTION_TIMEOUT_MS; static final ConfigKey<JmxHelper> HELPER; static final ConfigKey<Boolean> OWN_HELPER; static final ConfigKey<String> JMX_URI; static final ConfigKey<Long> JMX_CONNECTION_TIMEOUT; @SuppressWarnings("serial")
    static final ConfigKey<SetMultimap<String, JmxAttributePollConfig<?>>> ATTRIBUTE_POLLS; @SuppressWarnings("serial")
    static final ConfigKey<SetMultimap<List<?>, JmxOperationPollConfig<?>>> OPERATION_POLLS; @SuppressWarnings("serial")
    static final ConfigKey<SetMultimap<NotificationFilter, JmxNotificationSubscriptionConfig<?>>> NOTIFICATION_SUBSCRIPTIONS; }