@Test public void testGetSupportedPropertyDescriptorsSanity() throws Exception { List<PropertyDescriptor> expected = Arrays.asList( MetricsReportingTask.REPORTER_SERVICE, MetricsReportingTask.PROCESS_GROUP_ID); assertEquals(expected, testedReportingTask.getSupportedPropertyDescriptors()); }
@Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { List<PropertyDescriptor> properties = new ArrayList<>(); properties.add(REPORTER_SERVICE); properties.add(PROCESS_GROUP_ID); return Collections.unmodifiableList(properties); }
MetricsReportingTask extends AbstractReportingTask { @Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { List<PropertyDescriptor> properties = new ArrayList<>(); properties.add(REPORTER_SERVICE); properties.add(PROCESS_GROUP_ID); return Collections.unmodifiableList(properties); } }
MetricsReportingTask extends AbstractReportingTask { @Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { List<PropertyDescriptor> properties = new ArrayList<>(); properties.add(REPORTER_SERVICE); properties.add(PROCESS_GROUP_ID); return Collections.unmodifiableList(properties); }  }
MetricsReportingTask extends AbstractReportingTask { @Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { List<PropertyDescriptor> properties = new ArrayList<>(); properties.add(REPORTER_SERVICE); properties.add(PROCESS_GROUP_ID); return Collections.unmodifiableList(properties); }  @OnScheduled void connect(ConfigurationContext context); @Override void onTrigger(ReportingContext context); }
MetricsReportingTask extends AbstractReportingTask { @Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { List<PropertyDescriptor> properties = new ArrayList<>(); properties.add(REPORTER_SERVICE); properties.add(PROCESS_GROUP_ID); return Collections.unmodifiableList(properties); }  @OnScheduled void connect(ConfigurationContext context); @Override void onTrigger(ReportingContext context);  }