Constructor and Description |
---|
LocalCall(String functionName,
Optional<List<?>> arg,
Optional<Map<String,?>> kwarg,
com.google.gson.reflect.TypeToken<R> returnType) |
Modifier and Type | Method and Description |
---|---|
LocalAsyncResult<R> |
callAsync(SaltClient client,
Target<?> target)
Calls a execution module function on the given target asynchronously and
returns information about the scheduled job that can be used to query the result.
|
LocalAsyncResult<R> |
callAsync(SaltClient client,
Target<?> target,
String username,
String password,
AuthModule authModule)
Calls a execution module function on the given target asynchronously and
returns information about the scheduled job that can be used to query the result.
|
Map<String,R> |
callSync(SaltClient client,
Target<?> target)
Calls a execution module function on the given target and synchronously
waits for the result.
|
Map<String,R> |
callSync(SaltClient client,
Target<?> target,
String username,
String password,
AuthModule authModule)
Calls a execution module function on the given target and synchronously
waits for the result.
|
Map<String,Object> |
getPayload()
Return the call payload as a map of key/value pairs.
|
com.google.gson.reflect.TypeToken<R> |
getReturnType() |
public com.google.gson.reflect.TypeToken<R> getReturnType()
public Map<String,Object> getPayload()
getPayload
in interface Call<R>
public LocalAsyncResult<R> callAsync(SaltClient client, Target<?> target) throws SaltException
client
- SaltClient instancetarget
- the target for the functionSaltException
- if anything goes wrongpublic LocalAsyncResult<R> callAsync(SaltClient client, Target<?> target, String username, String password, AuthModule authModule) throws SaltException
client
- SaltClient instancetarget
- the target for the functionusername
- username for authenticationpassword
- password for authenticationauthModule
- authentication module to useSaltException
- if anything goes wrongpublic Map<String,R> callSync(SaltClient client, Target<?> target) throws SaltException
client
- SaltClient instancetarget
- the target for the functionSaltException
- if anything goes wrongpublic Map<String,R> callSync(SaltClient client, Target<?> target, String username, String password, AuthModule authModule) throws SaltException
client
- SaltClient instancetarget
- the target for the functionusername
- username for authenticationpassword
- password for authenticationauthModule
- authentication module to useSaltException
- if anything goes wrongCopyright © 2016. All rights reserved.