use of org.opennms.netmgt.poller.DistributionContext in project opennms by OpenNMS.
the class PollerConfigManager method getSupportedDistributionContexts.
private List<DistributionContext> getSupportedDistributionContexts(final Class<? extends ServiceMonitor> mc) {
final Distributable distributable = mc.getAnnotation(Distributable.class);
final List<DistributionContext> declaredContexts = distributable == null ? Collections.singletonList(DistributionContext.DAEMON) : Arrays.asList(distributable.value());
return declaredContexts;
}
Aggregations