|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource com.splunk.ResourceCollection<T> com.splunk.EntityCollection<Job> com.splunk.JobCollection
public class JobCollection
The 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.splunk.ResourceCollection |
---|
itemClass, items |
Fields inherited from class com.splunk.Resource |
---|
actions, path, refreshArgs, service, title |
Method Summary | |
---|---|
Job |
create(java.lang.String query)
Creates a search with a UTF8 pre-encoded search request. |
Job |
create(java.lang.String query,
JobArgs args)
Creates a search. |
Job |
create(java.lang.String query,
java.util.Map args)
Creates a search. |
protected java.lang.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. |
Methods inherited from class com.splunk.EntityCollection |
---|
remove, remove |
Methods inherited from class com.splunk.ResourceCollection |
---|
clear, containsKey, containsKey, containsValue, createItem, createItem, entrySet, equals, get, get, hashCode, isEmpty, itemPath, keySet, put, putAll, refresh, remove, size, validate, values, valueSize |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Job create(java.lang.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(java.lang.String query, java.util.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(java.lang.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 java.lang.String itemKey(AtomEntry entry)
itemKey
in class ResourceCollection<Job>
entry
- The AtomEntry
response.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |