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 void
postClose(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 void
preClose(Ice.Current current)
void
read_async(AMD_RawFileStore_read __cb, long position, int length, Ice.Current __current)
Readslength
bytes of data at theposition
from the raw file into an array of bytes.void
setCallback(ome.services.blitz.repo.RepoRawFileStoreI.Callback cb)
void
setFileId_async(AMD_RawFileStore_setFileId __cb, long fileId, Ice.Current __current)
This method manages the state of the service.void
write_async(AMD_RawFileStore_write __cb, byte[] buf, long position, int length, Ice.Current __current)
Writeslength
bytes of data from the specifiedbuf
byte array starting at atposition
to 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:_RawFileStoreOperations
This method manages the state of the service. This method will throw aSecurityViolation
if for the current user context either the file is not readable or aomero.constants.permissions.BINARYACCESS
restriction is in place.- Specified by:
setFileId_async
in interface_RawFileStoreOperations
- Overrides:
setFileId_async
in 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:_RawFileStoreOperations
Readslength
bytes of data at theposition
from the raw file into an array of bytes.- Specified by:
read_async
in interface_RawFileStoreOperations
- Overrides:
read_async
in 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:_RawFileStoreOperations
Writeslength
bytes of data from the specifiedbuf
byte array starting at atposition
to the raw file.- Specified by:
write_async
in interface_RawFileStoreOperations
- Overrides:
write_async
in 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:
preClose
in classRawFileStoreI
- Throws:
java.lang.Throwable
-
postClose
protected void postClose(Ice.Current c)
Description copied from class:AbstractCloseableAmdServant
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.- Overrides:
postClose
in classRawFileStoreI
-
-