public class PartitionBrokerPlugin extends java.lang.Object implements BrokerPlugin
Modifier and Type | Field and Description |
---|---|
protected Partitioning |
config |
protected int |
minTransferCount |
Constructor and Description |
---|
PartitionBrokerPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBrokerURL(PartitionBroker partitionBroker,
java.lang.String id) |
Partitioning |
getConfig() |
int |
getMinTransferCount() |
Broker |
installPlugin(Broker broker)
Installs the plugin into the interceptor chain of the broker, returning the new
intercepted broker to use.
|
void |
setConfig(Partitioning config) |
void |
setConfigAsJson(java.lang.String config) |
void |
setMinTransferCount(int minTransferCount) |
protected int minTransferCount
protected Partitioning config
public Broker installPlugin(Broker broker) throws java.lang.Exception
BrokerPlugin
installPlugin
in interface BrokerPlugin
java.lang.Exception
public int getMinTransferCount()
public void setMinTransferCount(int minTransferCount)
public Partitioning getConfig()
public void setConfig(Partitioning config)
public void setConfigAsJson(java.lang.String config) throws java.io.IOException
java.io.IOException
public java.lang.String getBrokerURL(PartitionBroker partitionBroker, java.lang.String id)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.