Package ome.services.blitz.repo
Class RepoRawFileStoreI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.AbstractCloseableAmdServant
-
- ome.services.blitz.impl.RawFileStoreI
-
- ome.services.blitz.repo.RepoRawFileStoreI
-
- All Implemented Interfaces:
ServiceFactoryAware,_RawFileStoreOperations,_ServiceInterfaceOperations,_StatefulServiceInterfaceOperations,CloseableServant,TieAware,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RepoRawFileStoreI extends RawFileStoreI
An implementation of the RepoRawFileStore interface
-
-
Constructor Summary
Constructors Constructor Description RepoRawFileStoreI(BlitzExecutor be, ome.api.RawFileStore service, Ice.Current curr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpostClose(Ice.Current c)Should not throw any exceptions which should be detected by clients since it is called in a finally block after the client thread has been released.protected voidpreClose(Ice.Current current)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.voidsetCallback(ome.services.blitz.repo.RepoRawFileStoreI.Callback cb)voidsetFileId_async(AMD_RawFileStore_setFileId __cb, long fileId, Ice.Current __current)This method manages the state of the service.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 ome.services.blitz.impl.RawFileStoreI
__redirect, exists_async, getFileId_async, getServiceFactory, save_async, setServiceFactory, setTie, size_async, truncate_async
-
Methods inherited from class ome.services.blitz.impl.AbstractCloseableAmdServant
close, close_async
-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
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
-
RepoRawFileStoreI
public RepoRawFileStoreI(BlitzExecutor be, ome.api.RawFileStore service, Ice.Current curr)
-
-
Method Detail
-
setCallback
public void setCallback(ome.services.blitz.repo.RepoRawFileStoreI.Callback cb)
-
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- Overrides:
setFileId_asyncin classRawFileStoreI- 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- Overrides:
read_asyncin classRawFileStoreI- 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- Overrides:
write_asyncin classRawFileStoreI- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
preClose
protected void preClose(Ice.Current current) throws java.lang.Throwable- Overrides:
preClosein classRawFileStoreI- Throws:
java.lang.Throwable
-
postClose
protected void postClose(Ice.Current c)
Description copied from class:AbstractCloseableAmdServantShould not throw any exceptions which should be detected by clients since it is called in a finally block after the client thread has been released.- Overrides:
postClosein classRawFileStoreI
-
-