Interface IRequest
public interface IRequest
- Since:
- CS5
-
Method Summary
Modifier and TypeMethodDescriptioncall()client()Returns the client initiating the request.voidMarks the request as failed.params()Returns the request parameters.results()Returns the results map.voidsetProgress(String taskname, double progress) Update progress information for this request [0.0 ...booleanReturns true if the request was processed successfully.
-
Method Details
-
call
String call()- Returns:
- NativeService call name
-
params
NCMap params()Returns the request parameters.- Returns:
- the request parameters
-
results
NCMap results()Returns the results map.- Returns:
- the results map
-
client
IClient client()Returns the client initiating the request.- Returns:
- the client initiating the request
-
succeeded
boolean succeeded()Returns true if the request was processed successfully. A request is considered not successful if either the fail() method was called or themethod throws an exception.invalid reference
IHostDelegate#execute(IRequest)- Returns:
- true if the request was processed successfully
-
fail
Marks the request as failed. The reason code and error message are transmitted to ncomm client and will result in an ncomm exception on the client side.- Parameters:
reasonCode- - error codeerrMessage- - error message
-
setProgress
Update progress information for this request [0.0 ... 1.0]- Parameters:
taskname- the task currently being performedprogress- the new progress value [0.0 ... 1.0]- Throws:
ServiceAbortException- if the request was aborted
-