本文整理汇总了Java中org.apache.cassandra.config.Config.setOutboundBindAny方法的典型用法代码示例。如果您正苦于以下问题:Java Config.setOutboundBindAny方法的具体用法?Java Config.setOutboundBindAny怎么用?Java Config.setOutboundBindAny使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.config.Config
的用法示例。
在下文中一共展示了Config.setOutboundBindAny方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AbstractBulkRecordWriter
import org.apache.cassandra.config.Config; //导入方法依赖的package包/类
protected AbstractBulkRecordWriter(Configuration conf)
{
Config.setClientMode(true);
Config.setOutboundBindAny(true);
this.conf = conf;
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
maxFailures = Integer.parseInt(conf.get(MAX_FAILED_HOSTS, "0"));
bufferSize = Integer.parseInt(conf.get(BUFFER_SIZE_IN_MB, "64"));
}
示例2: BulkRecordWriter
import org.apache.cassandra.config.Config; //导入方法依赖的package包/类
BulkRecordWriter(Configuration conf)
{
Config.setClientMode(true);
Config.setOutboundBindAny(true);
this.conf = conf;
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
maxFailures = Integer.parseInt(conf.get(MAX_FAILED_HOSTS, "0"));
}
示例3: CqlBulkRecordWriter
import org.apache.cassandra.config.Config; //导入方法依赖的package包/类
CqlBulkRecordWriter(Configuration conf) throws IOException
{
Config.setOutboundBindAny(true);
this.conf = conf;
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
maxFailures = Integer.parseInt(conf.get(MAX_FAILED_HOSTS, "0"));
bufferSize = Integer.parseInt(conf.get(BUFFER_SIZE_IN_MB, "64"));
setConfigs();
}
示例4: BulkRecordWriter
import org.apache.cassandra.config.Config; //导入方法依赖的package包/类
BulkRecordWriter(Configuration conf) throws IOException
{
Config.setLoadYaml(false);
Config.setOutboundBindAny(true);
this.conf = conf;
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
maxFailures = Integer.parseInt(conf.get(MAX_FAILED_HOSTS, "0"));
}
示例5: BulkRecordWriter
import org.apache.cassandra.config.Config; //导入方法依赖的package包/类
BulkRecordWriter(Configuration conf) {
Config.setClientMode(true);
Config.setOutboundBindAny(true);
this.conf = conf;
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
maxFailures = Integer.parseInt(conf.get(MAX_FAILED_HOSTS, "0"));
}
示例6: CrunchBulkRecordWriter
import org.apache.cassandra.config.Config; //导入方法依赖的package包/类
public CrunchBulkRecordWriter(TaskAttemptContext context) {
Config.setClientMode(true);
Config.setOutboundBindAny(true);
this.conf = HadoopCompat.getConfiguration(context);
this.context = context;
int megabitsPerSec = Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0"));
LOG.info("Setting stream throttling to " + megabitsPerSec);
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(megabitsPerSec);
DatabaseDescriptor.setInterDCStreamThroughputOutboundMegabitsPerSec(megabitsPerSec);
heartbeat = new ProgressHeartbeat(context, 120);
}