Search in sources :

Example 1 with Distributable

use of org.opennms.netmgt.poller.Distributable 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;
}
Also used : Distributable(org.opennms.netmgt.poller.Distributable) DistributionContext(org.opennms.netmgt.poller.DistributionContext)

Aggregations

Distributable (org.opennms.netmgt.poller.Distributable)1 DistributionContext (org.opennms.netmgt.poller.DistributionContext)1