protected Map < String , Object > buildJobDataMap ( final JmxCommand jmxCommand , final Object [ ] params ) throws MBeanException { final Map < String , Object > jobDataMap = new HashMap < String , Object > ( ) ; try { int ind = 0 ; // Options are before the AdapterArguments for ( JmxOption option : JmxOptions . getOptions ( ) ) { option . process ( jobDataMap , String . valueOf ( params [ ind ++ ] ) ) ; } for ( Argument arg : this . remoteProgram . getArguments ( ) ) { arg . setValueUsingParser ( String . valueOf ( params [ ind ++ ] ) ) ; } } catch ( Exception e ) { throw new MBeanException ( e ) ; } return jobDataMap ; }
Initialize the JobDataMap with the Program arguments