Record Class LLServerConfiguration
java.lang.Object
java.lang.Record
com.io7m.looseleaf.server.api.LLServerConfiguration
- Record Components:
schema- The schema identifieraddresses- The server bind addressesdatabaseFile- The server's database filedatabaseKind- The server's database kind (such as "SQLITE")roles- The set of user rolesusers- The set of userstelemetry- The telemetry configurationfaultInjection- The fault injection configuration
public record LLServerConfiguration(String schema, List<LLServerAddress> addresses, Path databaseFile, Optional<String> databaseKind, List<LLServerRole> roles, List<LLServerUser> users, Optional<LLTelemetryConfiguration> telemetry, Optional<LLFaultInjection> faultInjection)
extends Record
A server configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionLLServerConfiguration(String schema, List<LLServerAddress> addresses, Path databaseFile, Optional<String> databaseKind, List<LLServerRole> roles, List<LLServerUser> users, Optional<LLTelemetryConfiguration> telemetry, Optional<LLFaultInjection> faultInjection) A server configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressesrecord component.Returns the value of thedatabaseFilerecord component.Returns the value of thedatabaseKindrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefaultInjectionrecord component.final inthashCode()Returns a hash code value for this object.roles()Returns the value of therolesrecord component.schema()Returns the value of theschemarecord component.Returns the value of thetelemetryrecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Constructor Details
-
LLServerConfiguration
public LLServerConfiguration(String schema, List<LLServerAddress> addresses, Path databaseFile, Optional<String> databaseKind, List<LLServerRole> roles, List<LLServerUser> users, Optional<LLTelemetryConfiguration> telemetry, Optional<LLFaultInjection> faultInjection) A server configuration.- Parameters:
schema- The schema identifieraddresses- The server bind addressesdatabaseFile- The server's database filedatabaseKind- The server's database kind (such as "SQLITE")roles- The set of user rolesusers- The set of userstelemetry- The telemetry configurationfaultInjection- The fault injection configuration
-
-
Method Details
-
toSecurityContext
- Returns:
- The configuration as a security context
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schema
-
addresses
-
databaseFile
Returns the value of thedatabaseFilerecord component.- Returns:
- the value of the
databaseFilerecord component
-
databaseKind
Returns the value of thedatabaseKindrecord component.- Returns:
- the value of the
databaseKindrecord component
-
roles
-
users
-
telemetry
-
faultInjection
Returns the value of thefaultInjectionrecord component.- Returns:
- the value of the
faultInjectionrecord component
-