* will be automatically filled.
*/
protected void sendAlarmNotification(
ObjectName target, String type, int severity, int alarmState, String message, Object userData)
{
Notification n = new AlarmNotification(
type,
mbeanImpl.getMBeanName(), // source
target,
severity,
alarmState,
this.mbeanImpl.getSequenceNumber(),
System.currentTimeMillis(),
message
);
n.setUserData(userData);
// send it away
mbeanImpl.emitNotification(n);
}