public double getTypeVal(MetricNode node,String type){
        if(MetricConstants.PASS_QPS.equals(type)){
            return node.getPassQps();
        }
        if(MetricConstants.BLOCK_QPS.equals(type)){
            return node.getBlockQps();
        }
        if(MetricConstants.SUCCESS_QPS.equals(type)){
            return node.getSuccessQps();
        }
        if(MetricConstants.EXCEPTION_QPS.equals(type)){
            return node.getExceptionQps();
        }
        if(MetricConstants.RT.equals(type)){
            return node.getRt();
        }
        if(MetricConstants.OCC_PASS_QPS.equals(type)){
            return node.getOccupiedPassQps();
        }
        if(MetricConstants.CONCURRENCY.equals(type)){
            return node.getConcurrency();
        }
        return -1.0;
    }
@Test
    public void testCollector(){
        SentinelCollector collector = new SentinelCollector();

        MetricNode node = new MetricNode();
        node.setPassQps(10);
        double val = collector.getTypeVal(node,"passQps");
        Assert.assertEquals(val, 10,1e-4);
    }