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:
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, invoker, service
 
Constructor Summary
ExporterI(BlitzExecutor be, DatabaseIdentity databaseIdentity)
           
 
Method Summary
 void activate_async(omero.api.AMD_StatefulServiceInterface_activate __cb, Ice.Current __current)
           
 void addImage_async(omero.api.AMD_Exporter_addImage __cb, long id, Ice.Current __current)
           
 void close_async(omero.api.AMD_StatefulServiceInterface_close __cb, Ice.Current __current)
           
static 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
static String generateXml(loci.formats.meta.MetadataRetrieve retrieve)
           
 void getCurrentEventContext_async(omero.api.AMD_StatefulServiceInterface_getCurrentEventContext __cb, Ice.Current __current)
           
 void passivate_async(omero.api.AMD_StatefulServiceInterface_passivate __cb, Ice.Current __current)
           
 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
applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, onSetOmeroContext, runnableCall, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExporterI

public ExporterI(BlitzExecutor be,
                 DatabaseIdentity databaseIdentity)
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 static loci.formats.meta.IMetadata convertXml(loci.formats.meta.MetadataRetrieve retrieve)

generateXml

public static String generateXml(loci.formats.meta.MetadataRetrieve retrieve)

activate_async

public void activate_async(omero.api.AMD_StatefulServiceInterface_activate __cb,
                           Ice.Current __current)
Specified by:
activate_async in interface omero.api._StatefulServiceInterfaceOperations

passivate_async

public void passivate_async(omero.api.AMD_StatefulServiceInterface_passivate __cb,
                            Ice.Current __current)
Specified by:
passivate_async in interface omero.api._StatefulServiceInterfaceOperations

close_async

public void close_async(omero.api.AMD_StatefulServiceInterface_close __cb,
                        Ice.Current __current)
Specified by:
close_async in interface omero.api._StatefulServiceInterfaceOperations

getCurrentEventContext_async

public void getCurrentEventContext_async(omero.api.AMD_StatefulServiceInterface_getCurrentEventContext __cb,
                                         Ice.Current __current)
                                  throws omero.ServerError
Specified by:
getCurrentEventContext_async in interface omero.api._StatefulServiceInterfaceOperations
Throws:
omero.ServerError


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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