|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splunk.Resource
com.splunk.Entity
com.splunk.Input
com.splunk.WindowsWmiInput
public class WindowsWmiInput
The WindowsWmiInput
class represents a Windows Management
Instrumentation (WMI) input.
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.Entity |
---|
toUpdate |
Fields inherited from class com.splunk.Resource |
---|
actions, partialPath, path, refreshArgs, service, title |
Method Summary | |
---|---|
java.lang.String |
getClasses()
Returns the WMI class name of this WMI input. |
java.lang.String[] |
getFields()
Returns the properties (fields) collected for this class for this WMI input. |
java.lang.String |
getIndex()
Returns the index name of this WMI input. |
java.lang.String[] |
getInstances()
Returns a list of the WMI class instances for this WMI input. |
int |
getInterval()
Returns the interval at which WMI input providers are queried for this WMI input. |
InputKind |
getKind()
Returns the input kind of this WMI input. |
java.lang.String |
getLocalName()
Returns the collection name for this WMI input. |
java.lang.String |
getLookupHost()
Returns the main host for this WMI input. |
java.lang.String |
getServers()
Returns a list of additional servers used in monitoring. |
java.lang.String |
getWql()
Returns the query string for this WMI input. |
void |
setClasses(java.lang.String classes)
Sets the WMI class name. |
void |
setDisabled(boolean disabled)
Sets whether this input is enabled or disabled. |
void |
setFields(java.lang.String field)
Sets a property (field) that you want to gather from the given class. |
void |
setFields(java.lang.String[] fields)
Sets the properties (fields) that you want to gather from the given class. |
void |
setIndex(java.lang.String index)
Sets the index in which to store all generated events. |
void |
setInstances(java.lang.String instance)
Sets a counter instance to monitor. |
void |
setInstances(java.lang.String[] instances)
Sets the counter instances to monitor. |
void |
setInterval(int interval)
Sets the frequency at which the WMI providers are queried. |
void |
setLookupHost(java.lang.String lookup_host)
Sets the host from which to monitor log events. |
void |
setServers(java.lang.String servers)
Sets the additional servers that you want to gather data from. |
void |
update()
Updates the entity with the accumulated arguments, established by the individual setter methods for each specific entity class. |
void |
update(java.util.Map<java.lang.String,java.lang.Object> args)
Updates the entity with the values you previously set using the setter methods, and any additional specified arguments. |
Methods inherited from class com.splunk.Entity |
---|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, reload, remove, remove, size, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getActions, getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.lang.String getClasses()
public java.lang.String[] getFields()
null
if not specified.public java.lang.String getIndex()
null
if not specified.public java.lang.String[] getInstances()
null
if not
specified.public int getInterval()
public InputKind getKind()
getKind
in class Input
InputKind
public java.lang.String getLookupHost()
server
attribute.
public java.lang.String getLocalName()
public java.lang.String getServers()
null
if not specified.getLookupHost()
public java.lang.String getWql()
public void setClasses(java.lang.String classes)
classes
- A valid WMI class name.public void setDisabled(boolean disabled)
Entity.disable
and
Entity.enable
methods.
disabled
- true
to disabled to script input,
false
to enable.Entity.disable()
,
Entity.enable()
public void setFields(java.lang.String[] fields)
fields
- An array of properties (fields) to gather.public void setFields(java.lang.String field)
field
- A property (field) to gather.public void setIndex(java.lang.String index)
index
- The index name.public void setInstances(java.lang.String[] instances)
instances
- The counter instances to monitor.public void setInstances(java.lang.String instance)
instance
- A counter instance to monitor.public void setInterval(int interval)
interval
- The polling frequency, in seconds.public void setLookupHost(java.lang.String lookup_host)
setServers
method.
lookup_host
- The host.public void setServers(java.lang.String servers)
servers
- A comma-separated list of hosts.public void update(java.util.Map<java.lang.String,java.lang.Object> args)
update
in class Entity
args
- The arguments to update.public void update()
update
in class Entity
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |