[jboss-jira] [JBoss JIRA] Created: (JBBOOT-54) Fire Kernel Startup/Shutdown Events
Andrew Lee Rubinger (JIRA)
jira-events at lists.jboss.org
Fri Apr 24 23:26:46 EDT 2009
Fire Kernel Startup/Shutdown Events
-----------------------------------
Key: JBBOOT-54
URL: https://jira.jboss.org/jira/browse/JBBOOT-54
Project: JBoss Bootstrap
Issue Type: Feature Request
Components: impl-mc
Reporter: Andrew Lee Rubinger
Assignee: Andrew Lee Rubinger
Fix For: 0.1.2
A requirement from the legacy implementation:
// Send a notification that the startup is complete
KernelEventManager eventMgr = kernel.getEventManager();
KernelEvent startEvent = new AbstractEvent(eventMgr, START_NOTIFICATION_TYPE, 0, System.currentTimeMillis(), new Long(watch.getLapTime()));
eventMgr.fireKernelEvent(startEvent);
and:
if (bootstrap != null)
{
KernelEvent stopEvent = bootstrap.createEvent(STOP_NOTIFICATION_TYPE, null);
bootstrap.fireKernelEvent(stopEvent);
}
Do this via the event handler mechanism supplied by JBBOOT-32.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list