• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DataSourceType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: updateImpl

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Override
public void updateImpl(List<Metric> metrics) {
    // The statsd client doesn't do any checks on the underlying socket's state
    // and the socket connects only once, so we cannot trust the socket to stay
    // open over a period of time.  If this is changed/fixed we could reuse the
    // client but until then it cannot be safely reused.
    StatsDClient statsd = createClient();
    LOGGER.debug("sending data");
    try {
        for (Metric metric : metrics) {
            String aspect = namingConvention.getName(metric);

            if (metric.getConfig().getTags().getTag(DataSourceType.COUNTER.getValue()) != null) {
                statsd.count(aspect, metric.getNumberValue().longValue());
            } else if (metric.hasNumberValue()) {
                statsd.gauge(aspect, metric.getNumberValue().longValue());
            } else {
                statsd.set(aspect, metric.getValue().toString());
            }

            statsd.time(aspect, metric.getTimestamp() / 1000);
        }
    } finally {
        statsd.stop();
    }
}
 
开发者ID:lightblue-platform,项目名称:lightblue-client,代码行数:27,代码来源:StatsdMetricObserver.java


示例2: GaugeMetric

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
public GaugeMetric(MonitorConfig config) {
  super(config.withAdditionalTag(DataSourceType.GAUGE));
}
 
开发者ID:apache,项目名称:incubator-servicecomb-java-chassis,代码行数:4,代码来源:MetricsServoRegistry.java


示例3: InformationalMetric

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
public InformationalMetric(MonitorConfig config) {
  super(config.withAdditionalTag(DataSourceType.INFORMATIONAL));
}
 
开发者ID:apache,项目名称:incubator-servicecomb-java-chassis,代码行数:4,代码来源:MetricsServoRegistry.java


示例4: getLatencyIndexDelete95

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "latencyIndexDelete95", type = DataSourceType.GAUGE)
public double getLatencyIndexDelete95() {
    return nodeIndicesStatsBean.get().latencyIndexDelete95;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:NodeIndicesStatsMonitor.java


示例5: getFreePercent

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "free_percent", type = DataSourceType.GAUGE)
public short getFreePercent() {
    return osStatsBean.get().freePercent;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:OsStatsMonitor.java


示例6: isGauge

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
private static boolean isGauge(Metric m) {
    final TagList tags = m.getConfig().getTags();
    final String value = tags.getValue(DataSourceType.KEY);
    return value != null && value.equals(DataSourceType.GAUGE.name());
}
 
开发者ID:dmuino,项目名称:atlas-oss-plugin,代码行数:6,代码来源:BaseAtlasMetricObserver.java


示例7: getLatencyIndexing99

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "latencyIndexing99", type = DataSourceType.GAUGE)
public double getLatencyIndexing99() {
    return nodeIndicesStatsBean.get().latencyIndexing99;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:NodeIndicesStatsMonitor.java


示例8: getGetThreads

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "getThreads", type = DataSourceType.GAUGE)
public long getGetThreads() {
    return threadPoolBean.get().getThreads;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:ThreadPoolStatsMonitor.java


示例9: EstimatedHistogramBasedCounter

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
public EstimatedHistogramBasedCounter(final String name, final String opName, final String tagName, final EstimatedHistogram histogram) {
	super(MonitorConfig.builder(name).build()
			.withAdditionalTag(DataSourceType.GAUGE)
			.withAdditionalTag(new BasicTag(tagName, opName)));
	this.estHistogram = histogram;
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:7,代码来源:EstimatedHistogramBasedCounter.java


示例10: getOperationSuccessCount

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "OperationSuccess", type = DataSourceType.COUNTER)
@Override
public long getOperationSuccessCount() {
	return super.getOperationSuccessCount();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例11: getOperationFailureCount

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "OperationFailure", type = DataSourceType.COUNTER)
@Override
public long getOperationFailureCount() {
	return super.getOperationFailureCount();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例12: getConnectionCreatedCount

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "ConnectionCreated", type = DataSourceType.COUNTER)
@Override
public long getConnectionCreatedCount() {
	return super.getConnectionCreatedCount();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例13: getServerOpen

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "server_open", type = DataSourceType.GAUGE)
public long getServerOpen() {
    return transportStatsBean.get().serverOpen;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:TransportStatsMonitor.java


示例14: getConnectionCreateFailedCount

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "ConnectionCreateFailed", type = DataSourceType.COUNTER)
@Override
public long getConnectionCreateFailedCount() {
	return super.getConnectionCreateFailedCount();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例15: getSearchFetchCurrent

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "search_fetch_current", type = DataSourceType.GAUGE)
public long getSearchFetchCurrent() {
    return nodeIndicesStatsBean.get().searchFetchCurrent;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:NodeIndicesStatsMonitor.java


示例16: getConnectionBorrowedLatMean

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "ConnectionBorrowedAvgLat", type = DataSourceType.GAUGE)
@Override
public long getConnectionBorrowedLatMean() {
    return super.getConnectionBorrowedLatMean();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例17: getConnectionBorrowedLatP50

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "ConnectionBorrowedLatP50", type = DataSourceType.GAUGE)
@Override
public long getConnectionBorrowedLatP50() {
    return super.getConnectionBorrowedLatP50();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例18: getMergesTotalSize

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "merges_total_size", type = DataSourceType.GAUGE)
public long getMergesTotalSize() {
    return nodeIndicesStatsBean.get().mergesTotalSize;
}
 
开发者ID:Netflix,项目名称:Raigad,代码行数:5,代码来源:NodeIndicesStatsMonitor.java


示例19: getConnectionReturnedCount

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "ConnectionReturned", type = DataSourceType.COUNTER)
@Override
public long getConnectionReturnedCount() {
	return super.getConnectionReturnedCount();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java


示例20: getPoolExhaustedTimeoutCount

import com.netflix.servo.annotations.DataSourceType; //导入依赖的package包/类
@Monitor(name = "PoolExhausted", type = DataSourceType.COUNTER)
@Override
public long getPoolExhaustedTimeoutCount() {
	return super.getPoolExhaustedTimeoutCount();
}
 
开发者ID:Netflix,项目名称:dyno,代码行数:6,代码来源:DynoCPMonitor.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java JSTypeRegistry类代码示例发布时间:2022-05-22
下一篇:
Java Base64Utils类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap