public interface ODSFileOperations extends InstanceElementOperations
Modifier and Type | Method and Description |
---|---|
ODSWriteTransfer |
append()
(30000)
Get the ODSWriteTransfer interface for the file, to allow appending
further bytes to the file.
|
boolean |
canRead()
(30001)
Check whether the file may be opened for reading.
|
boolean |
canWrite()
(30002)
Check whether the file may be opened for writing.
|
ODSWriteTransfer |
create()
(30003)
Create a new file on the host of the ODS server and get the
ODSWriteTransfer interface for that file, to allow storing bytes to
the file.
|
boolean |
exists()
(30004)
Check whether the file physically exists at the ODS server.
|
java.lang.String |
getDate()
(30005)
Get the date of the file.
|
T_LONGLONG |
getSize()
(30006)
Get the size of the file.
|
ODSReadTransfer |
read()
(30008)
Get the ODSReadTransfer interface for the file.
|
void |
remove()
(30007)
Remove a file from the host computer.
|
void |
removeFromControl(java.lang.String targetUrl)
(30010)
Take a file that is currently under control of the ODS server out of
control of the server and move it to a specified location within
reach of the server.
|
void |
takeUnderControl(java.lang.String sourceUrl)
(30009)
Put a file that is already residing within reach of the ODS server
under control of the ODS server.
|
addInstanceAttribute, compare, createRelatedInstances, createRelation, deepCopy, destroy, getApplicationElement, getAsamPath, getId, getInitialRights, getName, getRelatedInstances, getRelatedInstancesByRelationship, getRights, getValue, getValueByBaseName, getValueInUnit, getValueSeq, listAttributes, listRelatedInstances, listRelatedInstancesByRelationship, removeInstanceAttribute, removeRelation, renameInstanceAttribute, setInitialRights, setName, setRights, setValue, setValueSeq, shallowCopy, upcastMeasurement, upcastODSFile, upcastSubMatrix
ODSWriteTransfer append() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_FILE_LOCKED
AO_ACCESS_DENIED
AO_BAD_OPERATION
AO_SYSTEM_PROBLEMboolean canRead() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEboolean canWrite() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEODSWriteTransfer create() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_ACCESS_DENIED
AO_BAD_OPERATION
AO_SYSTEM_PROBLEMboolean exists() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String getDate() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_BAD_OPERATION
AO_SYSTEM_PROBLEM
AO_FILE_LOCKEDT_LONGLONG getSize() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_FILE_LOCKED
AO_BAD_OPERATION
AO_SYSTEM_PROBLEMvoid remove() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_FILE_LOCKED
AO_ACCESS_DENIED
AO_SYSTEM_PROBLEMODSReadTransfer read() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_FILE_LOCKED
AO_BAD_OPERATION
AO_SYSTEM_PROBLEMvoid takeUnderControl(java.lang.String sourceUrl) throws AoException
sourceUrl
- Filename URL of the file to take under control as
a managed file.AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_BAD_PARAMETER
AO_BAD_OPERATION
AO_SYSTEM_PROBLEMvoid removeFromControl(java.lang.String targetUrl) throws AoException
targetUrl
- Filename URL of the file where to move the
managed file.AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_BAD_PARAMETER
AO_FILE_LOCKED
AO_SYSTEM_PROBLEM
AO_BAD_OPERATION
AO_BAD_PARAMETER