R
- the return type of the called functionpublic class RunnerCall<R> extends AbstractCall<R>
Modifier and Type | Field and Description |
---|---|
private java.util.Optional<java.util.Map<java.lang.String,?>> |
kwargs |
Constructor and Description |
---|
RunnerCall(java.lang.String functionName,
java.util.Optional<java.util.Map<java.lang.String,?>> kwargs,
com.google.gson.reflect.TypeToken<R> returnType) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<RunnerAsyncResult<R>> |
callAsync(SaltClient client,
AuthMethod auth)
Calls a runner module function on the master asynchronously and
returns information about the scheduled job that can be used to query the result.
|
java.util.concurrent.CompletionStage<Result<R>> |
callSync(SaltClient client,
AuthMethod auth)
Calls a runner module function on the master and synchronously
waits for the result.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPayload()
Return the call payload as a map of key/value pairs.
|
getFunction, getFunctionName, getModuleName, getReturnType
public RunnerCall(java.lang.String functionName, java.util.Optional<java.util.Map<java.lang.String,?>> kwargs, com.google.gson.reflect.TypeToken<R> returnType)
public java.util.Map<java.lang.String,java.lang.Object> getPayload()
public java.util.concurrent.CompletionStage<RunnerAsyncResult<R>> callAsync(SaltClient client, AuthMethod auth)
client
- SaltClient instanceauth
- authentication credentials to usepublic java.util.concurrent.CompletionStage<Result<R>> callSync(SaltClient client, AuthMethod auth)
client
- SaltClient instanceauth
- authentication credentials to use