/** * Browse messages for this durable subscriber * * @return messages * @throws OpenDataException */ @MBeanInfo("Browse the composite data array of pending messages in this subscription") CompositeData[] browse() throws OpenDataException;
/** * @return the cursor memory usage in bytes */ @MBeanInfo("The subscription cursor memory usage bytes") public long getCursorMemoryUsage();
/** * disable statistics gathering */ @MBeanInfo("Disables statistics gathering") void disableStatistics();
/** * @return Uptime of the broker. */ @MBeanInfo("Uptime of the broker.") String getUptime();
/** * Stop the broker and all it's components. */ @Override @MBeanInfo("Stop the broker and all its components.") void stop() throws Exception;
/** * Restart the broker and all it's components. */ @MBeanInfo("Restart the broker and all its components.") void restart() throws Exception;
/** * @return whether or not the subscriber is durable (persistent) */ @MBeanInfo("The subscription is persistent.") boolean isDurable();
/** * @return if the Consumer is configured for Async dispatch */ @MBeanInfo("Is the consumer configured for Async Dispatch") boolean isDispatchAsync();
/** * Remove all the Jobs from the scheduler that are due between the start and finish times. * * @param start * the starting time to remove jobs from. * @param finish * the finish time for the remove operation. * * @throws Exception if an error occurs while attempting to remove the jobs. */ @MBeanInfo("remove all scheduled jobs between time ranges ") public abstract void removeAllJobs(@MBeanInfo("start: yyyy-MM-dd hh:mm:ss")String start,@MBeanInfo("finish: yyyy-MM-dd hh:mm:ss")String finish) throws Exception;
/** * @return true if caching is currently enabled of for the destination */ @MBeanInfo("Caching is enabled") boolean isCacheEnabled();
/** * Warning this method can only be invoked if you have the correct version * of {@link HealthStatus} on your classpath or you use something * like <a href="http://jolokia.org/">jolokia</a> to access JMX. * * If in doubt, please use the {@link #getCurrentStatus()} method instead! * * @return a list of HealthStatus objects that describe the health of the Broker. */ @MBeanInfo("List of warnings and errors about the current health of the Broker - empty list is Good!") List<HealthStatus> healthList() throws Exception;
/** * Returns the name of this destination */ @MBeanInfo("Name of this destination.") String getName();
/** * Sends a TextMessage to the destination. * * @param properties the message properties to set as a comma sep name=value list. Can only * contain Strings maped to primitive types or JMS properties. eg: body=hi,JMSReplyTo=Queue2 * @return the message id of the message sent. * @throws Exception */ @MBeanInfo("Sends a TextMessage to the destination.") public String sendTextMessageWithProperties(String properties) throws Exception;
/** * @return the amount of memory allocated to this destination */ @MBeanInfo("Memory limit, in bytes, used by undelivered messages before paging to temporary storage.") long getMemoryLimit();
/** * @return longest time a message is held by a destination */ @MBeanInfo("The longest time a message was held on this destination") long getMaxEnqueueTime();
/** * @return true if caching is allowed of for the destination */ @MBeanInfo("Caching is allowed") public boolean isUseCache();
/** * @return true if prioritized messages are enabled for the destination */ @MBeanInfo("Prioritized messages is enabled") public boolean isPrioritizedMessages();
/** * @return A string of destination options, name value pairs as URL queryString. */ @MBeanInfo("Destination options as name value pairs in a URL queryString") String getOptions();