Package com.linkedin.venice
Class DumpAdminMessages
java.lang.Object
com.linkedin.venice.DumpAdminMessages
The design consideration to consume in admin tool directly instead of letting controller to
consume the required admin message and return them back to admin tool:
1. Controller may not have all the latest schemas for
AdminOperation, then controller
couldn't print human-readable string for unknown admin operations;
2. Don't introduce any overhead to controller since sometimes controller itself is already
very slow;-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdumpAdminMessages(PubSubConsumerAdapter consumer, String clusterName, PubSubPosition startingPosition, int messageCnt) Dumps admin messages from the admin topic for the given cluster.
-
Constructor Details
-
DumpAdminMessages
public DumpAdminMessages()
-
-
Method Details
-
dumpAdminMessages
public static int dumpAdminMessages(PubSubConsumerAdapter consumer, String clusterName, PubSubPosition startingPosition, int messageCnt) Dumps admin messages from the admin topic for the given cluster. Messages are logged as they are received instead of being buffered.- Parameters:
consumer- the PubSub consumer to useclusterName- the name of the clusterstartingPosition- the starting position to consume frommessageCnt- the maximum number of messages to consume- Returns:
- the number of messages processed
-