public class ResultInfo extends Object
Constructor and Description |
---|
ResultInfo() |
Modifier and Type | Method and Description |
---|---|
List<Object> |
getArguments()
Returns a list of arguments supplied function.
|
String |
getFunction()
Returns function name.
|
Set<String> |
getMinions()
Returns set of minions this job was submitted to.
|
Set<String> |
getPendingMinions()
Returns a set of minions that have yet to return a result.
|
Optional<Object> |
getResult(String minion)
Returns job's return value that is associated with supplied minion
as an
Optional . |
Map<String,Object> |
getResults()
Returns result map of available
Object associated with each minion. |
Date |
getStartTime()
Returns start time assuming default
TimeZone is Salt master's timezone. |
Date |
getStartTime(TimeZone tz)
Returns start time of the job.
|
String |
getTarget()
Returns target of job submission.
|
String |
getUser()
Returns user associated with this job.
|
public List<Object> getArguments()
public String getFunction()
public Set<String> getMinions()
public Date getStartTime(TimeZone tz)
tz
- - TimeZone associated with the master of this job.public Date getStartTime()
TimeZone
is Salt master's timezone.public String getTarget()
public String getUser()
public Optional<Object> getResult(String minion)
Optional
. If a minion has not returned a response, an empty
value is returned.minion
- - name of a minionOptional
associated with the result from a given minion.public Map<String,Object> getResults()
Object
associated with each minion.
Minions that have yet to return a value are not included in this mapping.Copyright © 2016. All rights reserved.