@Override protected String getDescription(MBeanOperationInfo info) { Method found = findMethod(info); if (found != null) { Description description = found.getAnnotation(Description.class); if (description != null) { return description.value(); } } return super.getDescription(info); }
/** * * @param pageIndex * @param pageSize * @param filters * @return the JSON data * @see Resource#EVENTS */ @Description("Receives a collection of fired events.") String receiveEvents(@ParamName("pageIndex") int pageIndex, @ParamName("pageSize") int pageSize, @ParamName("filters") @Description("A blank-separated list of key-value pairs. Keys and values are separated by a colon. E.g beanClass:\"Foo\" description:\"bar\".") String filters);
/** * * @return the JSON result * @see Resource#INVOCATIONS */ @Description("Removes all monitoring data - invocation trees.") String clearInvocations();
/** * * @param id * @return the JSON data * @see Resource#OBSERVER */ @Description("Receives an observer method detail.") String receiveObserver(@ParamName("id") String id);
/** * * @param id * @return the JSON data * @see Resource#BEAN_INSTANCE */ @Description("Receives a contextual instance of a bean. This is only supported for a limited set of scopes.") String receiveBeanInstance(@ParamName("id") String id);
/** * * @param id * @return the JSON data * @see Resource#OBSERVER */ @Description("Receives an observer method detail.") String receiveObserver(@ParamName("id") String id);
/** * * @param pageIndex * @param pageSize * @param filters * @param representation * @return the JSON data * @see Resource#AVAILABLE_BEANS */ @Description("Receives a collection of beans availabe in a specific bean deployment archive.") String receiveAvailableBeans(@ParamName("pageIndex") int pageIndex, @ParamName("pageSize") int pageSize, @ParamName("filters") @Description("A blank-separated list of key-value pairs. Keys and values are separated by a colon. E.g requiredType:\"com.foo.Bar\" resolve:false.") String filters, @ParamName("representation") String representation);
/** * * @param pageIndex * @param pageSize * @param filters * @param representation * @return the JSON data * @see Resource#OBSERVERS */ @Description("Receives a collection of observer methods.") String receiveObservers(@ParamName("pageIndex") int pageIndex, @ParamName("pageSize") int pageSize, @ParamName("filters") @Description("A blank-separated list of key-value pairs. Keys and values are separated by a colon. E.g beanClass:\"Foo\" qualifier:\"any\".") String filters, @ParamName("representation") String representation);
/** * * @return the JSON data * @see Resource#CONTEXTS */ @Description("Receives a collection of inspectable contexts.") String receiveContexts();
/** * * @return the JSON result * @see Resource#MONITORING_STATS */ @Description("Receives monitoring stats.") String receiveMonitoringStats();
/** * * @param id * @return the JSON data * @see Resource#CONTEXT */ @Description("Receives a collection of contextual instances for the given inspectable context.") String receiveContext(@ParamName("id") String id);
/** * * @param id * @return the JSON data * @see Resource#INVOCATION */ @Description("Receives an invocation tree detail.") String receiveInvocation(@ParamName("id") String id);
/** * * @return the JSON data * @see Resource#CONTEXTS */ @Description("Receives a collection of inspectable contexts.") String receiveContexts();
/** * * @param id * @return the JSON data * @see Resource#BEAN */ @Description("Receives a bean detail.") String receiveBean(@ParamName("id") String id, @ParamName("transientDependencies") boolean transientDependencies, @ParamName("transientDependents") boolean transientDependents);
/** * * @return the JSON result * @see Resource#EVENTS */ @Description("Removes all monitoring data - fired events.") String clearEvents();
/** * * @return the JSON data * @see Resource#CONTEXTS */ @Description("Receives a collection of inspectable contexts.") String receiveContexts();
/** * * @param id * @return the JSON data * @see Resource#BEAN */ @Description("Receives a bean detail.") String receiveBean(@ParamName("id") String id, @ParamName("transientDependencies") boolean transientDependencies, @ParamName("transientDependents") boolean transientDependents);
/** * * @param pageIndex * @param pageSize * @param filters * @return the JSON data * @see Resource#EVENTS */ @Description("Receives a collection of fired events.") String receiveEvents(@ParamName("pageIndex") int pageIndex, @ParamName("pageSize") int pageSize, @ParamName("filters") @Description("A blank-separated list of key-value pairs. Keys and values are separated by a colon. E.g beanClass:\"Foo\" description:\"bar\".") String filters);
/** * * @param id * @return the JSON data * @see Resource#BEAN_INSTANCE */ @Description("Receives a contextual instance of a bean. This is only supported for a limited set of scopes.") String receiveBeanInstance(@ParamName("id") String id);
@Override protected String getDescription(MBeanOperationInfo info) { Method found = findMethod(info); if (found != null) { Description description = found.getAnnotation(Description.class); if (description != null) { return description.value(); } } return super.getDescription(info); }