ome.services.blitz.impl
Class ExporterI

java.lang.Object
  extended by ome.services.blitz.impl.AbstractAmdServant
      extended by ome.services.blitz.impl.ExporterI
All Implemented Interfaces:
CloseableServant, BlitzOnly, ServiceFactoryAware, omero.api._ExporterOperations, omero.api._ServiceInterfaceOperations, omero.api._StatefulServiceInterfaceOperations, org.springframework.context.ApplicationContextAware

public class ExporterI
extends AbstractAmdServant
implements omero.api._ExporterOperations, ServiceFactoryAware, BlitzOnly

Implementation of the Exporter service. This class uses a simple state machine.

  START -> waiting -> config -> output -> waiting -> config ...
 

Since:
4.1
Author:
Josh Moore, josh at glencoesoftware.com

Field Summary
 
Fields inherited from class ome.services.blitz.impl.AbstractAmdServant
be, ctx, invoker
 
Constructor Summary
ExporterI(BlitzExecutor be, DatabaseIdentity databaseIdentity)
           
 
Method Summary
 void addImage_async(omero.api.AMD_Exporter_addImage __cb, long id, Ice.Current __current)
           
 loci.formats.meta.IMetadata convertXml(loci.formats.meta.MetadataRetrieve retrieve)
           
 void generateTiff_async(omero.api.AMD_Exporter_generateTiff __cb, Ice.Current __current)
           
 void generateXml_async(omero.api.AMD_Exporter_generateXml __cb, Ice.Current __current)
          Generate XML and return the length
 String generateXml(loci.formats.meta.MetadataRetrieve retrieve)
           
 void preClose()
           
 void read_async(omero.api.AMD_Exporter_read __cb, long pos, int size, Ice.Current __current)
           
 void setServiceFactory(ServiceFactoryI sf)
           
 
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, close_async, close, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface omero.api._StatefulServiceInterfaceOperations
activate_async, close_async, getCurrentEventContext_async, passivate_async
 

Constructor Detail

ExporterI

public ExporterI(BlitzExecutor be,
                 DatabaseIdentity databaseIdentity)
          throws loci.common.services.DependencyException
Throws:
loci.common.services.DependencyException
Method Detail

setServiceFactory

public void setServiceFactory(ServiceFactoryI sf)
                       throws omero.ServerError
Specified by:
setServiceFactory in interface ServiceFactoryAware
Throws:
omero.ServerError

addImage_async

public void addImage_async(omero.api.AMD_Exporter_addImage __cb,
                           long id,
                           Ice.Current __current)
                    throws omero.ServerError
Specified by:
addImage_async in interface omero.api._ExporterOperations
Throws:
omero.ServerError

generateXml_async

public void generateXml_async(omero.api.AMD_Exporter_generateXml __cb,
                              Ice.Current __current)
                       throws omero.ServerError
Generate XML and return the length

Specified by:
generateXml_async in interface omero.api._ExporterOperations
Throws:
omero.ServerError

generateTiff_async

public void generateTiff_async(omero.api.AMD_Exporter_generateTiff __cb,
                               Ice.Current __current)
                        throws omero.ServerError
Specified by:
generateTiff_async in interface omero.api._ExporterOperations
Throws:
omero.ServerError

read_async

public void read_async(omero.api.AMD_Exporter_read __cb,
                       long pos,
                       int size,
                       Ice.Current __current)
                throws omero.ServerError
Specified by:
read_async in interface omero.api._ExporterOperations
Throws:
omero.ServerError

convertXml

public loci.formats.meta.IMetadata convertXml(loci.formats.meta.MetadataRetrieve retrieve)
                                       throws loci.common.services.ServiceException
Throws:
loci.common.services.ServiceException

generateXml

public String generateXml(loci.formats.meta.MetadataRetrieve retrieve)
                   throws loci.common.services.ServiceException
Throws:
loci.common.services.ServiceException

preClose

public void preClose()
Overrides:
preClose in class AbstractAmdServant


OmeroJava Api

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

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