public class MicroserviceTopology
extends java.lang.Object
| Constructor and Description |
|---|
MicroserviceTopology() |
| Modifier and Type | Method and Description |
|---|---|
static com.landoop.lenses.topology.client.TopologyClient |
create(java.lang.String appName,
java.util.Map<org.apache.kafka.clients.producer.KafkaProducer<?,?>,java.util.List<java.lang.String>> producerTopicsMap,
java.util.Map<org.apache.kafka.clients.consumer.KafkaConsumer<?,?>,java.util.List<java.lang.String>> consumerTopicsMap,
java.util.Properties properties)
Creates a
TopologyClient which registers the application topology with Lenses and sends the metrics associated with KafkaProducer and KafkaConsumer
instances provided |
static com.landoop.lenses.topology.client.TopologyClient |
fromConsumer(java.lang.String appName,
org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
java.util.List<java.lang.String> topics,
java.util.Properties properties)
Creates a topology client which publishes the topology associated with a Kafka producer and the metrics for it to a Kafka topic
which Lenses reads.
|
static com.landoop.lenses.topology.client.TopologyClient |
fromConsumer(java.lang.String appName,
org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
java.util.List<java.lang.String> topics,
java.util.Properties properties,
com.landoop.lenses.topology.client.DecoderType keyEncoder,
com.landoop.lenses.topology.client.DecoderType valueEncoder)
Creates a topology client which publishes the topology associated with a Kafka producer and the metrics for it to a Kafka topic
which Lenses reads.
|
static com.landoop.lenses.topology.client.TopologyClient |
fromProducer(java.lang.String appName,
org.apache.kafka.clients.producer.KafkaProducer<?,?> producer,
java.util.List<java.lang.String> topics,
java.util.Properties properties)
Creates a topology client which publishes the topology associated with a Kafka producer and the metrics for it to a Kafka topic
which Lenses reads.
|
static com.landoop.lenses.topology.client.TopologyClient |
fromProducer(java.lang.String appName,
org.apache.kafka.clients.producer.KafkaProducer<?,?> producer,
java.util.List<java.lang.String> topics,
java.util.Properties properties,
com.landoop.lenses.topology.client.DecoderType keyEncoder,
com.landoop.lenses.topology.client.DecoderType valueEncoder)
Creates a topology client which publishes the topology associated with a Kafka producer and the metrics for it to a Kafka topic
which Lenses reads.
|
public static com.landoop.lenses.topology.client.TopologyClient create(java.lang.String appName,
java.util.Map<org.apache.kafka.clients.producer.KafkaProducer<?,?>,java.util.List<java.lang.String>> producerTopicsMap,
java.util.Map<org.apache.kafka.clients.consumer.KafkaConsumer<?,?>,java.util.List<java.lang.String>> consumerTopicsMap,
java.util.Properties properties)
throws java.io.IOException
TopologyClient which registers the application topology with Lenses and sends the metrics associated with KafkaProducer and KafkaConsumer
instances providedappName - - The name of your microservice applicationproducerTopicsMap - - A map of producers to the topics they send Kafka records toconsumerTopicsMap - - A map of consumers and the topics they read message fromproperties - - An instance of PropertiesTopologyClient which will publish the metrics for the topology to Lensesjava.io.IOException - Throws IOExceptionpublic static com.landoop.lenses.topology.client.TopologyClient fromProducer(java.lang.String appName,
org.apache.kafka.clients.producer.KafkaProducer<?,?> producer,
java.util.List<java.lang.String> topics,
java.util.Properties properties)
throws java.io.IOException
appName - - The name of your application/microserviceproducer - - The instance of the KafkaProducertopics - - A list of topics the producer publishes records toproperties - - An instance of Properties used to create the producer instanceTopologyClient which monitors the producer metrics and sends them for Lenses to pick up.java.io.IOException - - Throws IOExceptionpublic static com.landoop.lenses.topology.client.TopologyClient fromProducer(java.lang.String appName,
org.apache.kafka.clients.producer.KafkaProducer<?,?> producer,
java.util.List<java.lang.String> topics,
java.util.Properties properties,
com.landoop.lenses.topology.client.DecoderType keyEncoder,
com.landoop.lenses.topology.client.DecoderType valueEncoder)
throws java.io.IOException
appName - - The name of your application/microserviceproducer - - The instance of the KafkaProducertopics - - A list of topics the producer publishes records toproperties - - An instance of Properties used to create the producer instancekeyEncoder - - Represents the format of a Kafka record key sent by producervalueEncoder - - Represents the format of a Kafka record value sent by producerTopologyClient which monitors the producer metrics and sends them for Lenses to pick up.java.io.IOException - - Throws IOExceptionpublic static com.landoop.lenses.topology.client.TopologyClient fromConsumer(java.lang.String appName,
org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
java.util.List<java.lang.String> topics,
java.util.Properties properties)
throws java.io.IOException
appName - - The name of your application/microserviceconsumer - - The instance of the KafkaConsumertopics - - A list of topics the producer publishes records toproperties - - An instance of Properties used to create the producer instanceTopologyClient which monitors the producer metrics and sends them for Lenses to pick up.java.io.IOException - Throws IOExceptionpublic static com.landoop.lenses.topology.client.TopologyClient fromConsumer(java.lang.String appName,
org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
java.util.List<java.lang.String> topics,
java.util.Properties properties,
com.landoop.lenses.topology.client.DecoderType keyEncoder,
com.landoop.lenses.topology.client.DecoderType valueEncoder)
throws java.io.IOException
appName - - The name of your application/microserviceconsumer - - The instance of the KafkaConsumertopics - - A list of topics the producer publishes records toproperties - - An instance of Properties used to create the producer instancekeyEncoder - - Represents the format of a Kafka record key sent by producervalueEncoder - - Represents the format of a Kafka record value sent by producerTopologyClient which monitors the producer metrics and sends them for Lenses to pick up.java.io.IOException - Throws IOException