stats.put("Available Count", sbQueue.getMessageCount());
stats.put("Number of Receivers", sbQueue.getCurrentReceivers());
stats.put("Last Published Date/Time", sbQueue.getLastEnqueueTime());
} else {
props = seeBeyondAdmin.getTopicStatistics(destinationName);
SeeBeyondTopic sbTopic = new SeeBeyondTopic(props);
stats.put("Topic Name", sbTopic.getTopicName());
stats.put("Min Sequence Number", sbTopic.getFirstSequence());
stats.put("Max Sequence Number", sbTopic.getLastSequence());
stats.put("Available Count", sbTopic.getMessageCount());
stats.put("Number of Subscribers", sbTopic.getCurrentSubscribers());
stats.put("Last Published Date/Time", sbTopic.getLastEnqueueTime());
}
return stats;
}