Modifier and Type | Method and Description |
---|---|
protected String |
actionPath(String action)
Returns the action path.
|
void |
disable()
Disable distributed search on this Splunk instance.
|
void |
enable()
Enable distributed search on this Splunk instance.
|
String |
getBlacklistNames()
Returns a list of server names that are excluded from being peers.
|
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 |
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.
|
String |
getServers()
Returns a list of peer servers.
|
boolean |
getShareBundles()
Indicates whether this server uses bundle replication to share
search-time configuration with search peers.
|
int |
getStatusTimeout()
Returns the time-out period for gathering a search peer's basic information.
|
boolean |
isDistSearchEnabled()
Indicates whether distributed search is enabled.
|
void |
setBlacklistNames(String names)
Sets the blacklist server names that are excluded from being peers.
|
void |
setBlacklistURLs(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 |
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(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 |
setStatusTimeout(int seconds)
Sets the time-out period for connecting to a search peer for getting its
basic information.
|
clear, containsKey, containsValue, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
protected String actionPath(String action)
actionPath
in class Entity
action
- The requested action.public void disable()
public void enable()
public String getBlacklistNames()
null
if not available.public String getBlacklistUrls()
null
if not available.public int getConnectionTimeout()
public int getCheckTimedOutServersFrequency()
removeTimedOutServers
is false, this setting has no effect.public int getReceiveTimeout()
public boolean getRemovedTimedOutServers()
true
if timed-out servers are removed from the
distributed configuration, false
if not.public int getSendTimeout()
public 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 int getStatusTimeout()
ServiceInfo
public boolean isDistSearchEnabled()
true
if distributed search is enabled, false
if
disabled.public void setBlacklistNames(String names)
names
- A comma-separated list of server names.public void setBlacklistURLs(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: Using this method requires you to restart Splunk before this
setting takes effect. To avoid restarting Splunk, 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 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(String servers)
autoAddServers
mode
(discovered servers are automatically added).servers
- A comma-separated list of peer servers.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 for mounted_bundles and bundles_location in the
distsearch.conf file.shareBundles
- true
to share search-time configuration
with peers, false
if not.public void setStatusTimeout(int seconds)
seconds
- The connection time-out period, in seconds.ServiceInfo
Copyright © 2022 Splunk, Inc.. All rights reserved.