Record Class AppConfiguration
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.config.AppConfiguration
- Record Components:
httpPort- the network port on which the scheduler should listen for http requestsenableJavalinDevLogging- controls the level of http access logging from javalin endpointsmerlinGraphqlURI- endpoint of the merlin graphql service that should be used to fetch/store plan data
-
Constructor Summary
ConstructorsConstructorDescriptionAppConfiguration(int httpPort, boolean enableJavalinDevLogging, Store store, URI merlinGraphqlURI, String hasuraGraphQlAdminSecret) Creates an instance of aAppConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theenableJavalinDevLoggingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasuraGraphQlAdminSecretrecord component.inthttpPort()Returns the value of thehttpPortrecord component.Returns the value of themerlinGraphqlURIrecord component.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppConfiguration
public AppConfiguration(int httpPort, boolean enableJavalinDevLogging, Store store, URI merlinGraphqlURI, String hasuraGraphQlAdminSecret) Creates an instance of aAppConfigurationrecord class.- Parameters:
httpPort- the value for thehttpPortrecord componentenableJavalinDevLogging- the value for theenableJavalinDevLoggingrecord componentstore- the value for thestorerecord componentmerlinGraphqlURI- the value for themerlinGraphqlURIrecord componenthasuraGraphQlAdminSecret- the value for thehasuraGraphQlAdminSecretrecord component
-
-
Method Details
-
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 '=='. -
httpPort
public int httpPort()Returns the value of thehttpPortrecord component.- Returns:
- the value of the
httpPortrecord component
-
enableJavalinDevLogging
public boolean enableJavalinDevLogging()Returns the value of theenableJavalinDevLoggingrecord component.- Returns:
- the value of the
enableJavalinDevLoggingrecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
merlinGraphqlURI
Returns the value of themerlinGraphqlURIrecord component.- Returns:
- the value of the
merlinGraphqlURIrecord component
-
hasuraGraphQlAdminSecret
Returns the value of thehasuraGraphQlAdminSecretrecord component.- Returns:
- the value of the
hasuraGraphQlAdminSecretrecord component
-