public class ODSFile extends InstanceElement implements ODSFile
Modifier and Type | Field and Description |
---|---|
protected static java.util.Vector<java.lang.String> |
deletedFiles |
cObjPtr
Modifier and Type | Method and Description |
---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Object |
_get_interface_def() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_a(java.lang.String repositoryIdentifier) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
boolean |
_non_existent() |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
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.
|
void |
closeWriteTransfer(long size)
Close the write transfer of the file
|
ODSWriteTransfer |
create()
(30003)
Create a new file at 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.
|
protected void |
finalize() |
java.lang.String |
getDate()
(30005)
Get the date of the file.
|
AoSession |
getSession()
Get the session of the current instance.
|
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 ODS server.
|
void |
removeFromControl(java.lang.String targetUrl)
(30010)
Remove a file that is currently under control of the ODS server out
of control of the server and move it to a specified location in the
server namespace.
|
void |
takeUnderControl(java.lang.String sourceUrl)
(30009)
Put a file that is already residing in the ODS server namespace
under control of the ODS server.
|
addInstanceAttribute, compare, compare, createRelatedInstances, createRelation, deepCopy, destroy, equals, 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
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public AoSession getSession() throws AoException
AoException
- any occurring ASAM ODS exception.public ODSWriteTransfer append() throws AoException
append
in interface ODSFileOperations
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_PROBLEMpublic boolean canRead() throws AoException
canRead
in interface ODSFileOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic boolean canWrite() throws AoException
canWrite
in interface ODSFileOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic ODSWriteTransfer create() throws AoException
create
in interface ODSFileOperations
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_PROBLEMpublic boolean exists() throws AoException
exists
in interface ODSFileOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String getDate() throws AoException
getDate
in interface ODSFileOperations
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_LOCKEDpublic T_LONGLONG getSize() throws AoException
getSize
in interface ODSFileOperations
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_PROBLEMpublic void remove() throws AoException
remove
in interface ODSFileOperations
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_PROBLEMpublic ODSReadTransfer read() throws AoException
read
in interface ODSFileOperations
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_PROBLEMpublic void takeUnderControl(java.lang.String sourceUrl) throws AoException
takeUnderControl
in interface ODSFileOperations
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_PROBLEMpublic void removeFromControl(java.lang.String targetUrl) throws AoException
removeFromControl
in interface ODSFileOperations
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_PARAMETERprotected void finalize() throws java.lang.Throwable
finalize
in class InstanceElement
java.lang.Throwable
public void closeWriteTransfer(long size)
size
- the new size of the filepublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result)
_create_request
in interface org.omg.CORBA.Object
_create_request
in class InstanceElement
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result, org.omg.CORBA.ExceptionList exclist, org.omg.CORBA.ContextList ctxlist)
_create_request
in interface org.omg.CORBA.Object
_create_request
in class InstanceElement
public org.omg.CORBA.Object _duplicate()
_duplicate
in interface org.omg.CORBA.Object
_duplicate
in class InstanceElement
public org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers
in interface org.omg.CORBA.Object
_get_domain_managers
in class InstanceElement
public org.omg.CORBA.Object _get_interface_def()
_get_interface_def
in interface org.omg.CORBA.Object
_get_interface_def
in class InstanceElement
public org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy
in interface org.omg.CORBA.Object
_get_policy
in class InstanceElement
public int _hash(int maximum)
_hash
in interface org.omg.CORBA.Object
_hash
in class InstanceElement
public boolean _is_a(java.lang.String repositoryIdentifier)
_is_a
in interface org.omg.CORBA.Object
_is_a
in class InstanceElement
public boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent
in interface org.omg.CORBA.Object
_is_equivalent
in class InstanceElement
public boolean _non_existent()
_non_existent
in interface org.omg.CORBA.Object
_non_existent
in class InstanceElement
public void _release()
_release
in interface org.omg.CORBA.Object
_release
in class InstanceElement
public org.omg.CORBA.Request _request(java.lang.String operation)
_request
in interface org.omg.CORBA.Object
_request
in class InstanceElement
public org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)
_set_policy_override
in interface org.omg.CORBA.Object
_set_policy_override
in class InstanceElement