Class RunnerCall<R>
java.lang.Object
com.suse.salt.netapi.calls.AbstractCall<R>
com.suse.salt.netapi.calls.RunnerCall<R>
- Type Parameters:
R- the return type of the called function
- All Implemented Interfaces:
Call<R>
Class representing a function call of a salt runner module.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallAsync(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.callSync(SaltClient client, AuthMethod auth) Calls a runner module function on the master and synchronously waits for the result.Return the call payload as a map of key/value pairs.Methods inherited from class AbstractCall
getFunction, getFunctionName, getModuleName, getReturnType
-
Field Details
-
kwargs
-
-
Constructor Details
-
RunnerCall
-
-
Method Details
-
getPayload
-
callAsync
Calls a runner module function on the master asynchronously and returns information about the scheduled job that can be used to query the result. Authentication is done with the token therefore you have to login prior to using this function.- Parameters:
client- SaltClient instanceauth- authentication credentials to use- Returns:
- information about the scheduled job
-
callSync
Calls a runner module function on the master and synchronously waits for the result. Authentication is done with the given credentials no session token is created.- Parameters:
client- SaltClient instanceauth- authentication credentials to use- Returns:
- the result of the called function
-