public void working( final int workDone ) { TaskUtil.checkInterruption(); if ( wrapped != null ) { wrapped.working( workDone ); } }
protected <T> ScheduledTask<T> schedule(String id, String name, String type, Callable<T> callable, Schedule schedule, boolean enabled, boolean store) { DefaultScheduledTask<T> dct = new DefaultScheduledTask<T>(id, name, type, this, callable, schedule); dct.setEnabled(enabled); addToTasksMap(dct, store); dct.start(); return dct; }
public void beginTask( final String name ) { TaskUtil.checkInterruption(); if ( wrapped != null ) { wrapped.beginTask( name ); } }
public void endTask( final String message ) { TaskUtil.checkInterruption(); if ( wrapped != null ) { wrapped.endTask( message ); } }
protected void checkInterruption() throws TaskInterruptedException { TaskUtil.checkInterruption(); } }
protected void setTaskState( TaskState state ) { if ( !getTaskState().isEndingState() ) { this.taskState = state; } }
public <T> T createTaskInstance( Class<T> taskType ) throws IllegalArgumentException { return taskConfig.createTaskInstance( taskType ); }
public <T> ScheduledTask<T> initialize(String id, String name, String type, Callable<T> callable, Schedule schedule, boolean enabled) { return schedule(id, name, type, callable, schedule, enabled, false); }
public <T> ScheduledTask<T> updateSchedule(ScheduledTask<T> task) throws RejectedExecutionException, NullPointerException { // Simply add the task to config, will find existing by id, remove, then store new taskConfig.addTask(task); return task; }
public void working( final String message, final int work ) { TaskUtil.checkInterruption(); if ( wrapped != null ) { wrapped.working( message, work ); } }
public void beginTask(final String name, final int toDo) { TaskUtil.checkInterruption(); if (wrapped != null) { wrapped.beginTask(name, toDo); } }
public void endTask(final String message) { TaskUtil.checkInterruption(); if (wrapped != null) { wrapped.endTask(message); } }
protected <T> ScheduledTask<T> schedule( String id, String name, String type, Callable<T> callable, Schedule schedule, boolean enabled, boolean store ) { DefaultScheduledTask<T> dct = new DefaultScheduledTask<T>( id, name, type, this, callable, schedule ); dct.setEnabled( enabled ); addToTasksMap( dct, store ); dct.start(); return dct; }
protected void setTaskState(TaskState state) { if (!getTaskState().isEndingState()) { this.taskState = state; } }
public void working(final int workDone) { TaskUtil.checkInterruption(); if (wrapped != null) { wrapped.working(workDone); } }
public void beginTask( final String name, final int toDo ) { TaskUtil.checkInterruption(); if ( wrapped != null ) { wrapped.beginTask( name, toDo ); } }
public void working( final String message ) { TaskUtil.checkInterruption(); if ( wrapped != null ) { wrapped.working( message ); } }
public void beginTask(final String name) { TaskUtil.checkInterruption(); if (wrapped != null) { wrapped.beginTask(name); } }
public void working(final String message, final int work) { TaskUtil.checkInterruption(); if (wrapped != null) { wrapped.working(message, work); } }
public void working(final String message) { TaskUtil.checkInterruption(); if (wrapped != null) { wrapped.working(message); } }