public void notifyStart ( String projectName , String projectVersion , String category ) { try { if ( isStarted ( ) ) { JSONObject startNotification = new JSONObject ( ) . put ( "project" , new JSONObject ( ) . put ( "name" , projectName ) . put ( "version" , projectVersion ) ) . put ( "category" , category ) ; socket . emit ( "run:start" , startNotification ) ; } else { LOGGER . warn ( "Minirox is not available to send the start notification" ) ; } } catch ( Exception e ) { LOGGER . info ( "Unable to send the start notification to MINI ROX. Cause: {}" , e . getMessage ( ) ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Exception: " , e ) ; } } }
Send a starting notification to Mini ROX