@Test
 public void setJvmMetricsExcluded() {
   final boolean b = AwsSdkMetrics.isMachineMetricExcluded();
   AwsSdkMetrics.setMachineMetricsExcluded(b);
   assertTrue(b == AwsSdkMetrics.isMachineMetricExcluded());
   AwsSdkMetrics.setMachineMetricsExcluded(!b);
   assertFalse(b == AwsSdkMetrics.isMachineMetricExcluded());
   AwsSdkMetrics.setMachineMetricsExcluded(b);
   assertTrue(b == AwsSdkMetrics.isMachineMetricExcluded());
 }
示例#2
0
 @Override
 public void setMachineMetricsExcluded(boolean excludeJvmMetrics) {
   AwsSdkMetrics.setMachineMetricsExcluded(excludeJvmMetrics);
 }