|
||||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | ||
---|---|---|
boolean |
containsKey(java.lang.Object key)
|
|
Input |
create(java.lang.String name)
Creates a stub for a new data input. |
|
|
create(java.lang.String name,
InputKind kind)
Creates a new data input based on the input kind. |
|
|
create(java.lang.String name,
InputKind kind,
java.util.Map<java.lang.String,java.lang.Object> args)
Creates a new data input based on the input kind and additional arguments. |
|
Input |
create(java.lang.String name,
java.util.Map args)
Creates a stub for a new data input based on additional arguments. |
|
Input |
get(java.lang.Object key)
Gets the value of a given 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. |
|
java.util.Set<InputKind> |
getInputKinds()
Return a set of all the input kinds recognized by the Splunk server. |
|
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, entrySet, equals, hashCode, isEmpty, keySet, list, put, putAll, remove, size, validate, values, valueSize |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
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
- Depending on the type of input, a string that contains:
java.lang.UnsupportedOperationException
public Input create(java.lang.String name, java.util.Map args)
create
in class EntityCollection<Input>
name
- Depending on the type of data input, a string that contains:
args
- Optional arguments to define the data input. For a list of
the available parameters, see
Input parameters on
dev.splunk.com.
java.lang.UnsupportedOperationException
public <T extends Input> T create(java.lang.String name, InputKind kind)
T
- The implicit type of the input.name
- Depending on the type of data input, a string that contains:
kind
- A member of InputKind
, indicating the type of input.
Input
that was created.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
- Depending on the type of data input, a string that contains:
kind
- A member of InputKind
, indicating the type of input.args
- Optional arguments to define the data input. For a list of
the available parameters, see
Input parameters on
dev.splunk.com.
Input
that was created.public Input get(java.lang.Object key)
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.public java.util.Set<InputKind> getInputKinds()
InputKind
s.public InputCollection refresh()
refresh
in class ResourceCollection<Input>
InputCollection
.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 |