public interface KafkaCluster extends Entity, Startable, Resizable, Group
brokers
controlled
by a single zookeeper
entity.
You can customise the Kafka zookeeper and brokers by supplying entity specifications
to be used when creating them. An existing Zookeeper
entity may also be provided instead of the
Kafka zookeeper.
The contents of this entity are:
DynamicCluster
of KafkaBroker
s
KafkaZookeeper
or Zookeeper
Policy
to resize the broker cluster
group
and Resizable
interface methods are delegated to the broker cluster, so calling
resize
will change the number of brokers.Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody
Resizable.InsufficientCapacityException
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Field and Description |
---|---|
static BasicAttributeSensorAndConfigKey<EntitySpec<KafkaBroker>> |
BROKER_SPEC
Spec for Kafka broker entities to be created.
|
static AttributeSensor<DynamicCluster> |
CLUSTER
Underlying Kafka broker cluster.
|
static ConfigKey<java.lang.Integer> |
INITIAL_SIZE |
static ConfigKey<Duration> |
START_TIMEOUT |
static BasicAttributeSensorAndConfigKey<ZooKeeperNode> |
ZOOKEEPER
Zookeeper for the cluster.
|
static BasicAttributeSensorAndConfigKey<EntitySpec<KafkaZooKeeper>> |
ZOOKEEPER_SPEC
Spec for creating the default Kafka zookeeper entity.
|
RESTART, SERVICE_UP, START, STOP
Modifier and Type | Method and Description |
---|---|
DynamicCluster |
getCluster() |
ZooKeeperNode |
getZooKeeper() |
restart, start, stop
getCurrentSize, resize
addChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMember
addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
static final ConfigKey<java.lang.Integer> INITIAL_SIZE
static final BasicAttributeSensorAndConfigKey<ZooKeeperNode> ZOOKEEPER
static final BasicAttributeSensorAndConfigKey<EntitySpec<KafkaZooKeeper>> ZOOKEEPER_SPEC
static final BasicAttributeSensorAndConfigKey<EntitySpec<KafkaBroker>> BROKER_SPEC
static final AttributeSensor<DynamicCluster> CLUSTER
ZooKeeperNode getZooKeeper()
DynamicCluster getCluster()