private void handleChangeConfigurationRequest ( final int executorId , final String actionName , final HttpServletRequest req , final HashMap < String , Object > ret ) throws ServletException , IOException { try { final Map < String , Object > result = this . execManagerAdapter . callExecutorStats ( executorId , actionName , getAllParams ( req ) ) ; if ( result . containsKey ( ConnectorParams . RESPONSE_ERROR ) ) { ret . put ( ConnectorParams . RESPONSE_ERROR , result . get ( ConnectorParams . RESPONSE_ERROR ) . toString ( ) ) ; } else { ret . put ( ConnectorParams . STATUS_PARAM , result . get ( ConnectorParams . STATUS_PARAM ) ) ; } } catch ( final ExecutorManagerException ex ) { logger . error ( ex . getMessage ( ) , ex ) ; ret . put ( "error" , "Failed to change config change" ) ; } }
Generic method to facilitate actionName action using Azkaban exec server