public final class StreamHttpService extends com.google.common.util.concurrent.AbstractIdleService implements com.google.common.base.Supplier<Discoverable>
| Constructor and Description |
|---|
StreamHttpService(CConfiguration cConf,
DiscoveryService discoveryService,
Set<co.cask.http.HttpHandler> handlers,
MetricsCollectionService metricsCollectionService) |
| Modifier and Type | Method and Description |
|---|---|
Discoverable |
get() |
InetSocketAddress |
getBindAddress()
Get the address the server has bound to.
|
protected void |
shutDown() |
protected void |
startUp() |
String |
toString() |
@Inject public StreamHttpService(CConfiguration cConf, DiscoveryService discoveryService, Set<co.cask.http.HttpHandler> handlers, @Nullable MetricsCollectionService metricsCollectionService)
protected 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 String toString()
toString in class com.google.common.util.concurrent.AbstractIdleServicepublic InetSocketAddress getBindAddress()
public Discoverable get()
get in interface com.google.common.base.Supplier<Discoverable>Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.