Exemplo n.º 1
0
 @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());
 }
Exemplo n.º 2
0
 @Override
 public void setMachineMetricsExcluded(boolean excludeJvmMetrics) {
   AwsSdkMetrics.setMachineMetricsExcluded(excludeJvmMetrics);
 }