public abstract class _ExporterDisp extends Ice.ObjectImpl implements Exporter
ExporterPrx e = sf.createExporter();
// Exporter is currently in the <i>configuration</i> state
// Objects can be added by id which should be present
// in the output.
e.addImage(1);
// As soon as a generate method is called, the objects
// added to the Exporter are converted to the specified
// format. The length of the file produced is returned.
// No more objects can be added to the Exporter, nor can
// another generate method be called.
long length = e.generateTiff();
// As soon as the server-side file is generated, read()
// can be called to get file segments. To create another
// file, create a second Exporter. Be sure to close all
// Exporter instances.
long read = 0
byte\[] buf;
while (true) {
buf = e.read(read, 1000000);
// Store to file locally here
if (buf.length < 1000000) {
break;
}
read += buf.length;
}
e.close();
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
__ids |
static long |
serialVersionUID |
ice_staticId| Constructor and Description |
|---|
_ExporterDisp() |
| Modifier and Type | Method and Description |
|---|---|
static Ice.DispatchStatus |
___addImage(Exporter __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___generateTiff(Exporter __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___generateXml(Exporter __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
static Ice.DispatchStatus |
___read(Exporter __obj,
IceInternal.Incoming __inS,
Ice.Current __current) |
Ice.DispatchStatus |
__dispatch(IceInternal.Incoming in,
Ice.Current __current) |
protected void |
__readImpl(IceInternal.BasicStream __is) |
protected void |
__writeImpl(IceInternal.BasicStream __os) |
void |
activate_async(AMD_StatefulServiceInterface_activate __cb)
Load a service implementation from disk if it was previously
passivated.
|
void |
addImage_async(AMD_Exporter_addImage __cb,
long id)
Adds a single image with basic metadata to the Exporter for inclusion
on the next call to getBytes().
|
void |
close_async(AMD_StatefulServiceInterface_close __cb)
Frees all resources -- passivated or active -- for the given
stateful service and removes its name from the object adapter.
|
void |
generateTiff_async(AMD_Exporter_generateTiff __cb)
Generates an OME-TIFF file.
|
void |
generateXml_async(AMD_Exporter_generateXml __cb)
Generates an OME-XML file.
|
void |
getCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb)
To free clients from tracking the mapping from session to stateful
service, each stateful service can returns its own context information.
|
protected void |
ice_copyStateFrom(Ice.Object __obj) |
java.lang.String |
ice_id() |
java.lang.String |
ice_id(Ice.Current __current) |
java.lang.String[] |
ice_ids() |
java.lang.String[] |
ice_ids(Ice.Current __current) |
boolean |
ice_isA(java.lang.String s) |
boolean |
ice_isA(java.lang.String s,
Ice.Current __current) |
static java.lang.String |
ice_staticId() |
void |
passivate_async(AMD_StatefulServiceInterface_passivate __cb)
Causes the blitz server to store the service implementation to disk
to free memory.
|
void |
read_async(AMD_Exporter_read __cb,
long position,
int length)
Returns
length bytes from the output file. |
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddImage_async, generateTiff_async, generateXml_async, read_asyncactivate_async, close_async, getCurrentEventContext_async, passivate_asyncpublic static final java.lang.String[] __ids
public static final long serialVersionUID
protected void ice_copyStateFrom(Ice.Object __obj)
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic boolean ice_isA(java.lang.String s)
ice_isA in interface Ice.Objectice_isA in class Ice.ObjectImplpublic boolean ice_isA(java.lang.String s,
Ice.Current __current)
ice_isA in interface Ice.Objectice_isA in class Ice.ObjectImplpublic java.lang.String[] ice_ids()
ice_ids in interface Ice.Objectice_ids in class Ice.ObjectImplpublic java.lang.String[] ice_ids(Ice.Current __current)
ice_ids in interface Ice.Objectice_ids in class Ice.ObjectImplpublic java.lang.String ice_id()
ice_id in interface Ice.Objectice_id in class Ice.ObjectImplpublic java.lang.String ice_id(Ice.Current __current)
ice_id in interface Ice.Objectice_id in class Ice.ObjectImplpublic static java.lang.String ice_staticId()
public final void addImage_async(AMD_Exporter_addImage __cb, long id) throws ServerError
addImage_async in interface _ExporterOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void generateTiff_async(AMD_Exporter_generateTiff __cb) throws ServerError
generateTiff_async in interface _ExporterOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void generateXml_async(AMD_Exporter_generateXml __cb) throws ServerError
generateXml_async in interface _ExporterOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void read_async(AMD_Exporter_read __cb, long position, int length) throws ServerError
length bytes from the output file. The
file can be safely read until reset() is called.read_async in interface _ExporterOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void activate_async(AMD_StatefulServiceInterface_activate __cb) throws ServerError
activate_async in interface _StatefulServiceInterfaceOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void close_async(AMD_StatefulServiceInterface_close __cb) throws ServerError
close_async in interface _StatefulServiceInterfaceOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void getCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb) throws ServerError
getCurrentEventContext_async in interface _StatefulServiceInterfaceOperationsNC__cb - The callback object for the operation.ServerErrorpublic final void passivate_async(AMD_StatefulServiceInterface_passivate __cb) throws ServerError
passivate_async in interface _StatefulServiceInterfaceOperationsNC__cb - The callback object for the operation.ServerErrorpublic static Ice.DispatchStatus ___addImage(Exporter __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___generateXml(Exporter __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___generateTiff(Exporter __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___read(Exporter __obj, IceInternal.Incoming __inS, Ice.Current __current)
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in,
Ice.Current __current)
__dispatch in interface Ice.Object__dispatch in class Ice.ObjectImplprotected void __writeImpl(IceInternal.BasicStream __os)
__writeImpl in class Ice.ObjectImplprotected void __readImpl(IceInternal.BasicStream __is)
__readImpl in class Ice.ObjectImpl