ome.services.blitz.impl
Class DeleteHandleI

java.lang.Object
  extended by Ice.ObjectImpl
      extended by omero.api.delete._DeleteHandleDisp
          extended by ome.services.blitz.impl.DeleteHandleI
All Implemented Interfaces:
Ice.Object, Serializable, Cloneable, Runnable, CloseableServant, omero.api.delete._DeleteHandleOperations, omero.api.delete._DeleteHandleOperationsNC, omero.api.delete.DeleteHandle

public class DeleteHandleI
extends omero.api.delete._DeleteHandleDisp
implements CloseableServant, Runnable

Servant for the handle proxy from the IDelete service. This is also a Runnable and is passed to a ThreadPool instance

 Transitions:

      +------------------o [FINISHED]
      |                        o
      |                        |
 (CREATED) ---o READY o===o RUNNING o===o CANCELLING ---o [CANCELLED]
      |           |                           o                o
      |           |---------------------------|                |
      +--------------------------------------------------------+

 

Since:
4.2.1
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
IDelete, Serialized Form

Field Summary
 
Fields inherited from class omero.api.delete._DeleteHandleDisp
__ids
 
Constructor Summary
DeleteHandleI(org.springframework.context.ApplicationContext ctx, Ice.Identity id, ServiceFactoryI sf, AbstractFileSystemService afs, omero.api.delete.DeleteCommand[] commands, int cancelTimeoutMs)
          Create and
 
Method Summary
 boolean cancel(Ice.Current __current)
           
 void close(Ice.Current current)
           
 omero.api.delete.DeleteCommand[] commands(Ice.Current __current)
           
 void doRun(ome.util.SqlAction sql, org.hibernate.Session session)
           
 int errors(Ice.Current __current)
           
 boolean finished(Ice.Current __current)
           
 omero.api.delete.DeleteReport[] report(Ice.Current __current)
           
 void run()
          NB: only executes if state is State#CREATED.
 void steps(ome.util.SqlAction sql, org.hibernate.Session session, ome.services.blitz.impl.DeleteHandleI.Report report)
           
 
Methods inherited from class omero.api.delete._DeleteHandleDisp
___cancel, ___close, ___commands, ___errors, ___finished, ___report, __dispatch, __read, __read, __write, __write, cancel, close, commands, errors, finished, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, report
 
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __collocDispatch, clone, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Ice.Object
__collocDispatch, clone, equals, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
 

Constructor Detail

DeleteHandleI

public DeleteHandleI(org.springframework.context.ApplicationContext ctx,
                     Ice.Identity id,
                     ServiceFactoryI sf,
                     AbstractFileSystemService afs,
                     omero.api.delete.DeleteCommand[] commands,
                     int cancelTimeoutMs)
Create and

Parameters:
id -
sf -
factory -
commands -
cancelTimeoutMs -
Method Detail

commands

public omero.api.delete.DeleteCommand[] commands(Ice.Current __current)
                                          throws omero.ServerError
Specified by:
commands in interface omero.api.delete._DeleteHandleOperations
Throws:
omero.ServerError

finished

public boolean finished(Ice.Current __current)
                 throws omero.ServerError
Specified by:
finished in interface omero.api.delete._DeleteHandleOperations
Throws:
omero.ServerError

errors

public int errors(Ice.Current __current)
           throws omero.ServerError
Specified by:
errors in interface omero.api.delete._DeleteHandleOperations
Throws:
omero.ServerError

report

public omero.api.delete.DeleteReport[] report(Ice.Current __current)
                                       throws omero.ServerError
Specified by:
report in interface omero.api.delete._DeleteHandleOperations
Throws:
omero.ServerError

cancel

public boolean cancel(Ice.Current __current)
               throws omero.ServerError
Specified by:
cancel in interface omero.api.delete._DeleteHandleOperations
Throws:
omero.ServerError

close

public void close(Ice.Current current)
           throws omero.ServerError
Specified by:
close in interface CloseableServant
Specified by:
close in interface omero.api.delete._DeleteHandleOperations
Throws:
omero.ServerError

run

public void run()
NB: only executes if state is State#CREATED.

Specified by:
run in interface Runnable

doRun

public void doRun(ome.util.SqlAction sql,
                  org.hibernate.Session session)
           throws ome.services.blitz.impl.DeleteHandleI.Cancel
Throws:
ome.services.blitz.impl.DeleteHandleI.Cancel

steps

public void steps(ome.util.SqlAction sql,
                  org.hibernate.Session session,
                  ome.services.blitz.impl.DeleteHandleI.Report report)
           throws ome.services.blitz.impl.DeleteHandleI.Cancel
Throws:
ome.services.blitz.impl.DeleteHandleI.Cancel


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

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