public class AgentService
extends com.google.common.util.concurrent.AbstractIdleService
implements io.dropwizard.lifecycle.Managed
| Constructor and Description |
|---|
AgentService(AgentConfig config,
io.dropwizard.setup.Environment environment)
Create a new agent instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
shutDown() |
void |
start() |
protected void |
startUp() |
void |
stop() |
public AgentService(AgentConfig config, io.dropwizard.setup.Environment environment) throws io.dropwizard.configuration.ConfigurationException, InterruptedException, IOException
config - The service configuration.environment - The DropWizard environment.io.dropwizard.configuration.ConfigurationException - If an error occurs with the DropWizard configuration.InterruptedException - If the thread is interrupted.IOException - IOExceptionprotected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractIdleServiceExceptionpublic void start()
throws Exception
start in interface io.dropwizard.lifecycle.ManagedExceptionCopyright © 2017. All rights reserved.