public class DropwizardServer
extends io.dropwizard.Application<io.dropwizard.Configuration>
| Constructor and Description |
|---|
DropwizardServer(Persistence persistence,
AuthenticationService authenticationService,
AuthorizationService authorizationService,
Metrics metrics,
HttpMetricsTagProvider httpMetricsTagProvider,
DataStoreFactory dataStoreFactory,
boolean enableGraphqlFirst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bootstrapLogging() |
void |
initialize(io.dropwizard.setup.Bootstrap<io.dropwizard.Configuration> bootstrap) |
void |
run(io.dropwizard.Configuration config,
io.dropwizard.setup.Environment environment) |
void |
run(String... arguments)
The only reason we override this is to remove the call to
bootstrap.registerMetrics(). |
void |
stop() |
public DropwizardServer(Persistence persistence, AuthenticationService authenticationService, AuthorizationService authorizationService, Metrics metrics, HttpMetricsTagProvider httpMetricsTagProvider, DataStoreFactory dataStoreFactory, boolean enableGraphqlFirst)
public void run(String... arguments)
bootstrap.registerMetrics().
JVM metrics are registered once at the top level in the health-checker module.
run in class io.dropwizard.Application<io.dropwizard.Configuration>public void run(io.dropwizard.Configuration config,
io.dropwizard.setup.Environment environment)
throws Exception
run in class io.dropwizard.Application<io.dropwizard.Configuration>Exceptionpublic void initialize(io.dropwizard.setup.Bootstrap<io.dropwizard.Configuration> bootstrap)
initialize in class io.dropwizard.Application<io.dropwizard.Configuration>protected void bootstrapLogging()
bootstrapLogging in class io.dropwizard.Application<io.dropwizard.Configuration>Copyright © 2021. All rights reserved.