public class Advertiser extends Object implements org.jboss.msc.service.Service<Advertiser>, Runnable
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
Advertiser() |
| Modifier and Type | Method and Description |
|---|---|
void |
advertise(Registration registration) |
org.jboss.msc.inject.Injector<com.orbitz.consul.AgentClient> |
getAgentClientInjector() |
Advertiser |
getValue() |
void |
run() |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
void |
unadvertise(String name,
String address,
int port) |
public org.jboss.msc.inject.Injector<com.orbitz.consul.AgentClient> getAgentClientInjector()
public void advertise(Registration registration)
public void start(org.jboss.msc.service.StartContext startContext)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<Advertiser>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext stopContext)
stop in interface org.jboss.msc.service.Service<Advertiser>public Advertiser getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<Advertiser>IllegalStateExceptionIllegalArgumentExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.