Package org.elasticsearch.monitor.process

Examples of org.elasticsearch.monitor.process.ProcessStats$Mem


                        return new ExpList(src, null);
        }

        public Stm build(ExpList kids) {
                if (dst instanceof MEM)
                        return new MOVE(new MEM(kids.head), kids.tail.head);
                else
                        return new MOVE(dst, kids.head);
        }
View Full Code Here


        public ExpList kids() {
                return new ExpList(exp, null);
        }

        public Exp build(ExpList kids) {
                return new MEM(kids.head);
        }
View Full Code Here

    private void addChildImplementations() {
        childImplementations.put(OPEN_FILE_DESCRIPTORS, new ProcessExpression(OPEN_FILE_DESCRIPTORS) {
            @Override
            public Long value() {
                ProcessStats processStats = nodeService.stats().getProcess();
                if (processStats != null) {
                    return processStats.getOpenFileDescriptors();
                } else { return -1L; }
            }
        });
        childImplementations.put(MAX_OPEN_FILE_DESCRIPTORS, new ProcessExpression(MAX_OPEN_FILE_DESCRIPTORS) {
            @Override
View Full Code Here

            when(cpu.sys()).thenReturn((short) 2);
            when(cpu.user()).thenReturn((short) 4);
            when(cpu.idle()).thenReturn((short) 94);
            when(cpu.stolen()).thenReturn((short) 10);

            ProcessStats processStats = mock(ProcessStats.class);
            when(nodeStats.getProcess()).thenReturn(processStats);
            when(processStats.getOpenFileDescriptors()).thenReturn(42L);

            NodeInfo nodeInfo = mock(NodeInfo.class);
            when(nodeService.info()).thenReturn(nodeInfo);

            ProcessInfo processInfo = mock(ProcessInfo.class);
View Full Code Here

TOP

Related Classes of org.elasticsearch.monitor.process.ProcessStats$Mem

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.