private void startTask ( ApplicationDefinition appDef , Task task , TaskRecord taskRecord ) { try { task . setParams ( m_localHost , taskRecord ) ; m_executor . execute ( task ) ; } catch ( Exception e ) { m_logger . error ( "Failed to start task '" + task . getTaskID ( ) + "'" , e ) ; } }
Execute the given task by handing it to the ExecutorService .