public class EventBusManager extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
EventBusManager.Connection |
| Constructor and Description |
|---|
EventBusManager(String zkServer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createTopic(String topic,
int replicationFactor,
int numPartitions) |
boolean |
deleteTopic(String topic) |
Map<String,Integer> |
getAllPartitions() |
List<String> |
getAllTopics() |
int |
getEventBusSize() |
int |
getPartitionByTopic(String topic) |
boolean |
hasTopic(String topic) |
boolean |
increasePartitionByTopic(String topic,
int numPartitions) |
boolean |
isEventBusUp() |
static boolean |
pingServer(String zkServer) |
void |
shutdown() |
public EventBusManager(String zkServer)
public boolean isEventBusUp()
public int getEventBusSize()
public int getPartitionByTopic(String topic)
public boolean createTopic(String topic, int replicationFactor, int numPartitions) throws Exception
Exceptionpublic boolean increasePartitionByTopic(String topic, int numPartitions)
public static boolean pingServer(String zkServer)
public void shutdown()
Copyright © 2018 CodeGerm. All rights reserved.