本文整理汇总了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
}
}
}
示例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");
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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");
}