| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.entity.messaging.kafka.KafkaClusterImpl
public class KafkaClusterImpl extends AbstractEntity
Implementation of a Kafka cluster containing a KafkaZookeeper node and a group of KafkaBrokers.
| Field Summary | |
|---|---|
| static Logger | log | 
| Fields inherited from class AbstractEntity | |
|---|---|
| EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings | 
| Constructor Summary | |
| KafkaClusterImpl() | |
| Method Summary | |
|---|---|
| boolean | addMember(Entity member){@inheritDoc} | 
| DynamicCluster | getCluster() | 
| java.lang.Integer | getCurrentSize(){@inheritDoc} | 
| java.util.Collection | getMembers(){@inheritDoc} | 
| Zookeeper | getZookeeper() | 
| boolean | hasMember(Entity member){@inheritDoc} | 
| void | init() | 
| boolean | removeMember(Entity member){@inheritDoc} | 
| java.lang.Integer | resize(java.lang.Integer desiredSize) | 
| void | restart() | 
| void | start(java.util.Collection locations) | 
| void | stop() | 
| Field Detail | 
|---|
public static final Logger log
| Constructor Detail | 
|---|
public KafkaClusterImpl()
| Method Detail | 
|---|
public boolean addMember(Entity member)
return getAttribute(CLUSTER); public DynamicCluster getCluster()
} public java.lang.Integer getCurrentSize()
public java.util.Collection getMembers()
return getAttribute(ZOOKEEPER); public Zookeeper getZookeeper()
public boolean hasMember(Entity member)
@Override public void init()
public boolean removeMember(Entity member)
public java.lang.Integer resize(java.lang.Integer desiredSize)
stop(); public void restart()
if (isLegacyConstruction()) {
public void start(java.util.Collection locations)
        
getZookeeper().stop(); public void stop()
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.