public interface RequestListenerInterface
RequestListener
,
RequestHandlerInterface
,
RequestHandler
,
InfoKey
,
GetStatusRet
,
GetLanguagesRet
,
GetDetalsRet
,
ConnectRet
,
SendRequestRet
Modifier and Type | Method and Description |
---|---|
ConnectRet |
connect()
web method to connect on the server in order to compile, interpret or compile + execute
source code
|
InfoKey |
disconnect(java.lang.String sessionKey)
web method to disconnect from the server , all client specific data are removed after
|
GetDetailsRet |
getDetails(java.lang.String sessionKey,
int taskReference)
web method to retrieve details about a submitted task
|
GetLanguagesRet |
getLanguages()
web method to retrieve languages supported by the platform , does not require a
connection |
GetStatusRet |
getStatus(java.lang.String sessionKey,
int taskReference)
web method to retrieve status about a submitted task
|
InfoKey |
run(java.lang.String sessionKey,
int taskReference,
java.lang.String cmdArgs,
java.lang.String stdIn)
web method to run previously submitted task
|
SendRequestRet |
sendRequest(java.lang.String sessionKey,
int codeLang,
java.lang.String srcCode,
java.lang.String compilOpt,
java.lang.String cmdArgs,
java.lang.String stdIn,
boolean toRun)
web method to submit a compilation, interpretation or compilation + execution to the server
|
ConnectRet connect()
InfoKey disconnect(java.lang.String sessionKey)
sessionKey
- the session key as returned by precedent call to
connect
GetLanguagesRet getLanguages()
connection
SendRequestRet sendRequest(java.lang.String sessionKey, int codeLang, java.lang.String srcCode, java.lang.String compilOpt, java.lang.String cmdArgs, java.lang.String stdIn, boolean toRun)
sessionKey
- the key session for the client as returned by connect
codeLang
- the id of the language to use as returned by getLanguages
srcCode
- the source code to compile or interpret or compile and executecompilOpt
- compilation or interpretation optioncmdArgs
- command line arguments to feed the programstdIn
- standard input to give to the programtoRun
- indicate whether the program should be executed, meaningless for interpreted languagesInfoKey run(java.lang.String sessionKey, int taskReference, java.lang.String cmdArgs, java.lang.String stdIn)
sessionKey
- the key session for the client as returned by connect
taskReference
- the task id as returned by
sendRequest
cmdArgs
- command line argument to feed the programstdIn
- standard input to give to the programGetDetailsRet getDetails(java.lang.String sessionKey, int taskReference)
sessionKey
- the key session for the client as returned by connect
taskReference
- taskReference the task id as returned by
sendRequest
GetStatusRet getStatus(java.lang.String sessionKey, int taskReference)
sessionKey
- the key session for the client as returned by connect
taskReference
- taskReference taskReference the task id as returned by
sendRequest