|
||||||||
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.DistributedConfiguration
public class DistributedConfiguration
The DistributedConfiguration
class represents a Splunk distributed
search configuration, providing access to Splunk's distributed search
options.
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 | |
---|---|
protected java.lang.String |
actionPath(java.lang.String action)
Returns the action path. |
boolean |
getAutoAddServers()
Indicates whether Splunk automatically adds all discovered servers. |
java.lang.String |
getBlacklistNames()
Returns a list of server names that are excluded from being peers. |
java.lang.String |
getBlacklistUrls()
Returns a list of server URLs that are excluded from being peers. |
int |
getCheckTimedOutServersFrequency()
Returns the frequency at which servers that have timed out are rechecked. |
int |
getConnectionTimeout()
Returns the time-out period for connecting to search peers. |
int |
getHeartbeatFrequency()
Returns the period between heartbeat checks on other servers' health. |
java.lang.String |
getHeartbeatMcastAddress()
Returns the multicast address where each Splunk server sends and listens for heartbeat messages. |
int |
getHeartbeatPort()
Returns the port where each Splunk server sends and listens for heartbeat messages. |
int |
getReceiveTimeout()
Returns the time-out period for trying to read and receive data from a search peer. |
boolean |
getRemovedTimedOutServers()
Indicates whether timed-out servers are removed from the distributed configuration. |
int |
getSendTimeout()
Returns the time-out period for trying to write or send data to a search peer. |
java.lang.String |
getServers()
Returns a list of peer servers. |
int |
getServerTimeout()
Deprecated. Use specific getConnectionTimeout ,
getReceiveTimeout , and getSendTimeout .
Returns the server time-out period. |
boolean |
getShareBundles()
Indicates whether this server uses bundle replication to share search-time configuration with search peers. |
boolean |
getSkipOurselves()
Indicates whether this server participates in a search or call. |
int |
getStatusTimeout()
Returns the time-out period for gathering a search peer's basic info (/services/server/info). |
int |
getTtl()
Returns the time-to-live (ttl) of heartbeat messages. |
boolean |
isDistSearchEnabled()
Indicates whether distributed search is enabled. |
void |
setAutoAddServers(boolean autoAdd)
Sets whether to automatically add discovered servers. |
void |
setBlacklistNames(java.lang.String names)
Sets the blacklist server names that are excluded from being peers. |
void |
setBlacklistURLs(java.lang.String names)
Sets the blacklist server names or URIs that are excluded from being peers. |
void |
setCheckTimedOutServersFrequency(int frequency)
Sets the server recheck frequency. |
void |
setConnectionTimeout(int seconds)
Sets the time-out period for establishing a search peer connection. |
void |
setDisabled(boolean disabled)
Sets whether the distributed configuration is enabled or disabled. |
void |
setHeartbeatFrequency(int seconds)
Sets the heartbeat frequency between peers. |
void |
setHeartbeatMcastAddr(java.lang.String mCastAddress)
Sets the heartbeat multicast address. |
void |
setHeartbeatPort(int port)
Sets the port where Splunk sends and listens for heartbeat messages. |
void |
setReceiveTimeout(int seconds)
Sets the time-out period for reading and receiving data from a search peer. |
void |
setRemoveTimedOutServers(boolean removeTimedOutServers)
Sets whether to remove a server connection that cannot be made within the time-out period specified by connectionTimeout ,
sendTimeout , or receiveTimeout . |
void |
setSendTimeout(int seconds)
Sets the time-out period for writing and sending data to a search peer. |
void |
setServers(java.lang.String servers)
Sets the initial peer server list. |
void |
setShareBundles(boolean shareBundles)
Sets whether this server uses bundle replication to share search-time configuration with search peers. |
void |
setSkipOurselves(boolean skipOurselves)
Sets whether this server skips participation as a server in any search or other call. |
void |
setStatusTimeout(int seconds)
Sets the time-out period for connecting to a search peer for getting its basic info (/services/server/info). |
void |
setTTL(int value)
Sets the time-to-live (ttl) of heartbeat messages. |
Methods inherited from class com.splunk.Entity |
---|
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 |
---|
protected java.lang.String actionPath(java.lang.String action)
actionPath
in class Entity
action
- The requested action.
public boolean getAutoAddServers()
true
if Splunk automatically adds servers, false
if not.public java.lang.String getBlacklistNames()
null
if not available.public java.lang.String getBlacklistUrls()
null
if not available.public int getConnectionTimeout()
public int getCheckTimedOutServersFrequency()
removeTimedOutServers
is false, this setting has no effect.
public int getHeartbeatFrequency()
public java.lang.String getHeartbeatMcastAddress()
null
if not available.public int getHeartbeatPort()
public int getReceiveTimeout()
public boolean getRemovedTimedOutServers()
true
if timed-out servers are removed from the
distributed configuration, false
if not.public int getServerTimeout()
getConnectionTimeout
,
getReceiveTimeout
, and getSendTimeout
.
Returns the server time-out period.
public int getSendTimeout()
public java.lang.String getServers()
null
if not
available.public boolean getShareBundles()
Note: If set to false
, the search head assumes that the
search peers can access the correct bundles using an NFS share.
true
if this server uses bundle replication,
false
if not.public boolean getSkipOurselves()
true
, this server is skipped and does not participate. This
setting is used for building a node that only merges the results from
other servers.
true
if the server does not participate as a server in
any search, false
if it does.public int getStatusTimeout()
public int getTtl()
public boolean isDistSearchEnabled()
true
if distributed search is enabled, false
if
disabled.public void setAutoAddServers(boolean autoAdd)
autoAdd
- true
to add servers automatically, false
if not.public void setBlacklistNames(java.lang.String names)
names
- A comma-separated list of server names.public void setBlacklistURLs(java.lang.String names)
names
- A comma-separated list of server names or URIs.public void setCheckTimedOutServersFrequency(int frequency)
Note: This attribute is only relevant when
removeTimedOutServers
is set to true
--otherwise, this
attribute is ignored.
frequency
- The server recheck frequency, in seconds. If set to 0, a
recheck does not occur.getRemovedTimedOutServers()
public void setConnectionTimeout(int seconds)
seconds
- The connection time-out period, in seconds.public void setDisabled(boolean disabled)
Note: You must restart Splunk for this setting to take effect.
However, to avoid restarting Splunk, you can use the
Entity.disable
and Entity.enable
methods instead, which
take effect immediately.
disabled
- true
to disabled to deployment client,
false
to enable.Entity.disable()
,
Entity.enable()
public void setHeartbeatFrequency(int seconds)
seconds
- The time for peer heartbeats, in seconds. If set to 0,
heartbeat messages are disabled.public void setHeartbeatMcastAddr(java.lang.String mCastAddress)
mCastAddress
- The multicast address for server auto discovery.public void setHeartbeatPort(int port)
port
- The heartbeat port.public void setReceiveTimeout(int seconds)
seconds
- The receive time-out period, in seconds.public void setRemoveTimedOutServers(boolean removeTimedOutServers)
connectionTimeout
,
sendTimeout
, or receiveTimeout
.
If false
, every call to that server attempts to connect, which
might result in a slow user interface.
removeTimedOutServers
- true
to remove timed-out server
connections, false
to attempt every call to the server.setConnectionTimeout(int)
,
setSendTimeout(int)
,
setReceiveTimeout(int)
public void setSendTimeout(int seconds)
seconds
- The send time-out period, in seconds.public void setServers(java.lang.String servers)
autoAddServers
mode
(discovered servers are automatically added).
servers
- A comma-separated list of peer servers.getAutoAddServers()
,
setAutoAddServers(boolean)
public void setShareBundles(boolean shareBundles)
false
, the search head assumes that the search peers
can access the correct bundles using an NFS share and have correctly
configured the options listed under "SEARCH HEAD BUNDLE MOUNTING
OPTIONS".
shareBundles
- true
to share search-time configuration
with peers, false
if not.public void setSkipOurselves(boolean skipOurselves)
skipOurselves
- true
to skip participation, false
to
participate as a server in searches and calls.public void setStatusTimeout(int seconds)
seconds
- The connection time-out period, in seconds.public void setTTL(int value)
Note: This feature only works when routers along the way are configured to pass UDP multicast packets.
value
- The time-to-live value of heartbeat messages.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |