com.splunk
Class TcpSplunkInput

java.lang.Object
  extended by com.splunk.Resource
      extended by com.splunk.Entity
          extended by com.splunk.Input
              extended by com.splunk.TcpSplunkInput
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>

public class TcpSplunkInput
extends Input

The TcpSplunkInput class represents a TCP Splunk-processed "cooked" input. This differs from a TCP raw input in that this TCP cooked data is processed by Splunk and is not in raw form.


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
 TcpConnections connections()
          Returns an object that contains the inbound cooked TCP connections.
 java.lang.String getConnectionHost()
          Returns the style of host connection.
 java.lang.String getGroup()
          Returns the group for this TCP cooked input.
 java.lang.String getHost()
          Returns the source host for this TCP cooked input where this indexer gets its data.
 java.lang.String getIndex()
          Returns the index name for this TCP cooked input.
 InputKind getKind()
          Returns the input kind for this TCP cooked input.
 java.lang.String getQueue()
          Returns the queue for this TCP cooked input.
 int getRcvBuf()
          Deprecated. Returns the value of the _rcvbuf attribute for this TCP cooked input.
 java.lang.String getRestrictToHost()
          Returns the incoming host restriction for this TCP cooked input.
 java.lang.String getSource()
          Returns the initial source key for this TCP cooked input.
 java.lang.String getSourceType()
          Returns the event source type for this TCP cooked input.
 boolean getSSL()
          Indicates whether this TCP cooked input is using secure socket layer (SSL).
 void setConnectionHost(java.lang.String connection_host)
          Sets the from-host for the remote server that is sending data.
 void setDisabled(boolean disabled)
          Sets whether this input is enabled or disabled.
 void setHost(java.lang.String host)
          Sets the host from which the indexer gets data.
 void setRestrictToHost(java.lang.String restrictToHost)
          Sets a restriction to accept inputs from the specified host only.
 void setSSL(boolean SSL)
          Sets whether to use secure socket layer (SSL).
 
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, update, update, 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

connections

public TcpConnections connections()
Returns an object that contains the inbound cooked TCP connections.

Returns:
The TCP connections object.

getConnectionHost

public java.lang.String getConnectionHost()
Returns the style of host connection. Valid values are: "ip", "dns", and "none".

Returns:
The style of host connection, or null if not specified.

getGroup

public java.lang.String getGroup()
Returns the group for this TCP cooked input.

Returns:
The group.

getHost

public java.lang.String getHost()
Returns the source host for this TCP cooked input where this indexer gets its data.

Returns:
The source host, or null if not specified.

getIndex

public java.lang.String getIndex()
Returns the index name for this TCP cooked input.

Returns:
The index name, or null if not specified.

getKind

public InputKind getKind()
Returns the input kind for this TCP cooked input.

Overrides:
getKind in class Input
Returns:
The input kind.
See Also:
InputKind

getQueue

public java.lang.String getQueue()
Returns the queue for this TCP cooked input. Valid values are: "parsingQueue" and "indexQueue".

Returns:
The queue, or null if not specified.

getRcvBuf

public int getRcvBuf()
Deprecated. Returns the value of the _rcvbuf attribute for this TCP cooked input.

Returns:
The _rcvbuf value.

getRestrictToHost

public java.lang.String getRestrictToHost()
Returns the incoming host restriction for this TCP cooked input.

Returns:
The incoming host restriction, or null if not specified.

getSource

public java.lang.String getSource()
Returns the initial source key for this TCP cooked input. Typically this value is the input file path.

Returns:
The source, or null if not specified.

getSourceType

public java.lang.String getSourceType()
Returns the event source type for this TCP cooked input.

Returns:
The event source type, or null if not specified.

getSSL

public boolean getSSL()
Indicates whether this TCP cooked input is using secure socket layer (SSL).

Returns:
true if this TCP cooked input is using SSL, false if not.

setSSL

public void setSSL(boolean SSL)
Sets whether to use secure socket layer (SSL).

Parameters:
SSL - true to use SSL, false if not.

setConnectionHost

public void setConnectionHost(java.lang.String connection_host)
Sets the from-host for the remote server that is sending data. Valid values are:

Parameters:
connection_host - The connection host information.

setDisabled

public void setDisabled(boolean disabled)
Sets whether this input is enabled or disabled. You can also do this using the Entity.disable and Entity.enable methods.

Parameters:
disabled - true to disabled to script input, false to enable.
See Also:
Entity.disable(), Entity.enable()

setHost

public void setHost(java.lang.String host)
Sets the host from which the indexer gets data.

Parameters:
host - The host.

setRestrictToHost

public void setRestrictToHost(java.lang.String restrictToHost)
Sets a restriction to accept inputs from the specified host only.

Parameters:
restrictToHost - The host.