当前位置: 首页>>代码示例>>Java>>正文


Java Config.setOutboundBindAny方法代码示例

本文整理汇总了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"));
}
 
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:10,代码来源:AbstractBulkRecordWriter.java

示例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"));
}
 
开发者ID:pgaref,项目名称:ACaZoo,代码行数:9,代码来源:BulkRecordWriter.java

示例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();
}
 
开发者ID:scylladb,项目名称:scylla-tools-java,代码行数:10,代码来源:CqlBulkRecordWriter.java

示例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"));
}
 
开发者ID:dprguiuc,项目名称:Cassandra-Wasef,代码行数:9,代码来源:BulkRecordWriter.java

示例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"));
}
 
开发者ID:2013Commons,项目名称:hive-cassandra,代码行数:8,代码来源:BulkRecordWriter.java

示例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);
}
 
开发者ID:spotify,项目名称:hdfs2cass,代码行数:12,代码来源:CrunchBulkRecordWriter.java


注:本文中的org.apache.cassandra.config.Config.setOutboundBindAny方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。