Peter,

On Fri, 18 Oct 2002 20:14, [EMAIL PROTECTED] wrote:

+
+
+ /**
+ * Return a collection of the triggerable names.
+ * @return
+ */
+ public synchronized Collection getEntries() {
+ Collection coll = m_entries.keySet();
+ Vector retval = new Vector();
+ for (Iterator iterator = coll.iterator(); iterator.hasNext();) {
+ TimeScheduledEntry tse = (TimeScheduledEntry)
m_entries.get((String) iterator.next()); + retval.add(tse.toString());
+ }
+ return retval;
}

The TimeScheduledEntry are package access only and are thus not really able to be edited from a Management system and should not really be exposed. If you just want to see read-only access it may be a good idea to create a read-only "Management" copy of entry. Or maybe just toString it. So we could maybe do something like

Read it again dude. The mx entry is a getter only. and Strings not TSEs are being handed out of the package. The block name is the clue *Monitor. I am not using it anywhere yet, but will do shortly, so we can easily redo. I plan to add similar to other Cornerstone blocks. I often hear bad things about Cornerstone, and a little optional JMX capability might help it to sell itself....

Thoughts?

- Paul


--
To unsubscribe, e-mail: <mailto:avalon-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@;jakarta.apache.org>



Reply via email to