java.lang.Object
java.lang.Record
org.elasticsearch.bootstrap.ServerArgs
- Record Components:
daemonize
-true
if Elasticsearch should run as a daemon process, orfalse
otherwisequiet
-false
if Elasticsearch should print log output to the console,true
otherwisepidFile
- absolute path to a file Elasticsearch should write its process id to, ornull
if 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.yml
and other config exists
- All Implemented Interfaces:
Writeable
public record ServerArgs(boolean daemonize, boolean quiet, Path pidFile, SecureSettings secrets, Settings nodeSettings, Path configDir)
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) Arguments for running Elasticsearch.Alternate constructor to read the args from a binary stream. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigDir
record component.boolean
Returns the value of thedaemonize
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenodeSettings
record component.pidFile()
Returns the value of thepidFile
record component.boolean
quiet()
Returns the value of thequiet
record component.secrets()
Returns the value of thesecrets
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
ServerArgs
public ServerArgs(boolean daemonize, boolean quiet, Path pidFile, SecureSettings secrets, Settings nodeSettings, Path configDir) Arguments for running Elasticsearch.- Parameters:
daemonize
-true
if Elasticsearch should run as a daemon process, orfalse
otherwisequiet
-false
if Elasticsearch should print log output to the console,true
otherwisepidFile
- absolute path to a file Elasticsearch should write its process id to, ornull
if 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.yml
and other config exists
-
ServerArgs
Alternate constructor to read the args from a binary stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 thedaemonize
record component.- Returns:
- the value of the
daemonize
record component
-
quiet
public boolean quiet()Returns the value of thequiet
record component.- Returns:
- the value of the
quiet
record component
-
pidFile
Returns the value of thepidFile
record component.- Returns:
- the value of the
pidFile
record component
-
secrets
Returns the value of thesecrets
record component.- Returns:
- the value of the
secrets
record component
-
nodeSettings
Returns the value of thenodeSettings
record component.- Returns:
- the value of the
nodeSettings
record component
-
configDir
Returns the value of theconfigDir
record component.- Returns:
- the value of the
configDir
record component
-