public class _RawFileStoreTie extends _RawFileStoreDisp implements Ice.TieBase
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
__ids
ice_staticId
Constructor and Description |
---|
_RawFileStoreTie(_RawFileStoreOperations delegate) |
_RawFileStoreTie() |
Modifier and Type | Method and Description |
---|---|
void |
activate_async(AMD_StatefulServiceInterface_activate __cb,
Ice.Current __current)
Load a service implementation from disk if it was previously
passivated.
|
void |
close_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.
|
boolean |
equals(java.lang.Object rhs) |
void |
exists_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.
|
void |
getCurrentEventContext_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.
|
void |
getFileId_async(AMD_RawFileStore_getFileId __cb,
Ice.Current __current)
Returns the current file id or null if none has been set.
|
int |
hashCode() |
java.lang.Object |
ice_delegate() |
void |
ice_delegate(java.lang.Object delegate) |
void |
passivate_async(AMD_StatefulServiceInterface_passivate __cb,
Ice.Current __current)
Causes the blitz server to store the service implementation to disk
to free memory.
|
void |
read_async(AMD_RawFileStore_read __cb,
long position,
int length,
Ice.Current __current)
Reads
length bytes of data at the
position from the raw file into an array of
bytes. |
void |
save_async(AMD_RawFileStore_save __cb,
Ice.Current __current)
Saves the
OriginalFile associated with
the service if it has been modified. |
void |
setFileId_async(AMD_RawFileStore_setFileId __cb,
long fileId,
Ice.Current __current)
This method manages the state of the service.
|
void |
size_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 on
save . |
void |
truncate_async(AMD_RawFileStore_truncate __cb,
long length,
Ice.Current __current)
Limits the size of a file to the given length.
|
void |
write_async(AMD_RawFileStore_write __cb,
byte[] buf,
long position,
int length,
Ice.Current __current)
Writes
length bytes of data from the specified
buf byte array starting at at
position to the raw file. |
___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
___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
public static final long serialVersionUID
public _RawFileStoreTie()
public _RawFileStoreTie(_RawFileStoreOperations delegate)
public java.lang.Object ice_delegate()
ice_delegate
in interface Ice.TieBase
public void ice_delegate(java.lang.Object delegate)
ice_delegate
in interface Ice.TieBase
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void exists_async(AMD_RawFileStore_exists __cb, Ice.Current __current) throws ServerError
_RawFileStoreOperations
exists_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getFileId_async(AMD_RawFileStore_getFileId __cb, Ice.Current __current) throws ServerError
_RawFileStoreOperations
getFileId_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void read_async(AMD_RawFileStore_read __cb, long position, int length, Ice.Current __current) throws ServerError
_RawFileStoreOperations
length
bytes of data at the
position
from the raw file into an array of
bytes.read_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void save_async(AMD_RawFileStore_save __cb, Ice.Current __current) throws ServerError
_RawFileStoreOperations
OriginalFile
associated with
the service if it has been modified. The returned valued
should replace all instances of the
OriginalFile
in the client.
If save has not been called, RawFileStore
instances will save the OriginalFile
object associated with it on close
.
See also ticket 1651
and ticket 2161.save_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void setFileId_async(AMD_RawFileStore_setFileId __cb, long fileId, Ice.Current __current) throws ServerError
_RawFileStoreOperations
SecurityViolation
if for the
current user context either the file is not readable or a
omero.constants.permissions.BINARYACCESS
restriction is
in place.setFileId_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void size_async(AMD_RawFileStore_size __cb, Ice.Current __current) throws ServerError
_RawFileStoreOperations
save
. If the file has not yet been written to, and
therefore does not exist, a ResourceError
will be thrown.size_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void truncate_async(AMD_RawFileStore_truncate __cb, long length, Ice.Current __current) throws ServerError
_RawFileStoreOperations
truncate_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void write_async(AMD_RawFileStore_write __cb, byte[] buf, long position, int length, Ice.Current __current) throws ServerError
_RawFileStoreOperations
length
bytes of data from the specified
buf
byte array starting at at
position
to the raw file.write_async
in interface _RawFileStoreOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void activate_async(AMD_StatefulServiceInterface_activate __cb, Ice.Current __current) throws ServerError
_StatefulServiceInterfaceOperations
activate_async
in interface _StatefulServiceInterfaceOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void close_async(AMD_StatefulServiceInterface_close __cb, Ice.Current __current) throws ServerError
_StatefulServiceInterfaceOperations
close_async
in interface _StatefulServiceInterfaceOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb, Ice.Current __current) throws ServerError
_StatefulServiceInterfaceOperations
getCurrentEventContext_async
in interface _StatefulServiceInterfaceOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void passivate_async(AMD_StatefulServiceInterface_passivate __cb, Ice.Current __current) throws ServerError
_StatefulServiceInterfaceOperations
passivate_async
in interface _StatefulServiceInterfaceOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError