| Constructor and Description | 
|---|
| LocalCall(String functionName,
         Optional<List<?>> arg,
         Optional<Map<String,?>> kwarg,
         com.google.gson.reflect.TypeToken<R> returnType) | 
| LocalCall(String functionName,
         Optional<List<?>> arg,
         Optional<Map<String,?>> kwarg,
         com.google.gson.reflect.TypeToken<R> returnType,
         Optional<?> metadata) | 
| 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,Result<R>> | callSync(SaltClient client,
        Target<?> target)Calls a execution module function on the given target and synchronously
 waits for the result. | 
| List<Map<String,Result<R>>> | callSync(SaltClient client,
        Target<?> target,
        Batch batch)Calls a execution module function on the given target with batching and
 synchronously waits for the result. | 
| Map<String,Result<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. | 
| List<Map<String,Result<R>>> | callSync(SaltClient client,
        Target<?> target,
        String username,
        String password,
        AuthModule authModule,
        Batch batch)Calls a execution module function on the given target with batching and
 synchronously waits for the result. | 
| Map<String,Result<SSHResult<R>>> | callSyncSSH(SaltClient client,
           Target<?> target,
           SaltSSHConfig cfg)Call an execution module function on the given target via salt-ssh and synchronously
 wait 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() | 
| LocalCall<R> | withMetadata(Object metadata) | 
| LocalCall<R> | withoutMetadata() | 
public LocalCall(String functionName, Optional<List<?>> arg, Optional<Map<String,?>> kwarg, com.google.gson.reflect.TypeToken<R> returnType, Optional<?> metadata)
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,Result<R>> callSync(SaltClient client, Target<?> target) throws SaltException
client - SaltClient instancetarget - the target for the functionSaltException - if anything goes wrongpublic List<Map<String,Result<R>>> callSync(SaltClient client, Target<?> target, Batch batch) throws SaltException
client - SaltClient instancetarget - the target for the functionbatch - the batch specificationSaltException - if anything goes wrongpublic Map<String,Result<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 wrongpublic List<Map<String,Result<R>>> callSync(SaltClient client, Target<?> target, String username, String password, AuthModule authModule, Batch batch) throws SaltException
client - SaltClient instancetarget - the target for the functionusername - username for authenticationpassword - password for authenticationauthModule - authentication module to usebatch - the batch specificationSaltException - if anything goes wrongpublic Map<String,Result<SSHResult<R>>> callSyncSSH(SaltClient client, Target<?> target, SaltSSHConfig cfg) throws SaltException
client - SaltClient instancetarget - the target for the functioncfg - Salt SSH configuration objectSaltException - if anything goes wrongCopyright © 2016. All rights reserved.