|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.modularinput.Scheme
public class Scheme
The Scheme
class represents the metadata for a modular input kind.
A Scheme
specifies a title, description, several options of how Splunk should run modular inputs of this
kind, and a set of arguments which define a particular modular input's properties.
The primary use of Scheme
is to abstract away the construction of XML to feed to Splunk.
Nested Class Summary | |
---|---|
static class |
Scheme.StreamingMode
|
Constructor Summary | |
---|---|
Scheme(java.lang.String title)
|
Method Summary | |
---|---|
void |
addArgument(Argument argument)
Appends an argument to the arguments that this modular input kind takes. |
java.util.List<Argument> |
getArguments()
Returns all the arguments to this modular input kind. |
java.lang.String |
getDescription()
Gets the human readable description of this modular input kind. |
Scheme.StreamingMode |
getStreamingMode()
Returns whether this modular input kind will send events to Splunk as XML (the default and preferred value) or plain text. |
java.lang.String |
getTitle()
Gets the title of this modular input kind. |
boolean |
isUseExternalValidation()
Returns whether Splunk should use the modular input kind script to validate the arguments of a particular modular input or use the validation predicates specified by the arguments. |
boolean |
isUseSingleInstance()
Returns whether Splunk should run all modular inputs of this kind via one instance of the script or start an instance for each modular input. |
void |
setArguments(java.util.List<Argument> arguments)
Replaces the current list of arguments with the specified one. |
void |
setDescription(java.lang.String description)
Sets the human readable description of this modular input kind. |
void |
setStreamingMode(Scheme.StreamingMode streamingMode)
Specifies whether this modular input kind will send events to Splunk as XML (the default and preferred value) or plain text. |
void |
setTitle(java.lang.String title)
Sets the title of this modular input kind. |
void |
setUseExternalValidation(boolean useExternalValidation)
Specifies whether Splunk should use the modular input kind script to validate the arguments of a particular modular input (true) or use the validation predicates specified by the arguments (false). |
void |
setUseSingleInstance(boolean useSingleInstance)
Specifies whether Splunk should run all modular inputs of this kind via one instance of the script or start an instance for each modular input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scheme(java.lang.String title)
Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The title of this modular input kind.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
The
- human readable description of this modular input kind.public boolean isUseExternalValidation()
true
if Splunk should use the modular input kind script to validate the arguments
of a particular modular input, false
if it should use the validation predicates specified by the arguments.public void setUseExternalValidation(boolean useExternalValidation)
useExternalValidation
- true
if Splunk should use the modular input kind script to validate the arguments
of a particular modular input, false
if it should use the validation predicates specified by the arguments.public boolean isUseSingleInstance()
true
if Splunk should run all modular inputs of this kind via one instance of the script,
false
if it should start an instance for each modular input.public void setUseSingleInstance(boolean useSingleInstance)
useSingleInstance
- true
if Splunk should run all modular inputs of this kind via one instance of the script,
false
if it should start an instance for each modular input.public Scheme.StreamingMode getStreamingMode()
public void setStreamingMode(Scheme.StreamingMode streamingMode)
streamingMode
- The streaming mode.public java.util.List<Argument> getArguments()
public void setArguments(java.util.List<Argument> arguments)
arguments
- The list of arguments with which to replace the current
list of arguments.public void addArgument(Argument argument)
argument
- The argument to append to the arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |