public class KafkaPublisher
extends java.lang.Object
implements com.landoop.lenses.topology.client.Publisher
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_METRICS_TOPIC_NAME |
static java.lang.String |
DEFAULT_TOPOLOGY_TOPIC_NAME |
static java.lang.String |
METRIC_TOPIC_CONFIG_KEY |
static java.lang.String |
TOPOLOGY_TOPIC_CONFIG_KEY |
| Constructor and Description |
|---|
KafkaPublisher(java.util.Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
delete(java.lang.String appName) |
void |
flush() |
void |
publish(com.landoop.lenses.topology.client.metrics.Metrics metrics) |
void |
publish(com.landoop.lenses.topology.client.Topology topology) |
public static final java.lang.String DEFAULT_TOPOLOGY_TOPIC_NAME
public static final java.lang.String DEFAULT_METRICS_TOPIC_NAME
public static final java.lang.String TOPOLOGY_TOPIC_CONFIG_KEY
public static final java.lang.String METRIC_TOPIC_CONFIG_KEY
public void publish(com.landoop.lenses.topology.client.Topology topology)
throws java.io.IOException
publish in interface com.landoop.lenses.topology.client.Publisherjava.io.IOExceptionpublic void publish(com.landoop.lenses.topology.client.metrics.Metrics metrics)
throws java.io.IOException
publish in interface com.landoop.lenses.topology.client.Publisherjava.io.IOExceptionpublic void flush()
flush in interface com.landoop.lenses.topology.client.Publisherpublic void delete(java.lang.String appName)
delete in interface com.landoop.lenses.topology.client.Publisherpublic void close()
close in interface com.landoop.lenses.topology.client.Publisher