Package | Description |
---|---|
com.suse.salt.netapi.calls | |
com.suse.salt.netapi.datatypes |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<java.util.Optional<LocalAsyncResult<R>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
Batch batch)
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.
|
java.util.concurrent.CompletionStage<java.util.Optional<java.util.Map<java.lang.String,java.util.concurrent.CompletionStage<Result<R>>>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
EventStream events,
java.util.concurrent.CompletionStage<GenericError> cancel,
Batch batch)
Calls this salt call via the async client and returns the results
as they come in via the event stream.
|
java.util.concurrent.CompletionStage<java.util.List<java.util.Map<java.lang.String,Result<R>>>> |
LocalCall.callSync(SaltClient client,
Target<?> target,
AuthMethod auth,
Batch batch)
Calls a execution module function on the given target with batching and
synchronously waits for the result.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<java.util.Optional<java.util.Map<java.lang.String,java.util.concurrent.CompletionStage<Result<R>>>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
EventStream events,
java.util.concurrent.CompletionStage<GenericError> cancel,
java.util.Optional<Batch> batch)
Calls this salt call via the async client and returns the results
as they come in via the event stream.
|
java.util.concurrent.CompletionStage<java.util.Optional<LocalAsyncResult<R>>> |
LocalCall.callAsync(SaltClient client,
Target<?> target,
AuthMethod auth,
java.util.Optional<Batch> batch)
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.
|
java.util.concurrent.CompletionStage<java.util.List<java.util.Map<java.lang.String,Result<R>>>> |
LocalCall.callSync(SaltClient client,
Target<?> target,
AuthMethod auth,
java.util.Optional<Batch> batch)
Calls a execution module function on the given target with batching and
synchronously waits for the result.
|
private java.util.concurrent.CompletionStage<java.util.List<java.util.Map<java.lang.String,Result<R>>>> |
LocalCall.callSyncHelperNonBlock(SaltClient client,
Target<?> target,
AuthMethod auth,
java.util.Optional<Batch> batch)
Helper to call an execution module function on the given target for batched or
unbatched while also providing an option to use the given credentials or to use a
prior created token.
|
Modifier and Type | Method and Description |
---|---|
static Batch |
Batch.asAmount(int value)
Construct a Batch from a value representing an exact amount of items
|
static Batch |
Batch.asPercent(int value)
Construct a Batch from a value representing a percent
|
Batch |
Batch.BatchBuilder.build()
Returns a Batch with the values of this BatchBuilder instance.
|