system-jmx/src/main/java/org/jboss/system/ServiceMBeanSupport.java
private void sendStateChangeNotification(int oldState, int newState, String msg, Throwable t) {
        long now = System.currentTimeMillis();
        AttributeChangeNotification stateChangeNotification = new AttributeChangeNotification(this,
                getNextNotificationSequenceNumber(), now, msg, "State", "java.lang.Integer", new Integer(oldState),
                new Integer(newState));
        stateChangeNotification.setUserData(t);
        sendNotification(stateChangeNotification);
    }
private void sendStateChangeNotification(int oldState, int newState, String msg, Throwable t) {
        long now = System.currentTimeMillis();
        AttributeChangeNotification stateChangeNotification = new AttributeChangeNotification(this,
                getNextNotificationSequenceNumber(), now, msg, "State", "java.lang.Integer", new Integer(oldState),
                new Integer(newState));
        stateChangeNotification.setUserData(t);
        sendNotification(stateChangeNotification);
    }
private void sendStateChangeNotification ( int oldState , int newState , String msg , Throwable t ) { long now = System . currentTimeMillis ( ) ; AttributeChangeNotification stateChangeNotification = new AttributeChangeNotification ( this , getNextNotificationSequenceNumber ( ) , now , msg , "State" , "java.lang.Integer" , new Integer ( oldState ) , new Integer ( newState ) ) ; stateChangeNotification . setUserData ( t ) ; sendNotification ( stateChangeNotification ) ; }
Helper for sending out state change notifications
Helper for sending out state change notifications