/** * Sets the blacklist server names or URIs that are excluded from being * peers. The format for a URI is "x.x.x.x:port". * * @param names A comma-separated list of server names or URIs. */ public void setBlacklistURLs(String names) { setCacheValue("blacklistURLs", names); }
/** * Sets the initial peer server list. You don't need to set servers here * if you are operating completely in {@code autoAddServers} mode * (discovered servers are automatically added). * * @param servers A comma-separated list of peer servers. */ public void setServers(String servers) { setCacheValue("servers", servers); }
/** * Sets the time-out period for establishing a search peer connection. * * @param seconds The connection time-out period, in seconds. */ public void setConnectionTimeout(int seconds) { setCacheValue("connectionTimeout", seconds); }
/** * Sets the time-out period for writing and sending data to a search peer. * * @param seconds The send time-out period, in seconds. */ public void setSendTimeout(int seconds) { setCacheValue("sendTimeout", seconds); }
/** * Sets the blacklist server names that are excluded from being peers. * * @param names A comma-separated list of server names. */ public void setBlacklistNames(String names) { setCacheValue("blacklistNames", names); }
/** * Sets the time-out period for reading and receiving data from a search * peer. * * @param seconds The receive time-out period, in seconds. */ public void setReceiveTimeout(int seconds) { setCacheValue("receiveTimeout", seconds); }
/** * Sets the time-out period for connecting to a search peer for getting its * basic information. * * @param seconds The connection time-out period, in seconds. * @see ServiceInfo */ public void setStatusTimeout(int seconds) { setCacheValue("statusTimeout", seconds); }
/** * Sets the server recheck frequency. * <p> * <b>Note:</b> This attribute is only relevant when * {@code removeTimedOutServers} is set to {@code true}--otherwise, this * attribute is ignored. * @see #getRemovedTimedOutServers * * @param frequency The server recheck frequency, in seconds. If set to 0, a * recheck does not occur. */ public void setCheckTimedOutServersFrequency(int frequency) { setCacheValue("checkTimedOutServersFrequency", frequency); }
/** * Sets whether to remove a server connection that cannot be made within the * time-out period specified by {@code connectionTimeout}, * {@code sendTimeout}, or {@code receiveTimeout}. * If {@code false}, every call to that server attempts to connect, which * might result in a slow user interface. * @see #setConnectionTimeout * @see #setSendTimeout * @see #setReceiveTimeout * * @param removeTimedOutServers {@code true} to remove timed-out server * connections, {@code false} to attempt every call to the server. */ public void setRemoveTimedOutServers(boolean removeTimedOutServers) { setCacheValue("removedTimedOutServers", removeTimedOutServers); }
/** * Sets whether this server uses bundle replication to share search-time * configuration with search peers. * * If set to {@code 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. * * @param shareBundles {@code true} to share search-time configuration * with peers, {@code false} if not. */ public void setShareBundles(boolean shareBundles) { setCacheValue("shareBundles", shareBundles); }
/** * Sets whether the distributed configuration is enabled or disabled. * <p> * <b>Note:</b> Using this method requires you to restart Splunk before this * setting takes effect. To avoid restarting Splunk, use the * {@code Entity.disable} and {@code Entity.enable} methods instead, which * take effect immediately. * @see Entity#disable * @see Entity#enable * * @param disabled {@code true} to disabled to deployment client, * {@code false} to enable. */ public void setDisabled(boolean disabled) { setCacheValue("disabled", disabled); }