public class ApacheFevalHandler extends Object implements MWFevalHandler
| Constructor and Description |
|---|
ApacheFevalHandler(ApacheHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts all the pending requests.
|
void |
close()
Shutdown the underlying Apache HTTP client and the thread pool used for
writing requests to the piped output stream
|
ApacheHttpClient |
getApacheHttpClient() |
boolean |
isClosed()
Returns true if the parent MWHttpClient has been closed else false
|
MATLABResult.MATLAB_Result |
processRequest(URL url,
MATLABParams.MATLAB_Params mlParams)
Sends a MATLAB request and returns the MATALB result.
|
<T> MWRequest<T> |
processRequest(URL url,
MATLABParams.MATLAB_Params mlParams,
ResponseProducer<T> builder,
MWRequestListener<T> callback)
Sends a MATLAB request asynchronously and return an MWrequest object
representing the initiated request.
|
public ApacheFevalHandler(ApacheHttpClient httpClient)
public <T> MWRequest<T> processRequest(URL url, MATLABParams.MATLAB_Params mlParams, ResponseProducer<T> builder, MWRequestListener<T> callback)
processRequest in interface MWFevalHandlerpublic MATLABResult.MATLAB_Result processRequest(URL url, MATLABParams.MATLAB_Params mlParams) throws Throwable
processRequest in interface MWFevalHandlerurl - url to the CTF with the form: http://:/ mlParams - A MATLABParams protobuf message that can be sent to the serverThrowablepublic void close()
close in interface MWFevalHandlerpublic boolean isClosed()
MWFevalHandlerisClosed in interface MWFevalHandlerpublic ApacheHttpClient getApacheHttpClient()
public void abort()
MWFevalHandlerabort in interface MWFevalHandlerCopyright © 2015–2024. All rights reserved.