|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EtiConnection
EtiConnection
.
Method Summary | |
---|---|
void |
endSession()
End session at jETI server and delete all stored files |
void |
exec(String tool,
Map<String,String> parameters)
Executes tool at the server with the given parameters. |
void |
exec(String tool,
String... parameters)
Executes tool at the server with the given parameter. |
void |
forward(List<String> filenames,
EtiConnection toServer)
Deprecated. use forward(Set, EtiConnection) instead. |
void |
forward(Set<String> filenames,
EtiConnection toServer)
Forwards a Set of virtual files from the server represented by this connection to the server represented by the toServer connection. |
URI |
getServerURI()
Retrieve the server's URI of this connection |
String |
getSession()
Retrieve the sessionId of this connection. |
void |
login(String username,
String password)
Log in to the jETI toolserver with given username and password. |
List<VirtualFile> |
retrieve(List<String> filenames)
Deprecated. use retrieve(Set) intead. |
Set<VirtualFile> |
retrieve(Set<String> filenames)
Retrieve the requested files from the server. |
VirtualFile |
retrieve(String filename)
Retrieve the requested file from the server. |
void |
setSession(String sessionId)
Sets the session ID of this connection. |
void |
store(List<VirtualFile> files)
Deprecated. use store(Set) instead |
void |
store(Set<VirtualFile> files)
Stores the given set of files to the server |
void |
store(VirtualFile file)
Stores a file to the server. |
Method Detail |
---|
URI getServerURI()
String getSession()
void setSession(String sessionId)
sessionId
- the session Id to set.void endSession() throws EtiLocalException, EtiRemoteException
EtiRemoteException
- if the Error was generated by the jETI Server
EtiLocalException
- if the error occured on client-side@Deprecated void store(List<VirtualFile> files) throws EtiLocalException, EtiRemoteException
store(Set)
instead
files
- the list of files to store
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.void store(Set<VirtualFile> files) throws EtiLocalException, EtiRemoteException
files
- the list of files to store
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.void store(VirtualFile file) throws EtiLocalException, EtiRemoteException
store(Set)
, if only one single file has to be sent to the server.
file
- the file to store
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.@Deprecated List<VirtualFile> retrieve(List<String> filenames) throws EtiLocalException, EtiRemoteException
retrieve(Set)
intead.
filenames
- List of virtual filenames to retrieve.
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.Set<VirtualFile> retrieve(Set<String> filenames) throws EtiLocalException, EtiRemoteException
filenames
- List of virtual filenames to retrieve.
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.VirtualFile retrieve(String filename) throws EtiLocalException, EtiRemoteException
retrieve(Set)
, if only one single file has to
be retrieved.
filename
- virtual filename to retrieve.
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.void exec(String tool, Map<String,String> parameters) throws EtiLocalException, EtiRemoteException
tool
- the name of the tool to executeparameters
- mapping from parameter name to value
EtiLocalException
- if something goes wrong on client side.
EtiRemoteException
- if something goes wrong on server side.void exec(String tool, String... parameters) throws EtiLocalException, EtiRemoteException
exec(String, Map)
(depending on implementation).
tool
- parameters
- alternating key,value,key,value,... sequence of parameters
EtiLocalException
- if size of parameters is not even
EtiRemoteException
@Deprecated void forward(List<String> filenames, EtiConnection toServer) throws EtiLocalException, EtiRemoteException
forward(Set, EtiConnection)
instead.
filenames
- list of virtual filenames that shall be forwarded.toServer
- An existing connection to the server where the files shall
be forwarded to.
EtiLocalException
EtiRemoteException
void forward(Set<String> filenames, EtiConnection toServer) throws EtiLocalException, EtiRemoteException
filenames
- set of virtual filenames that shall be forwarded.toServer
- An existing connection to the server where the files shall
be forwarded to.
EtiLocalException
EtiRemoteException
void login(String username, String password) throws EtiLocalException, EtiRemoteException
username
- password
-
EtiLocalException
EtiRemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |