public class JobCollection extends EntityCollection<Job>
JobCollection
class represents a collection of jobs. A job
is an individual instance of a running or completed search or report, along
with its related output.itemClass, items
Modifier and Type | Method and Description |
---|---|
Job |
create(String query)
Creates a search with a UTF8 pre-encoded search request.
|
Job |
create(String query,
JobArgs args)
Creates a search.
|
Job |
create(String query,
Map args)
Creates a search.
|
protected String |
itemKey(AtomEntry entry)
Returns the job's unique search identifier (SID), which is used as this
item's key.
|
ResponseMessage |
list()
Returns the job's response.
|
remove, remove
clear, containsKey, containsKey, containsValue, createItem, createItem, entrySet, equals, get, get, hashCode, isEmpty, itemPath, keySet, put, putAll, refresh, remove, size, validate, values, valueSize
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Job create(String query)
Note: You can't create a "oneshot" search using this method.
Instead, use the Service.oneshotSearch(java.lang.String)
method.
create
in class EntityCollection<Job>
query
- The search query.public Job create(String query, Map args)
Note: You can't create a "oneshot" search using this method.
Instead, use the Service.oneshotSearch(java.lang.String)
method.
create
in class EntityCollection<Job>
query
- The search query.args
- Additional arguments for this job (see JobArgs
).public Job create(String query, JobArgs args)
Note: You can't create a "oneshot" search using this method.
Instead, use the Service.oneshotSearch(java.lang.String)
method.
query
- The search query.args
- Additional arguments for this job (see JobArgs
).public ResponseMessage list()
list
in class ResourceCollection<Job>
protected String itemKey(AtomEntry entry)
itemKey
in class ResourceCollection<Job>
entry
- The AtomEntry
response.Copyright © 2022 Splunk, Inc.. All rights reserved.