public class ValidationDefinition extends Object
ValidationDefinition
class represents the XML sent by Splunk for external validation of a new modular input.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getCheckpointDir()
Gets the path to write checkpoint files for restarting inputs in.
|
String |
getName()
Gets the name of the proposed modular input instance.
|
Map<String,Parameter> |
getParameters() |
String |
getServerHost()
Gets the name of the server on which this modular input is being run.
|
String |
getServerUri()
Gets the URI to the server on which this modular input is being run.
|
String |
getSessionKey()
Gets a session key providing access to splunkd's REST API on this host.
|
int |
hashCode() |
static ValidationDefinition |
parseDefinition(InputStream stream)
Create a ValidationDefinition from a provided stream containing XML.
|
void |
setParameters(Collection<Parameter> parameters)
Sets a list of
Parameter objects giving the proposed configuration. |
public String getServerHost()
public String getServerUri()
public String getCheckpointDir()
public String getSessionKey()
public String getName()
public void setParameters(Collection<Parameter> parameters)
Parameter
objects giving the proposed configuration.parameters
- A list of Parameter
objects giving the proposed configuration.public Map<String,Parameter> getParameters()
public static ValidationDefinition parseDefinition(InputStream stream) throws ParserConfigurationException, IOException, SAXException, MalformedDataException
<items>
<server_host>myHost</server_host>
<server_uri>https://127.0.0.1:8089</server_uri>
<session_key>123102983109283019283</session_key>
<checkpoint_dir>/opt/splunk/var/lib/splunk/modinputs</checkpoint_dir>
<item name="myScheme">
<param name="param1">value1</param>
<param_list name="param2">
<value>value2</value>
<value>value3</value>
<value>value4</value>
</param_list>
</item>
</items>
stream
- containing XML to parse.ParserConfigurationException
- if there are errors in setting up the parser (which indicates system
configuration issues).IOException
- if there is an error in reading from the stream.SAXException
- when the XML is invalid.MalformedDataException
- when the XML does not meet the required schema.Copyright © 2022 Splunk, Inc.. All rights reserved.