Class KafkaHttpServerImpl
java.lang.Object
io.confluent.http.server.KafkaHttpServerImpl
- All Implemented Interfaces:
io.confluent.kafka.http.server.KafkaHttpServer, org.apache.kafka.common.Configurable, org.apache.kafka.common.Reconfigurable
public final class KafkaHttpServerImpl
extends Object
implements io.confluent.kafka.http.server.KafkaHttpServer, org.apache.kafka.common.Reconfigurable
An HTTP Server that runs applications loaded from the classpath on the Kafka broker.
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaHttpServerImpl(List<io.confluent.rest.Application<?>> applications, KafkaHttpServerConfig configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanawaitStarted(Duration timeout) voidbooleanawaitStopped(Duration timeout) voidio.confluent.rest.ApplicationServer<KafkaHttpServerConfig> getError()intbooleanisFailed()booleanisNew()booleanbooleanbooleanbooleanvoidreconfigure(Map<String, ?> configs) voidstart()voidstop()voidvalidateReconfiguration(Map<String, ?> configs)
-
Constructor Details
-
KafkaHttpServerImpl
public KafkaHttpServerImpl(List<io.confluent.rest.Application<?>> applications, KafkaHttpServerConfig configuration)
-
-
Method Details
-
getApplicationServer
-
isNew
public boolean isNew()- Specified by:
isNewin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
isStarting
public boolean isStarting()- Specified by:
isStartingin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
isStopping
public boolean isStopping()- Specified by:
isStoppingin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
isFailed
public boolean isFailed()- Specified by:
isFailedin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
getError
-
start
public void start()- Specified by:
startin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
stop
public void stop()- Specified by:
stopin interfaceio.confluent.kafka.http.server.KafkaHttpServer
-
awaitStarted
- Specified by:
awaitStartedin interfaceio.confluent.kafka.http.server.KafkaHttpServer- Throws:
InterruptedException
-
awaitStarted
- Specified by:
awaitStartedin interfaceio.confluent.kafka.http.server.KafkaHttpServer- Throws:
InterruptedException
-
awaitStopped
- Specified by:
awaitStoppedin interfaceio.confluent.kafka.http.server.KafkaHttpServer- Throws:
InterruptedException
-
awaitStopped
- Specified by:
awaitStoppedin interfaceio.confluent.kafka.http.server.KafkaHttpServer- Throws:
InterruptedException
-
reconfigurableConfigs
-
validateReconfiguration
-
reconfigure
-
configure
-
getPrimaryPort
public int getPrimaryPort()
-