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


Java OsService类代码示例

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


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

示例1: MonitorService

import org.elasticsearch.monitor.os.OsService; //导入依赖的package包/类
public MonitorService(Settings settings, NodeEnvironment nodeEnvironment, ThreadPool threadPool,
                      ClusterInfoService clusterInfoService) throws IOException {
    super(settings);
    this.jvmGcMonitorService = new JvmGcMonitorService(settings, threadPool);
    this.osService = new OsService(settings);
    this.processService = new ProcessService(settings);
    this.jvmService = new JvmService(settings);
    this.fsService = new FsService(settings, nodeEnvironment, clusterInfoService);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:MonitorService.java

示例2: NodeSysExpression

import org.elasticsearch.monitor.os.OsService; //导入依赖的package包/类
@Inject
public NodeSysExpression(ClusterService clusterService,
                         OsService osService,
                         NodeService nodeService,
                         JvmService jvmService,
                         NodeEnvironment nodeEnvironment,
                         Discovery discovery,
                         ThreadPool threadPool,
                         ExtendedNodeInfo extendedNodeInfo) {
    this.nodeService = nodeService;
    this.osService = osService;
    this.jvmService = jvmService;
    this.nodeEnvironment = nodeEnvironment;
    this.extendedNodeInfo = extendedNodeInfo;
    childImplementations.put(SysNodesTableInfo.SYS_COL_HOSTNAME,
            new NodeHostnameExpression(clusterService));
    childImplementations.put(SysNodesTableInfo.SYS_COL_REST_URL,
            new NodeRestUrlExpression(clusterService));
    childImplementations.put(SysNodesTableInfo.SYS_COL_ID,
            new NodeIdExpression(clusterService));
    childImplementations.put(SysNodesTableInfo.SYS_COL_NODE_NAME,
            new NodeNameExpression(discovery));
    childImplementations.put(SysNodesTableInfo.SYS_COL_PORT,
            new NodePortExpression(nodeService));
    childImplementations.put(SysNodesTableInfo.SYS_COL_VERSION,
            new NodeVersionExpression());
    childImplementations.put(SysNodesTableInfo.SYS_COL_THREAD_POOLS,
            new NodeThreadPoolsExpression(threadPool));
    childImplementations.put(SysNodesTableInfo.SYS_COL_OS_INFO,
            new NodeOsInfoExpression(osService.info()));
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:32,代码来源:NodeSysExpression.java

示例3: MonitorService

import org.elasticsearch.monitor.os.OsService; //导入依赖的package包/类
@Inject
public MonitorService(Settings settings, JvmMonitorService jvmMonitorService,
                      OsService osService, ProcessService processService, JvmService jvmService,
                      FsService fsService) {
    super(settings);
    this.jvmMonitorService = jvmMonitorService;
    this.osService = osService;
    this.processService = processService;
    this.jvmService = jvmService;
    this.fsService = fsService;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:12,代码来源:MonitorService.java

示例4: configure

import org.elasticsearch.monitor.os.OsService; //导入依赖的package包/类
@Override
protected void configure() {
    // bind default implementations
    bind(ProcessProbe.class).toInstance(ProcessProbe.getInstance());
    bind(OsProbe.class).toInstance(OsProbe.getInstance());
    bind(FsProbe.class).asEagerSingleton();

    // bind other services
    bind(ProcessService.class).asEagerSingleton();
    bind(OsService.class).asEagerSingleton();
    bind(JvmService.class).asEagerSingleton();
    bind(FsService.class).asEagerSingleton();

    bind(JvmMonitorService.class).asEagerSingleton();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:16,代码来源:MonitorModule.java

示例5: osService

import org.elasticsearch.monitor.os.OsService; //导入依赖的package包/类
public OsService osService() {
    return this.osService;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:4,代码来源:MonitorService.java


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