當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。