ht.put("producerCnt", String.valueOf(producers.size()));
if (producers.size() > 0) {
Vector v = new Vector();
Iterator itr = producers.keySet().iterator();
while (itr.hasNext()) {
ProducerUID p = (ProducerUID)itr.next();
v.add(p.toString());
}
ht.put("producers", v);
}
ht.put("msgsToConsumer", String.valueOf(msgsToConsumer));
ht.put("sessionCnt", String.valueOf(sessions.size()));
if (sessions.size() > 0) {
Vector v = new Vector();
Iterator itr = sessions.values().iterator();
while (itr.hasNext()) {
Session p = (Session)itr.next();
v.add(p.getSessionUID().toString());
}
ht.put("sessions", v);
}
ht.put("busySessionCnt", String.valueOf(busySessions.size()));
if (busySessions.size() > 0) {
Vector v = new Vector();
Iterator itr = busySessions.iterator();
while (itr.hasNext()) {
Session p = (Session)itr.next();
v.add(p.getSessionUID().toString());
}
ht.put("busySessions", v);
}
ht.put("tempDestCnt", String.valueOf(tmpDestinations.size()));
if (tmpDestinations.size() > 0) {
Vector v = new Vector();
Iterator itr = tmpDestinations.iterator();
while (itr.hasNext()) {
DestinationUID p = (DestinationUID)itr.next();
v.add(p.toString());
}
ht.put("tempDestinations", v);
}
ht.put("runningMsgs", String.valueOf(runningMsgs));
ht.put("paused", String.valueOf(paused));