java.lang.Object
java.lang.Record
org.elasticsearch.bootstrap.ServerArgs
- Record Components:
daemonize-trueif Elasticsearch should run as a daemon process, orfalseotherwisequiet-falseif Elasticsearch should print log output to the console,trueotherwisepidFile- absolute path to a file Elasticsearch should write its process id to, ornullif no pid file should be writtensecrets- the provided secure settings implementationnodeSettings- the node settings read fromelasticsearch.yml, the cli and the process environmentconfigDir- the directory whereelasticsearch.ymland other config existslogsDir- the directory where log files should be written
- All Implemented Interfaces:
Writeable
public record ServerArgs(boolean daemonize, boolean quiet, Path pidFile, SecureSettings secrets, Settings nodeSettings, Path configDir, Path logsDir)
extends Record
implements Writeable
Arguments for running Elasticsearch.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionServerArgs(boolean daemonize, boolean quiet, Path pidFile, SecureSettings secrets, Settings nodeSettings, Path configDir, Path logsDir) Arguments for running Elasticsearch.Alternate constructor to read the args from a binary stream. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigDirrecord component.booleanReturns the value of thedaemonizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logsDir()Returns the value of thelogsDirrecord component.Returns the value of thenodeSettingsrecord component.pidFile()Returns the value of thepidFilerecord component.booleanquiet()Returns the value of thequietrecord component.secrets()Returns the value of thesecretsrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
ServerArgs
public ServerArgs(boolean daemonize, boolean quiet, Path pidFile, SecureSettings secrets, Settings nodeSettings, Path configDir, Path logsDir) Arguments for running Elasticsearch.- Parameters:
daemonize-trueif Elasticsearch should run as a daemon process, orfalseotherwisequiet-falseif Elasticsearch should print log output to the console,trueotherwisepidFile- absolute path to a file Elasticsearch should write its process id to, ornullif no pid file should be writtensecrets- the provided secure settings implementationnodeSettings- the node settings read fromelasticsearch.yml, the cli and the process environmentconfigDir- the directory whereelasticsearch.ymland other config exists
-
ServerArgs
Alternate constructor to read the args from a binary stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
daemonize
public boolean daemonize()Returns the value of thedaemonizerecord component.- Returns:
- the value of the
daemonizerecord component
-
quiet
public boolean quiet()Returns the value of thequietrecord component.- Returns:
- the value of the
quietrecord component
-
pidFile
Returns the value of thepidFilerecord component.- Returns:
- the value of the
pidFilerecord component
-
secrets
Returns the value of thesecretsrecord component.- Returns:
- the value of the
secretsrecord component
-
nodeSettings
Returns the value of thenodeSettingsrecord component.- Returns:
- the value of the
nodeSettingsrecord component
-
configDir
Returns the value of theconfigDirrecord component.- Returns:
- the value of the
configDirrecord component
-
logsDir
Returns the value of thelogsDirrecord component.- Returns:
- the value of the
logsDirrecord component
-