com.splunk
Class ConfCollection
java.lang.Object
com.splunk.Resource
com.splunk.ResourceCollection<EntityCollection<Entity>>
com.splunk.ConfCollection
- All Implemented Interfaces:
- java.util.Map<java.lang.String,EntityCollection<Entity>>
public class ConfCollection
- extends ResourceCollection<EntityCollection<Entity>>
The ConfCollection
class represents a collection of configuration
files.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class com.splunk.ResourceCollection |
clear, containsKey, containsKey, containsValue, entrySet, equals, get, get, hashCode, isEmpty, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
create
public EntityCollection<Entity> create(java.lang.String name)
- Creates a new stanza in the current configuration file.
- Parameters:
name
- The name of the stanza to create.
- Returns:
- The name of the new stanza.
create
public EntityCollection<Entity> create(java.lang.String name,
java.util.Map args)
- Creates a new stanza in the current configuration file with attributes.
- Parameters:
name
- The name of the stanza to create.args
- Optional. A set of attributes as key-value pairs to put in
the new stanza.
- Returns:
- The name of the new stanza.