public class RocketMQChaosDriver extends Object implements MQChaosDriver
| 构造器和说明 |
|---|
RocketMQChaosDriver() |
| 限定符和类型 | 方法和说明 |
|---|---|
MQChaosNode |
createChaosNode(String node,
List<String> nodes) |
MQChaosProducer |
createProducer(String topic) |
MQChaosPullConsumer |
createPullConsumer(String topic,
String subscriptionName) |
MQChaosPushConsumer |
createPushConsumer(String topic,
String subscriptionName,
ConsumerCallback consumerCallback) |
void |
createTopic(String topic,
int partitions) |
void |
initialize(File configurationFile,
List<String> nodes) |
void |
shutdown() |
public void initialize(File configurationFile, List<String> nodes) throws IOException
initialize 在接口中 ChaosDriverIOExceptionpublic MQChaosNode createChaosNode(String node, List<String> nodes)
createChaosNode 在接口中 MQChaosDriverpublic MQChaosProducer createProducer(String topic)
createProducer 在接口中 MQChaosDriverpublic MQChaosPushConsumer createPushConsumer(String topic, String subscriptionName, ConsumerCallback consumerCallback)
createPushConsumer 在接口中 MQChaosDriverpublic MQChaosPullConsumer createPullConsumer(String topic, String subscriptionName)
createPullConsumer 在接口中 MQChaosDriverpublic void createTopic(String topic, int partitions)
createTopic 在接口中 MQChaosDriverpublic void shutdown()
shutdown 在接口中 ChaosDriverCopyright © 2020. All rights reserved.