addCommandForAttribute(instrument);
}
}
public void processTimer(TimerInst timerInst) {
Timer theTimer = new Timer();
try {
ObjectName timerName = new ObjectName(Constants.SM_BASE_DOMAIN + "." + Partition.getAppTitle()+ ".Timers:" +
"Timer=" + timerInst.getOwningSystemAgent().getName() + "." + timerInst.getName());
registerMBean(theTimer, timerName);
theTimer.start();
theTimer.addNotification(timerInst.getName().toString(),"message","data",new Date(),timerInst.getTickInterval());
getMBeanServer().addNotificationListener(timerName, timerInst, null, null);
} catch (Exception e) {
_log.error(e);
}
}