ome.services.blitz.tasks
Class BlitzTask

java.lang.Object
  extended by ome.util.tasks.Task
      extended by ome.util.tasks.SimpleTask
          extended by ome.services.blitz.tasks.BlitzTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ResetLicensesTask

public abstract class BlitzTask
extends SimpleTask

Extends SimpleTask in order to allow calling tasks on blitz servers as well as application servers.

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
SimpleTask

Field Summary
 boolean useBlitz
          Defines whether or not this task was initialized for blitz or for an application server.
 
Constructor Summary
BlitzTask(client client, Properties properties)
          Requires a non-null client.
BlitzTask(ServiceFactory serviceFactory, Properties properties)
          Delegates to super constructor.
 
Method Summary
 client getBlitzServiceFactory()
           
 boolean isBlitz()
           
 
Methods inherited from class ome.util.tasks.SimpleTask
close, doTask, handleException, init
 
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
 

Field Detail

useBlitz

public final boolean useBlitz
Defines whether or not this task was initialized for blitz or for an application server.

Constructor Detail

BlitzTask

public BlitzTask(ServiceFactory serviceFactory,
                 Properties properties)
Delegates to super constructor.


BlitzTask

public BlitzTask(client client,
                 Properties properties)
Requires a non-null client. If a null Properties instance is provided, the System properties will be used.

Parameters:
serviceFactory - Cannot be null.
properties - Context variables for the task. Optional (can be null).
Method Detail

isBlitz

public boolean isBlitz()

getBlitzServiceFactory

public client getBlitzServiceFactory()


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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