/** * 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;
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
/** * @return true if the message cursor has memory space available * to page in more messages */ @MBeanInfo("The subscription has space for more messages in memory") public boolean doesCursorHaveSpace();
/** * @return the cursor memory usage in bytes */ @MBeanInfo("The subscription cursor memory usage bytes") public long getCursorMemoryUsage();
/** * @return the cursor memory usage as a percentage */ @MBeanInfo("The subscription cursor memory usage %") public int getCursorPercentUsage();
/** * 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;
/** * Reloads log4j.properties from the classpath. * This methods calls org.apache.activemq.transport.TransportLoggerControl.reloadLog4jProperties * @throws Throwable */ @MBeanInfo(value="Reloads log4j.properties from the classpath.") public void reloadLog4jProperties() throws Throwable;
/** * @return the id of the Connection the Subscription is on */ @MBeanInfo("ID of the Connection the Subscription is on.") String getConnectionId();
/** * @return number of messages dispatched */ @MBeanInfo("Number of messages dispatched awaiting acknowledgement.") int getDispatchedQueueSize();
/** * @return whether or not the subscriber is retroactive or not */ @MBeanInfo("The subscriber is retroactive (tries to receive broadcasted topic messages sent prior to connecting)") boolean isRetroactive();
/** * @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();
/** * Returns the ObjectName of the Connection that created this Subscription. * This value can be null if for instance this is an off-line durable subscription. * * @return the name of the Connection that created this Subscription. */ @MBeanInfo("ObjectName of the Connection that created this Subscription") ObjectName getConnection();
/** * 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;