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


Java CounterStat类代码示例

本文整理汇总了Java中io.airlift.stats.CounterStat的典型用法代码示例。如果您正苦于以下问题:Java CounterStat类的具体用法?Java CounterStat怎么用?Java CounterStat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CounterStat类属于io.airlift.stats包,在下文中一共展示了CounterStat类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: NodeSchedulerExporter

import io.airlift.stats.CounterStat; //导入依赖的package包/类
@Inject
public NodeSchedulerExporter(NodeScheduler nodeScheduler, MBeanExporter exporter)
{
    this.exporter = requireNonNull(exporter, "exporter is null");
    Map<String, CounterStat> topologicalSplitCounters = nodeScheduler.getTopologicalSplitCounters();
    for (Map.Entry<String, CounterStat> entry : topologicalSplitCounters.entrySet()) {
        try {
            String objectName = ObjectNames.builder(NodeScheduler.class).withProperty("segment", entry.getKey()).build();
            this.exporter.export(objectName, entry.getValue());
            objectNames.add(objectName);
        }
        catch (JmxException e) {
            // ignored
        }
    }
}
 
开发者ID:y-lan,项目名称:presto,代码行数:17,代码来源:NodeSchedulerExporter.java

示例2: TopologyAwareNodeSelector

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public TopologyAwareNodeSelector(
        NodeManager nodeManager,
        NodeTaskMap nodeTaskMap,
        boolean includeCoordinator,
        boolean doubleScheduling,
        Supplier<NodeMap> nodeMap,
        int minCandidates,
        int maxSplitsPerNode,
        int maxSplitsPerNodePerTaskWhenFull,
        List<CounterStat> topologicalSplitCounters,
        List<String> networkLocationSegmentNames,
        NetworkLocationCache networkLocationCache)
{
    this.nodeManager = requireNonNull(nodeManager, "nodeManager is null");
    this.nodeTaskMap = requireNonNull(nodeTaskMap, "nodeTaskMap is null");
    this.includeCoordinator = includeCoordinator;
    this.doubleScheduling = doubleScheduling;
    this.nodeMap = new AtomicReference<>(nodeMap);
    this.minCandidates = minCandidates;
    this.maxSplitsPerNode = maxSplitsPerNode;
    this.maxSplitsPerNodePerTaskWhenFull = maxSplitsPerNodePerTaskWhenFull;
    this.topologicalSplitCounters = requireNonNull(topologicalSplitCounters, "topologicalSplitCounters is null");
    this.networkLocationSegmentNames = requireNonNull(networkLocationSegmentNames, "networkLocationSegmentNames is null");
    this.networkLocationCache = requireNonNull(networkLocationCache, "networkLocationCache is null");
}
 
开发者ID:y-lan,项目名称:presto,代码行数:26,代码来源:TopologyAwareNodeSelector.java

示例3: getInputDataSize

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getInputDataSize()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isInputPipeline()) {
            stat.merge(pipelineContext.getInputDataSize());
        }
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:TaskContext.java

示例4: getInputPositions

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getInputPositions()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isInputPipeline()) {
            stat.merge(pipelineContext.getInputPositions());
        }
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:TaskContext.java

示例5: getOutputDataSize

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getOutputDataSize()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isOutputPipeline()) {
            stat.merge(pipelineContext.getOutputDataSize());
        }
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:TaskContext.java

示例6: getOutputPositions

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getOutputPositions()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isOutputPipeline()) {
            stat.merge(pipelineContext.getOutputPositions());
        }
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:TaskContext.java

示例7: getInputDataSize

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getInputDataSize()
{
    OperatorContext inputOperator = getFirst(operatorContexts, null);
    if (inputOperator != null) {
        return inputOperator.getInputDataSize();
    }
    else {
        return new CounterStat();
    }
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:DriverContext.java

示例8: getInputPositions

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getInputPositions()
{
    OperatorContext inputOperator = getFirst(operatorContexts, null);
    if (inputOperator != null) {
        return inputOperator.getInputPositions();
    }
    else {
        return new CounterStat();
    }
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:DriverContext.java

示例9: getOutputDataSize

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getOutputDataSize()
{
    OperatorContext inputOperator = getLast(operatorContexts, null);
    if (inputOperator != null) {
        return inputOperator.getOutputDataSize();
    }
    else {
        return new CounterStat();
    }
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:DriverContext.java

示例10: getOutputPositions

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getOutputPositions()
{
    OperatorContext inputOperator = getLast(operatorContexts, null);
    if (inputOperator != null) {
        return inputOperator.getOutputPositions();
    }
    else {
        return new CounterStat();
    }
}
 
开发者ID:y-lan,项目名称:presto,代码行数:11,代码来源:DriverContext.java

示例11: getInputDataSize

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getInputDataSize()
{
    CounterStat stat = new CounterStat();
    stat.merge(rawInputDataSize);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getInputDataSize());
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:10,代码来源:PipelineContext.java

示例12: getInputPositions

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getInputPositions()
{
    CounterStat stat = new CounterStat();
    stat.merge(rawInputPositions);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getInputPositions());
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:10,代码来源:PipelineContext.java

示例13: getOutputDataSize

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getOutputDataSize()
{
    CounterStat stat = new CounterStat();
    stat.merge(outputDataSize);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getOutputDataSize());
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:10,代码来源:PipelineContext.java

示例14: getOutputPositions

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public CounterStat getOutputPositions()
{
    CounterStat stat = new CounterStat();
    stat.merge(outputPositions);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getOutputPositions());
    }
    return stat;
}
 
开发者ID:y-lan,项目名称:presto,代码行数:10,代码来源:PipelineContext.java

示例15: SqlTaskIoStats

import io.airlift.stats.CounterStat; //导入依赖的package包/类
public SqlTaskIoStats(CounterStat inputDataSize, CounterStat inputPositions, CounterStat outputDataSize, CounterStat outputPositions)
{
    this.inputDataSize = requireNonNull(inputDataSize, "inputDataSize is null");
    this.inputPositions = requireNonNull(inputPositions, "inputPositions is null");
    this.outputDataSize = requireNonNull(outputDataSize, "outputDataSize is null");
    this.outputPositions = requireNonNull(outputPositions, "outputPositions is null");
}
 
开发者ID:y-lan,项目名称:presto,代码行数:8,代码来源:SqlTaskIoStats.java


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