ome.services.throttling
Class Task

java.lang.Object
  extended by ome.services.throttling.Task
Direct Known Subclasses:
Adapter, Callback, Callback2

public abstract class Task
extends Object

Simple base task which contains logic for routing calls reflectively to ice_response and ice_exception of any AMD callback.

Since:
Beta4

Field Summary
protected  Object cb
           
protected  Ice.Current current
           
protected  Method exception
           
protected  boolean isVoid
           
protected  Method response
           
 
Constructor Summary
Task(Object callback, Ice.Current current, boolean isVoid)
           
 
Method Summary
protected  void exception(Throwable ex, OmeroContext ctx)
           
protected  void response(Object rv, OmeroContext ctx)
          Calls the response method
abstract  void run(OmeroContext ctx)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cb

protected final Object cb

isVoid

protected final boolean isVoid

current

protected final Ice.Current current

response

protected final Method response

exception

protected final Method exception
Constructor Detail

Task

public Task(Object callback,
            Ice.Current current,
            boolean isVoid)
Method Detail

run

public abstract void run(OmeroContext ctx)

response

protected void response(Object rv,
                        OmeroContext ctx)
Calls the response method


exception

protected void exception(Throwable ex,
                         OmeroContext ctx)

toString

public String toString()
Overrides:
toString in class Object


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

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