ome.util.tasks
Class SimpleTask

java.lang.Object
  extended by ome.util.tasks.Task
      extended by ome.util.tasks.SimpleTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AdminTask, BlitzTask, DebugTask, ListUsersAndGroupsTask

public class SimpleTask
extends Task

Simplest possible concrete subclass of Task which has null methods for all of the required methods. Therefore, does nothing by default (though it logs the nothing that it's doing). Task writers can override any or all of the 4 methods.

Since:
3.0-Beta1
Version:
$Revision: 1208 $, $Date: 2007-01-24 16:23:09 +0000 (Wed, 24 Jan 2007) $
Author:
Josh Moore, josh.moore at gmx.de
See Also:
Task

Constructor Summary
SimpleTask(ServiceFactory serviceFactory, Properties properties)
          Sole constructor.
 
Method Summary
 void close()
          Does nothing.
 void doTask()
          Does nothing.
 void handleException(RuntimeException re)
          Rethrows the RuntimeException.
 void init()
          Does nothing.
 
Methods inherited from class ome.util.tasks.Task
completedSuccessfully, enumValue, getLogger, getProperties, getServiceFactory, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTask

public SimpleTask(ServiceFactory serviceFactory,
                  Properties properties)
Sole constructor. Delegates to Task

See Also:
Task.Task(ServiceFactory, Properties)
Method Detail

init

public void init()
Does nothing.

Specified by:
init in class Task

doTask

public void doTask()
Does nothing.

Specified by:
doTask in class Task

handleException

public void handleException(RuntimeException re)
Rethrows the RuntimeException.

Specified by:
handleException in class Task
Parameters:
re - Non-null.

close

public void close()
Does nothing.

Specified by:
close in class Task


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.