Package omero.api
Class _RawFileStoreTie
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.api._RawFileStoreDisp
-
- omero.api._RawFileStoreTie
-
- All Implemented Interfaces:
Ice.Object,Ice.TieBase,java.io.Serializable,java.lang.Cloneable,_RawFileStoreOperations,_RawFileStoreOperationsNC,_ServiceInterfaceOperations,_ServiceInterfaceOperationsNC,_StatefulServiceInterfaceOperations,_StatefulServiceInterfaceOperationsNC,RawFileStore,ServiceInterface,StatefulServiceInterface
public class _RawFileStoreTie extends _RawFileStoreDisp implements Ice.TieBase
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID-
Fields inherited from class omero.api._RawFileStoreDisp
__ids
-
Fields inherited from interface omero.api.RawFileStore
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _RawFileStoreTie()_RawFileStoreTie(_RawFileStoreOperations delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate_async(AMD_StatefulServiceInterface_activate __cb, Ice.Current __current)Load a service implementation from disk if it was previously passivated.voidclose_async(AMD_StatefulServiceInterface_close __cb, Ice.Current __current)Frees all resources -- passivated or active -- for the given stateful service and removes its name from the object adapter.booleanequals(java.lang.Object rhs)voidexists_async(AMD_RawFileStore_exists __cb, Ice.Current __current)Checks to see if a raw file exists with the file ID that the service was initialized with.voidgetCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb, Ice.Current __current)To free clients from tracking the mapping from session to stateful service, each stateful service can returns its own context information.voidgetFileId_async(AMD_RawFileStore_getFileId __cb, Ice.Current __current)Returns the current file id or null if none has been set.inthashCode()java.lang.Objectice_delegate()voidice_delegate(java.lang.Object delegate)voidpassivate_async(AMD_StatefulServiceInterface_passivate __cb, Ice.Current __current)Causes the blitz server to store the service implementation to disk to free memory.voidread_async(AMD_RawFileStore_read __cb, long position, int length, Ice.Current __current)Readslengthbytes of data at thepositionfrom the raw file into an array of bytes.voidsave_async(AMD_RawFileStore_save __cb, Ice.Current __current)Saves theOriginalFileassociated with the service if it has been modified.voidsetFileId_async(AMD_RawFileStore_setFileId __cb, long fileId, Ice.Current __current)This method manages the state of the service.voidsize_async(AMD_RawFileStore_size __cb, Ice.Current __current)Returns the size of the file on disk (not as stored in the database since that value will only be updated onsave.voidtruncate_async(AMD_RawFileStore_truncate __cb, long length, Ice.Current __current)Limits the size of a file to the given length.voidwrite_async(AMD_RawFileStore_write __cb, byte[] buf, long position, int length, Ice.Current __current)Writeslengthbytes of data from the specifiedbufbyte array starting at atpositionto the raw file.-
Methods inherited from class omero.api._RawFileStoreDisp
___exists, ___getFileId, ___read, ___save, ___setFileId, ___size, ___truncate, ___write, __dispatch, __readImpl, __writeImpl, activate_async, close_async, exists_async, getCurrentEventContext_async, getFileId_async, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, passivate_async, read_async, save_async, setFileId_async, size_async, truncate_async, write_async
-
Methods inherited from class Ice.ObjectImpl
___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_preMarshal
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
_RawFileStoreTie
public _RawFileStoreTie()
-
_RawFileStoreTie
public _RawFileStoreTie(_RawFileStoreOperations delegate)
-
-
Method Detail
-
ice_delegate
public java.lang.Object ice_delegate()
- Specified by:
ice_delegatein interfaceIce.TieBase
-
ice_delegate
public void ice_delegate(java.lang.Object delegate)
- Specified by:
ice_delegatein interfaceIce.TieBase
-
equals
public boolean equals(java.lang.Object rhs)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
exists_async
public void exists_async(AMD_RawFileStore_exists __cb, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsChecks to see if a raw file exists with the file ID that the service was initialized with.- Specified by:
exists_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getFileId_async
public void getFileId_async(AMD_RawFileStore_getFileId __cb, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsReturns the current file id or null if none has been set.- Specified by:
getFileId_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
read_async
public void read_async(AMD_RawFileStore_read __cb, long position, int length, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsReadslengthbytes of data at thepositionfrom the raw file into an array of bytes.- Specified by:
read_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
save_async
public void save_async(AMD_RawFileStore_save __cb, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsSaves theOriginalFileassociated with the service if it has been modified. The returned valued should replace all instances of theOriginalFilein the client. If save has not been called,RawFileStoreinstances will save theOriginalFileobject associated with it onclose. See also ticket 1651 and ticket 2161.- Specified by:
save_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setFileId_async
public void setFileId_async(AMD_RawFileStore_setFileId __cb, long fileId, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsThis method manages the state of the service. This method will throw aSecurityViolationif for the current user context either the file is not readable or aomero.constants.permissions.BINARYACCESSrestriction is in place.- Specified by:
setFileId_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
size_async
public void size_async(AMD_RawFileStore_size __cb, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsReturns the size of the file on disk (not as stored in the database since that value will only be updated onsave. If the file has not yet been written to, and therefore does not exist, aResourceErrorwill be thrown.- Specified by:
size_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
truncate_async
public void truncate_async(AMD_RawFileStore_truncate __cb, long length, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsLimits the size of a file to the given length. If the file is already shorter than length, no action is taken in which case false is returned.- Specified by:
truncate_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
write_async
public void write_async(AMD_RawFileStore_write __cb, byte[] buf, long position, int length, Ice.Current __current) throws ServerError
Description copied from interface:_RawFileStoreOperationsWriteslengthbytes of data from the specifiedbufbyte array starting at atpositionto the raw file.- Specified by:
write_asyncin interface_RawFileStoreOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
activate_async
public void activate_async(AMD_StatefulServiceInterface_activate __cb, Ice.Current __current) throws ServerError
Description copied from interface:_StatefulServiceInterfaceOperationsLoad a service implementation from disk if it was previously passivated. It is unnecessary to call this method since activation happens automatically, but calling this may prevent a short lapse when the service is first accessed after passivation. It is safe to call this method at any time, even when the service is not passivated.- Specified by:
activate_asyncin interface_StatefulServiceInterfaceOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
close_async
public void close_async(AMD_StatefulServiceInterface_close __cb, Ice.Current __current) throws ServerError
Description copied from interface:_StatefulServiceInterfaceOperationsFrees all resources -- passivated or active -- for the given stateful service and removes its name from the object adapter. Any further method calls will fail with a Ice::NoSuchObjectException. Note: with JavaEE, the close method was called publicly, and internally this called destroy(). As of the OmeroBlitz migration, this functionality has been combined.- Specified by:
close_asyncin interface_StatefulServiceInterfaceOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getCurrentEventContext_async
public void getCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb, Ice.Current __current) throws ServerError
Description copied from interface:_StatefulServiceInterfaceOperationsTo free clients from tracking the mapping from session to stateful service, each stateful service can returns its own context information.- Specified by:
getCurrentEventContext_asyncin interface_StatefulServiceInterfaceOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
passivate_async
public void passivate_async(AMD_StatefulServiceInterface_passivate __cb, Ice.Current __current) throws ServerError
Description copied from interface:_StatefulServiceInterfaceOperationsCauses the blitz server to store the service implementation to disk to free memory. This is typically done automatically by the server when a pre-defined memory limit is reached, but can be used by the client if it clear that a stateful service will not be used for some time. Activation will happen automatically whether passivation was done manually or automatically.- Specified by:
passivate_asyncin interface_StatefulServiceInterfaceOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
-