本文整理汇总了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);
}
示例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()));
}
示例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;
}
示例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();
}
示例5: osService
import org.elasticsearch.monitor.os.OsService; //导入依赖的package包/类
public OsService osService() {
return this.osService;
}