private Configuration getTaskConfiguration ( final String taskId ) { try { return TaskConfiguration . CONF . set ( TaskConfiguration . IDENTIFIER , taskId ) . set ( TaskConfiguration . TASK , SleepTask . class ) . build ( ) ; } catch ( final BindException ex ) { LOG . log ( Level . SEVERE , "Failed to create Task Configuration: " + taskId , ex ) ; throw new RuntimeException ( ex ) ; } }
Build a new Task configuration for a given task ID .