R - the return type of the called functionpublic class RunnerCall<R> extends AbstractCall<R>
| Constructor and Description |
|---|
RunnerCall(String functionName,
Optional<Map<String,?>> kwargs,
com.google.gson.reflect.TypeToken<R> returnType) |
RunnerCall(String moduleName,
String functionName,
Optional<Map<String,?>> kwargs,
com.google.gson.reflect.TypeToken<R> returnType) |
| Modifier and Type | Method and Description |
|---|---|
RunnerAsyncResult<R> |
callAsync(SaltClient client)
Calls a runner module function on the master asynchronously and
returns information about the scheduled job that can be used to query the result.
|
RunnerAsyncResult<R> |
callAsync(SaltClient client,
String username,
String password,
AuthModule authModule)
Calls a runner module function on the master asynchronously and
returns information about the scheduled job that can be used to query the result.
|
R |
callSync(SaltClient client)
Calls a runner module function on the master and synchronously
waits for the result.
|
R |
callSync(SaltClient client,
String username,
String password,
AuthModule authModule)
Calls a runner module function on the master and synchronously
waits for the result.
|
getModuleName, getPayload, getReturnTypepublic RunnerCall(String functionName, Optional<Map<String,?>> kwargs, com.google.gson.reflect.TypeToken<R> returnType)
public RunnerAsyncResult<R> callAsync(SaltClient client) throws SaltException
client - SaltClient instanceSaltException - if anything goes wrongpublic RunnerAsyncResult<R> callAsync(SaltClient client, String username, String password, AuthModule authModule) throws SaltException
client - SaltClient instanceusername - username for authenticationpassword - password for authenticationauthModule - authentication module to useSaltException - if anything goes wrongpublic R callSync(SaltClient client, String username, String password, AuthModule authModule) throws SaltException
client - SaltClient instanceusername - username for authenticationpassword - password for authenticationauthModule - authentication module to useSaltException - if anything goes wrongpublic R callSync(SaltClient client) throws SaltException
client - SaltClient instanceSaltException - if anything goes wrongCopyright © 2017. All rights reserved.