public interface CORBAFileServerIFOperations
Modifier and Type | Method and Description |
---|---|
void |
delete(AoSession aoSess,
java.lang.String name)
Delete the data associated with the given name.
|
void |
deleteForInstance(AoSession aoSess,
java.lang.String url,
T_LONGLONG aid,
T_LONGLONG iid)
Delete the data associated with the given name.
|
void |
getBySocket(AoSession aoSess,
java.lang.String name,
java.lang.String host,
int aPort)
Get the data using a socket.
|
java.lang.String |
getContext(AoSession aoSess,
java.lang.String key)
Get a context variable.
|
void |
getForInstanceBySocket(AoSession aoSess,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid,
java.lang.String host,
int aPort)
Get the data using a socket.
|
java.lang.String |
getHostname(AoSession aoSess)
Get the name of the host where the server is running
|
java.lang.String |
getInterfaceVersion()
Get the version of the CorbaFileServerIF.
|
long |
getSize(AoSession aoSess,
java.lang.String name)
Get size of the file associated with the given name.
|
long |
getSizeForInstance(AoSession aoSess,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Get size of the file associated with the given name.
|
long[] |
getSizes(AoSession aoSess,
java.lang.String[] names)
Returns an array of long values representing the length
of the files that were provided in the String array.
|
java.lang.String[] |
listContext(AoSession aoSess)
List all context keywords.
|
void |
move(AoSession aoSess,
java.lang.String url)
Move the data associated with the given name.
|
void |
moveForInstance(AoSession aoSess,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Move the data associated with the given name.
|
InputStreamIF |
read(AoSession aoSess,
java.lang.String name)
Read the data associated with the given name.
|
InputStreamIF |
readForInstance(AoSession aoSess,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Read the data associated with the given name.
|
void |
removeContext(AoSession aoSess,
java.lang.String key)
Remove a context variable.
|
java.lang.String |
save(AoSession aoSess,
java.lang.String name,
java.lang.String subDir,
InputStreamIF stream)
Save the data associated with the given intput stream.
|
java.lang.String |
saveBySocket(AoSession aoSess,
java.lang.String name,
java.lang.String subDir,
java.lang.String host,
int aPort)
Save the data using a socket.
|
java.lang.String |
saveForInstance(AoSession aoSess,
java.lang.String name,
java.lang.String subDir,
T_LONGLONG aid,
T_LONGLONG iid,
InputStreamIF stream)
Save the data associated with the given intput stream.
|
java.lang.String |
saveForInstanceBySocket(AoSession aoSess,
java.lang.String name,
java.lang.String subDir,
T_LONGLONG aid,
T_LONGLONG iid,
java.lang.String host,
int aPort)
Save the data using a socket.
|
java.lang.String |
saveForInstanceName(AoSession aoSess,
java.lang.String name,
java.lang.String subDir,
java.lang.String aeName,
java.lang.String ieName,
InputStreamIF stream)
Save the data associated with the given intput stream.
|
java.lang.String |
saveForInstanceNameBySocket(AoSession aoSess,
java.lang.String name,
java.lang.String subDir,
java.lang.String aeName,
java.lang.String ieName,
java.lang.String host,
int aPort)
Save the data using a socket.
|
void |
setContext(AoSession aoSess,
java.lang.String key,
java.lang.String value)
Set a context variable.
|
void |
terminate(AoSession aoSess,
java.lang.String name,
java.lang.String parameter)
This method can be called by the client when the server should be start a termination process.
|
void |
terminateForInstance(AoSession aoSess,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid,
java.lang.String parameter)
This method can be called by the client when the server should be start a termination process.
|
java.lang.String save(AoSession aoSess, java.lang.String name, java.lang.String subDir, InputStreamIF stream) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.subDir
- an alternative sub directory, that can be specified,
if the filename should not used to determine the destination folder.stream
- the input stream, ready to read by the server.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String saveForInstance(AoSession aoSess, java.lang.String name, java.lang.String subDir, T_LONGLONG aid, T_LONGLONG iid, InputStreamIF stream) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.subDir
- an alternative sub directory, that can be specified,
if the filename should not used to determine the destination folder.aid
- the application element id.iid
- the instance element id.stream
- the input stream, ready to read by the server.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String saveForInstanceName(AoSession aoSess, java.lang.String name, java.lang.String subDir, java.lang.String aeName, java.lang.String ieName, InputStreamIF stream) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.subDir
- an alternative sub directory, that can be specified,
if the filename should not used to determine the destination folder.aeName
- the application element name.ieName
- the instance element name.stream
- the input stream, ready to read by the server.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid delete(AoSession aoSess, java.lang.String name) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid move(AoSession aoSess, java.lang.String url) throws CORBAFileServerException
aoSess
- the ASAM ODS session.urlo
- the url of the file.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid deleteForInstance(AoSession aoSess, java.lang.String url, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
aoSess
- the ASAM ODS session.url
- the url of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid moveForInstance(AoSession aoSess, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid getBySocket(AoSession aoSess, java.lang.String name, java.lang.String host, int aPort) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.host
- the hostname for the socket connection.port
- the port for the socket connection.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid getForInstanceBySocket(AoSession aoSess, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid, java.lang.String host, int aPort) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the url specification of the file.aid
- the application element id.iid
- the instance element id.host
- the hostname for the socket connection.port
- the port for the socket connection.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String saveBySocket(AoSession aoSess, java.lang.String name, java.lang.String subDir, java.lang.String host, int aPort) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.subDir
- an alternative sub directory, that can be specified,
if the filename should not used to determine the destination folder.host
- the hostname for the socket connection.port
- the port for the socket connection.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String saveForInstanceBySocket(AoSession aoSess, java.lang.String name, java.lang.String subDir, T_LONGLONG aid, T_LONGLONG iid, java.lang.String host, int aPort) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.subDir
- an alternative sub directory, that can be specified,
if the filename should not used to determine the destination folder.aid
- the application element id.iid
- the instance element id.host
- the hostname for the socket connection.port
- the port for the socket connection.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String saveForInstanceNameBySocket(AoSession aoSess, java.lang.String name, java.lang.String subDir, java.lang.String aeName, java.lang.String ieName, java.lang.String host, int aPort) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.subDir
- an alternative sub directory, that can be specified,
if the filename should not used to determine the destination folder.aeName
- the application element name.ieName
- the instance element name.host
- the hostname for the socket connection.port
- the port for the socket connection.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYInputStreamIF read(AoSession aoSess, java.lang.String name) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.stream
- the input stream, ready to read by the server.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYInputStreamIF readForInstance(AoSession aoSess, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYlong getSize(AoSession aoSess, java.lang.String name) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYlong getSizeForInstance(AoSession aoSess, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.aid
- the application element id.iid
- the instance element id.size
- the size of the input stream.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid terminate(AoSession aoSess, java.lang.String name, java.lang.String parameter) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.parameter
- the parameter string. The content depends on the
server side terminate implementation.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid terminateForInstance(AoSession aoSess, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid, java.lang.String parameter) throws CORBAFileServerException
aoSess
- the ASAM ODS session.name
- the name of the file.aid
- the application element id.iid
- the instance element id.parameter
- the parameter string. The content depends on the
server side terminate implementation.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String getHostname(AoSession aoSess) throws CORBAFileServerException
aoSess
- the ASAM ODS session.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String getContext(AoSession aoSess, java.lang.String key) throws CORBAFileServerException
aoSess
- the ASAM ODS session.key
- the keyword of the context value.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORY,
FILESERVER_NOT_FOUNDvoid setContext(AoSession aoSess, java.lang.String key, java.lang.String value) throws CORBAFileServerException
aoSess
- the ASAM ODS session.key
- the keyword of the context value.value
- the context value.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYvoid removeContext(AoSession aoSess, java.lang.String key) throws CORBAFileServerException
aoSess
- the ASAM ODS session.key
- the keyword of the context value.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String[] listContext(AoSession aoSess) throws CORBAFileServerException
aoSess
- the ASAM ODS session.CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYjava.lang.String getInterfaceVersion() throws CORBAFileServerException
CORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYlong[] getSizes(AoSession aoSess, java.lang.String[] names) throws CORBAFileServerException
aoSess
- the aoSession of the callernames
- the String array of filenames for
which to get the sizesCORBAFileServerException
- with the following possible error codes:
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORY