|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splunk.Resource
com.splunk.ResourceCollection<T>
com.splunk.EntityCollection<Input>
com.splunk.InputCollection
public class InputCollection
The InputCollection
class represents a collection of inputs. The
collection is heterogeneous and each member contains an InputKind
value that indicates the specific type of input (input kind).
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, partialPath, path, refreshArgs, service, title |
Method Summary | ||
---|---|---|
boolean |
containsKey(java.lang.Object key)
|
|
Input |
create(java.lang.String name)
Creates a stub. |
|
|
create(java.lang.String name,
InputKind kind)
Creates a specific kind of input. |
|
|
create(java.lang.String name,
InputKind kind,
java.util.Map<java.lang.String,java.lang.Object> args)
Creates a specific kind of input by providing arguments.For details, see the POST request arguments for the data/inputs/* endpoints in the Splunk REST API documentation. |
|
Input |
create(java.lang.String name,
java.util.Map args)
Creates a stub by providing additional arguments. |
|
protected Input |
createItem(AtomEntry entry)
Creates an Input resource item. |
|
Input |
get(java.lang.Object key)
Gets a the value of key if it exists within this collection. |
|
Input |
get(java.lang.Object key,
Args namespace)
Returns the value of a scoped, namespace-constrained key if it exists within this collection. |
|
protected InputKind |
itemKind(java.lang.String path)
Returns the path's InputKind value. |
|
InputCollection |
refresh()
Refreshes this input collection. |
|
Input |
remove(java.lang.String key)
Removes an entity from this collection. |
|
Input |
remove(java.lang.String key,
Args namespace)
Removes an entity from this collection, with a namespace restriction. |
Methods inherited from class com.splunk.ResourceCollection |
---|
clear, containsKey, containsValue, createItem, entrySet, equals, hashCode, isEmpty, itemKey, itemPath, keySet, list, put, putAll, remove, size, validate, values, valueSize |
Methods inherited from class com.splunk.Resource |
---|
getActions, getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,Input>
containsKey
in class ResourceCollection<Input>
public Input create(java.lang.String name)
create
in class EntityCollection<Input>
name
- The name of the input based on the type: the filename or
directory and path (monitor, oneshot), the script name (script), the port
number (TCP, UDP), the collection name (Windows perfmon, WMI), the stanza
(Windows Registry), or the name of the configuration (AD).
java.lang.UnsupportedOperationException
public Input create(java.lang.String name, java.util.Map args)
create
in class EntityCollection<Input>
name
- The name of the input based on the type: the filename or
directory and path (monitor, oneshot), the script name (script), the port
number (TCP, UDP), the collection name (Windows perfmon, WMI), the stanza
(Windows Registry), or the name of the configuration (AD).args
- Optional arguments.
java.lang.UnsupportedOperationException
public <T extends Input> T create(java.lang.String name, InputKind kind)
T
- The implicit type of the input.name
- The name of the input based on the type: the filename or
directory and path (monitor, oneshot), the script name (script), the port
number (TCP, UDP), the collection name (Windows perfmon, WMI), the stanza
(Windows Registry), or the name of the configuration (AD).kind
- The specific kind of input.
public <T extends Input> T create(java.lang.String name, InputKind kind, java.util.Map<java.lang.String,java.lang.Object> args)
T
- The implicit type of the input.name
- The name of the input based on the type: the filename or
directory and path (monitor, oneshot), the script name (script), the port
number (TCP, UDP), the collection name (Windows perfmon, WMI), the stanza
(Windows Registry), or the name of the configuration (AD).kind
- The specific kind of input.args
- Optional arguments.
protected Input createItem(AtomEntry entry)
Input
resource item.
createItem
in class ResourceCollection<Input>
entry
- The AtomEntry
object describing the entry.
public Input get(java.lang.Object key)
key
if it exists within this collection.
get
in interface java.util.Map<java.lang.String,Input>
get
in class ResourceCollection<Input>
key
- The key to look up.
null
if it doesn't
exist.public Input get(java.lang.Object key, Args namespace)
get
in class ResourceCollection<Input>
key
- The key to look up.namespace
- The namespace to constrain the search to.
null
if it doesn't
exist.protected InputKind itemKind(java.lang.String path)
InputKind
value.
path
- The input path.
public InputCollection refresh()
refresh
in class ResourceCollection<Input>
public Input remove(java.lang.String key)
remove
in class EntityCollection<Input>
key
- The name of the entity to remove.
public Input remove(java.lang.String key, Args namespace)
remove
in class EntityCollection<Input>
key
- The name of the entity to remove.namespace
- The namespace restriction within the collection.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |