Package org.elasticsearch.monitor.fs

Examples of org.elasticsearch.monitor.fs.FsStats


    public static NodeStats makeStats(String nodeName, DiskUsage usage) {
        FsStats.Info[] infos = new FsStats.Info[1];
        FsStats.Info info = new FsStats.Info("/path.data", null, null,
                usage.getTotalBytes(), usage.getFreeBytes(), usage.getFreeBytes(), -1, -1, -1, -1, -1, -1);
        infos[0] = info;
        FsStats fsStats = new FsStats(System.currentTimeMillis(), infos);
        return new NodeStats(new DiscoveryNode(nodeName, null, Version.V_2_0_0),
                System.currentTimeMillis(),
                null, null, null, null, null, null,
                fsStats,
                null, null, null);
View Full Code Here

TOP

Related Classes of org.elasticsearch.monitor.fs.FsStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.