Package ai.superstream.core
Class ClientReporter
java.lang.Object
ai.superstream.core.ClientReporter
Reports client information to the superstream.clients topic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanreportClient(String bootstrapServers, Properties originalClientProperties, int superstreamClusterId, boolean active, String clientId, Map<String, Object> originalConfiguration, Map<String, Object> optimizedConfiguration) Report client information to the superstream.clients topic.
-
Constructor Details
-
ClientReporter
public ClientReporter()
-
-
Method Details
-
reportClient
public boolean reportClient(String bootstrapServers, Properties originalClientProperties, int superstreamClusterId, boolean active, String clientId, Map<String, Object> originalConfiguration, Map<String, Object> optimizedConfiguration) Report client information to the superstream.clients topic.- Parameters:
bootstrapServers- The Kafka bootstrap serverssuperstreamClusterId- The superstream cluster IDactive- Whether the superstream optimization is activeclientId- The client IDoriginalConfiguration- The original configurationoptimizedConfiguration- The optimized configuration- Returns:
- True if the message was sent successfully, false otherwise
-