private void cancelRecipe ( String applicationName , String scopedInstancePath ) { if ( Utils . isEmptyOrWhitespaces ( applicationName ) ) applicationName = "" ; if ( Utils . isEmptyOrWhitespaces ( scopedInstancePath ) ) scopedInstancePath = "" ; this . out . println ( "looking up [" + applicationName + "] [" + scopedInstancePath + "]" ) ; Process p = ProcessStore . getProcess ( applicationName , scopedInstancePath ) ; if ( p != null ) { p . destroy ( ) ; ProcessStore . clearProcess ( applicationName , scopedInstancePath ) ; this . out . println ( "Recipe cancelled !" ) ; } else { this . out . println ( "No running recipe to cancel." ) ; } }
Cancels running recipe if any .