com.splunk
Class OutputServer

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

public class OutputServer
extends Entity

The OutputServer class represents an output server, providing access to data-forwarding configurations.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 OutputServerAllConnections allConnections()
          Returns an object that contains all current connections to the output server.
 java.lang.String getDestHost()
          Returns the DNS name of the destination server for this connection.
 java.lang.String getDestIp()
          Returns the IP address of the destination server for this connection.
 int getDestPort()
          Return the port on which the destination server is listening.
 java.lang.String getMethod()
          Returns the data distribution method used when two or more servers exist in the same forwarder group.
 int getSourcePort()
          Returns the port on the destination server where data is forwarded.
 java.lang.String getStatus()
          Returns the server connection status (usually "connect_done", "connect_fail", or "connect_try").
 void setMethod(java.lang.String method)
          Sets the type of data distribution method when two or more servers exist in the same forwarder group.
 void setSslAltNameToCheck(java.lang.String sslAltNameToCheck)
          Sets the alternate name to match in the remote server's SSL certificate.
 void setSslCertPath(java.lang.String sslCertPath)
          Sets the path to the client certificate.
 void setSslCipher(java.lang.String sslCipher)
          Sets the SSL cipher in the form: ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
 void setSslCommonNameToCheck(java.lang.String sslCommonNameToCheck)
          Sets the name against which to check the common name of the server's certificate.
 void setSslPassword(java.lang.String sslPassword)
          Sets the password associated with the PEM file store.
 void setSslRootCAPath(java.lang.String sslRootCAPath)
          Sets the path to the root certificate authority file.
 void setSslVerifyServerCert(boolean sslVerifyServerCert)
          Sets whether the server being connected to is authenticated.
 
Methods inherited from class com.splunk.Entity
clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values
 
Methods inherited from class com.splunk.Resource
getName, getPath, getService, getTitle, invalidate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Method Detail

getDestHost

public java.lang.String getDestHost()
Returns the DNS name of the destination server for this connection.

Returns:
The destination host name.

getDestIp

public java.lang.String getDestIp()
Returns the IP address of the destination server for this connection.

Returns:
The IP address of the destination server.

getDestPort

public int getDestPort()
Return the port on which the destination server is listening.

Returns:
The destination port.

getMethod

public java.lang.String getMethod()
Returns the data distribution method used when two or more servers exist in the same forwarder group. Valid values are: "clone", "balance", and "autobalance".

Returns:
The data distribution method.

getSourcePort

public int getSourcePort()
Returns the port on the destination server where data is forwarded.

Returns:
The source port.

getStatus

public java.lang.String getStatus()
Returns the server connection status (usually "connect_done", "connect_fail", or "connect_try").

Returns:
The connection status.

setMethod

public void setMethod(java.lang.String method)
Sets the type of data distribution method when two or more servers exist in the same forwarder group. Valid values are: "clone", "balance", and "autobalance".

Parameters:
method - The data distribution method.

setSslAltNameToCheck

public void setSslAltNameToCheck(java.lang.String sslAltNameToCheck)
Sets the alternate name to match in the remote server's SSL certificate.

Parameters:
sslAltNameToCheck - The alternate name.

setSslCertPath

public void setSslCertPath(java.lang.String sslCertPath)
Sets the path to the client certificate. If a path is specified, the connection uses SSL.

Parameters:
sslCertPath - The path to the client certificate.

setSslCipher

public void setSslCipher(java.lang.String sslCipher)
Sets the SSL cipher in the form: ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM

Parameters:
sslCipher - The SSL cipher.

setSslCommonNameToCheck

public void setSslCommonNameToCheck(java.lang.String sslCommonNameToCheck)
Sets the name against which to check the common name of the server's certificate. If there is no match, you can assume that Splunk is not authenticated against this server. You must set a value for this parameter if SslVerifyServerCert is true.

Parameters:
sslCommonNameToCheck - The SSL common name.
See Also:
setSslVerifyServerCert(boolean)

setSslPassword

public void setSslPassword(java.lang.String sslPassword)
Sets the password associated with the PEM file store.

Parameters:
sslPassword - The password.

setSslRootCAPath

public void setSslRootCAPath(java.lang.String sslRootCAPath)
Sets the path to the root certificate authority file.

Parameters:
sslRootCAPath - The path to the root certificate authority file.

setSslVerifyServerCert

public void setSslVerifyServerCert(boolean sslVerifyServerCert)
Sets whether the server being connected to is authenticated. Both the common name and the alternate name of the server are checked for a match.

Parameters:
sslVerifyServerCert - true to determine whether the server is authenticated, false if not.

allConnections

public OutputServerAllConnections allConnections()
Returns an object that contains all current connections to the output server.

Returns:
The OutputServerAllConnections object.