@Test void maxRemovedRepositoryAgeMillis() throws Exception { final CentralDogmaConfig cfg = Jackson.readValue("{\n" + " \"dataDir\": \"./data\",\n" + " \"ports\": [\n" + " {\n" + " \"localAddress\": {\n" + " \"host\": \"*\",\n" + " \"port\": 36462\n" + " },\n" + " \"protocols\": [\n" + " \"https\",\n" + " \"http\",\n" + " \"proxy\"\n" + " ]\n" + " }\n" + " ],\n" + " \"maxRemovedRepositoryAgeMillis\": 50000 \n" + '}', CentralDogmaConfig.class); assertThat(cfg.maxRemovedRepositoryAgeMillis()).isEqualTo(50000); }
@JsonProperty public long maxRemovedRepositoryAgeMillis() { return maxRemovedRepositoryAgeMillis; }
CentralDogmaConfig { @JsonProperty public long maxRemovedRepositoryAgeMillis() { return maxRemovedRepositoryAgeMillis; } }
CentralDogmaConfig { @JsonProperty public long maxRemovedRepositoryAgeMillis() { return maxRemovedRepositoryAgeMillis; } CentralDogmaConfig(
            @JsonProperty(value = "dataDir", required = true) File dataDir,
            @JsonProperty(value = "ports", required = true)
            @JsonDeserialize(contentUsing = ServerPortDeserializer.class)
                    List<ServerPort> ports,
            @JsonProperty("tls") @Nullable TlsConfig tls,
            @JsonProperty("trustedProxyAddresses") @Nullable List<String> trustedProxyAddresses,
            @JsonProperty("clientAddressSources") @Nullable List<String> clientAddressSources,
            @JsonProperty("numWorkers") @Nullable Integer numWorkers,
            @JsonProperty("maxNumConnections") @Nullable Integer maxNumConnections,
            @JsonProperty("requestTimeoutMillis") @Nullable Long requestTimeoutMillis,
            @JsonProperty("idleTimeoutMillis") @Nullable Long idleTimeoutMillis,
            @JsonProperty("maxFrameLength") @Nullable Integer maxFrameLength,
            @JsonProperty("numRepositoryWorkers") @Nullable Integer numRepositoryWorkers,
            @JsonProperty("repositoryCacheSpec") @Nullable String repositoryCacheSpec,
            @JsonProperty("maxRemovedRepositoryAgeMillis") @Nullable Long maxRemovedRepositoryAgeMillis,
            @JsonProperty("gracefulShutdownTimeout") @Nullable GracefulShutdownTimeout gracefulShutdownTimeout,
            @JsonProperty("webAppEnabled") @Nullable Boolean webAppEnabled,
            @JsonProperty("webAppTitle") @Nullable String webAppTitle,
            @JsonProperty("mirroringEnabled") @Nullable Boolean mirroringEnabled,
            @JsonProperty("numMirroringThreads") @Nullable Integer numMirroringThreads,
            @JsonProperty("maxNumFilesPerMirror") @Nullable Integer maxNumFilesPerMirror,
            @JsonProperty("maxNumBytesPerMirror") @Nullable Long maxNumBytesPerMirror,
            @JsonProperty("replication") @Nullable ReplicationConfig replicationConfig,
            @JsonProperty("csrfTokenRequiredForThrift") @Nullable Boolean csrfTokenRequiredForThrift,
            @JsonProperty("accessLogFormat") @Nullable String accessLogFormat,
            @JsonProperty("authentication") @Nullable AuthConfig authConfig); }
CentralDogmaConfig { @JsonProperty public long maxRemovedRepositoryAgeMillis() { return maxRemovedRepositoryAgeMillis; } CentralDogmaConfig(
            @JsonProperty(value = "dataDir", required = true) File dataDir,
            @JsonProperty(value = "ports", required = true)
            @JsonDeserialize(contentUsing = ServerPortDeserializer.class)
                    List<ServerPort> ports,
            @JsonProperty("tls") @Nullable TlsConfig tls,
            @JsonProperty("trustedProxyAddresses") @Nullable List<String> trustedProxyAddresses,
            @JsonProperty("clientAddressSources") @Nullable List<String> clientAddressSources,
            @JsonProperty("numWorkers") @Nullable Integer numWorkers,
            @JsonProperty("maxNumConnections") @Nullable Integer maxNumConnections,
            @JsonProperty("requestTimeoutMillis") @Nullable Long requestTimeoutMillis,
            @JsonProperty("idleTimeoutMillis") @Nullable Long idleTimeoutMillis,
            @JsonProperty("maxFrameLength") @Nullable Integer maxFrameLength,
            @JsonProperty("numRepositoryWorkers") @Nullable Integer numRepositoryWorkers,
            @JsonProperty("repositoryCacheSpec") @Nullable String repositoryCacheSpec,
            @JsonProperty("maxRemovedRepositoryAgeMillis") @Nullable Long maxRemovedRepositoryAgeMillis,
            @JsonProperty("gracefulShutdownTimeout") @Nullable GracefulShutdownTimeout gracefulShutdownTimeout,
            @JsonProperty("webAppEnabled") @Nullable Boolean webAppEnabled,
            @JsonProperty("webAppTitle") @Nullable String webAppTitle,
            @JsonProperty("mirroringEnabled") @Nullable Boolean mirroringEnabled,
            @JsonProperty("numMirroringThreads") @Nullable Integer numMirroringThreads,
            @JsonProperty("maxNumFilesPerMirror") @Nullable Integer maxNumFilesPerMirror,
            @JsonProperty("maxNumBytesPerMirror") @Nullable Long maxNumBytesPerMirror,
            @JsonProperty("replication") @Nullable ReplicationConfig replicationConfig,
            @JsonProperty("csrfTokenRequiredForThrift") @Nullable Boolean csrfTokenRequiredForThrift,
            @JsonProperty("accessLogFormat") @Nullable String accessLogFormat,
            @JsonProperty("authentication") @Nullable AuthConfig authConfig); @JsonProperty File dataDir(); @JsonProperty @JsonSerialize(contentUsing = ServerPortSerializer.class) List<ServerPort> ports(); @Nullable @JsonProperty TlsConfig tls(); @Nullable @JsonProperty List<String> trustedProxyAddresses(); @Nullable @JsonProperty List<String> clientAddressSources(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Integer> numWorkers(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Integer> maxNumConnections(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Long> requestTimeoutMillis(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Long> idleTimeoutMillis(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Integer> maxFrameLength(); @JsonProperty long maxRemovedRepositoryAgeMillis(); @JsonProperty @Deprecated String cacheSpec(); @JsonProperty String repositoryCacheSpec(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<GracefulShutdownTimeout> gracefulShutdownTimeout(); @JsonProperty boolean isWebAppEnabled(); @Nullable @JsonProperty("webAppTitle") String webAppTitle(); @JsonProperty boolean isMirroringEnabled(); @JsonProperty int numMirroringThreads(); @JsonProperty int maxNumFilesPerMirror(); @JsonProperty long maxNumBytesPerMirror(); @JsonProperty("replication") ReplicationConfig replicationConfig(); @JsonProperty boolean isCsrfTokenRequiredForThrift(); @JsonProperty @Nullable String accessLogFormat(); @Nullable @JsonProperty("authentication") AuthConfig authConfig(); @Override String toString(); }
CentralDogmaConfig { @JsonProperty public long maxRemovedRepositoryAgeMillis() { return maxRemovedRepositoryAgeMillis; } CentralDogmaConfig(
            @JsonProperty(value = "dataDir", required = true) File dataDir,
            @JsonProperty(value = "ports", required = true)
            @JsonDeserialize(contentUsing = ServerPortDeserializer.class)
                    List<ServerPort> ports,
            @JsonProperty("tls") @Nullable TlsConfig tls,
            @JsonProperty("trustedProxyAddresses") @Nullable List<String> trustedProxyAddresses,
            @JsonProperty("clientAddressSources") @Nullable List<String> clientAddressSources,
            @JsonProperty("numWorkers") @Nullable Integer numWorkers,
            @JsonProperty("maxNumConnections") @Nullable Integer maxNumConnections,
            @JsonProperty("requestTimeoutMillis") @Nullable Long requestTimeoutMillis,
            @JsonProperty("idleTimeoutMillis") @Nullable Long idleTimeoutMillis,
            @JsonProperty("maxFrameLength") @Nullable Integer maxFrameLength,
            @JsonProperty("numRepositoryWorkers") @Nullable Integer numRepositoryWorkers,
            @JsonProperty("repositoryCacheSpec") @Nullable String repositoryCacheSpec,
            @JsonProperty("maxRemovedRepositoryAgeMillis") @Nullable Long maxRemovedRepositoryAgeMillis,
            @JsonProperty("gracefulShutdownTimeout") @Nullable GracefulShutdownTimeout gracefulShutdownTimeout,
            @JsonProperty("webAppEnabled") @Nullable Boolean webAppEnabled,
            @JsonProperty("webAppTitle") @Nullable String webAppTitle,
            @JsonProperty("mirroringEnabled") @Nullable Boolean mirroringEnabled,
            @JsonProperty("numMirroringThreads") @Nullable Integer numMirroringThreads,
            @JsonProperty("maxNumFilesPerMirror") @Nullable Integer maxNumFilesPerMirror,
            @JsonProperty("maxNumBytesPerMirror") @Nullable Long maxNumBytesPerMirror,
            @JsonProperty("replication") @Nullable ReplicationConfig replicationConfig,
            @JsonProperty("csrfTokenRequiredForThrift") @Nullable Boolean csrfTokenRequiredForThrift,
            @JsonProperty("accessLogFormat") @Nullable String accessLogFormat,
            @JsonProperty("authentication") @Nullable AuthConfig authConfig); @JsonProperty File dataDir(); @JsonProperty @JsonSerialize(contentUsing = ServerPortSerializer.class) List<ServerPort> ports(); @Nullable @JsonProperty TlsConfig tls(); @Nullable @JsonProperty List<String> trustedProxyAddresses(); @Nullable @JsonProperty List<String> clientAddressSources(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Integer> numWorkers(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Integer> maxNumConnections(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Long> requestTimeoutMillis(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Long> idleTimeoutMillis(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<Integer> maxFrameLength(); @JsonProperty long maxRemovedRepositoryAgeMillis(); @JsonProperty @Deprecated String cacheSpec(); @JsonProperty String repositoryCacheSpec(); @JsonProperty @JsonSerialize(converter = OptionalConverter.class) Optional<GracefulShutdownTimeout> gracefulShutdownTimeout(); @JsonProperty boolean isWebAppEnabled(); @Nullable @JsonProperty("webAppTitle") String webAppTitle(); @JsonProperty boolean isMirroringEnabled(); @JsonProperty int numMirroringThreads(); @JsonProperty int maxNumFilesPerMirror(); @JsonProperty long maxNumBytesPerMirror(); @JsonProperty("replication") ReplicationConfig replicationConfig(); @JsonProperty boolean isCsrfTokenRequiredForThrift(); @JsonProperty @Nullable String accessLogFormat(); @Nullable @JsonProperty("authentication") AuthConfig authConfig(); @Override String toString();  }