Search in sources :

Example 1 with PollableVisitor

use of org.opennms.netmgt.poller.pollables.PollableVisitor in project opennms by OpenNMS.

the class Poller method refreshServiceThresholds.

/**
     * <p>refreshServiceThresholds</p>
     */
public void refreshServiceThresholds() {
    PollableVisitor visitor = new PollableVisitorAdaptor() {

        @Override
        public void visitService(PollableService service) {
            service.refreshThresholds();
        }
    };
    getNetwork().visit(visitor);
}
Also used : PollableVisitorAdaptor(org.opennms.netmgt.poller.pollables.PollableVisitorAdaptor) PollableService(org.opennms.netmgt.poller.pollables.PollableService) PollableVisitor(org.opennms.netmgt.poller.pollables.PollableVisitor)

Example 2 with PollableVisitor

use of org.opennms.netmgt.poller.pollables.PollableVisitor in project opennms by OpenNMS.

the class Poller method refreshServicePackages.

/**
     * <p>refreshServicePackages</p>
     */
public void refreshServicePackages() {
    PollableVisitor visitor = new PollableVisitorAdaptor() {

        @Override
        public void visitService(PollableService service) {
            service.refreshConfig();
        }
    };
    getNetwork().visit(visitor);
}
Also used : PollableVisitorAdaptor(org.opennms.netmgt.poller.pollables.PollableVisitorAdaptor) PollableService(org.opennms.netmgt.poller.pollables.PollableService) PollableVisitor(org.opennms.netmgt.poller.pollables.PollableVisitor)

Aggregations

PollableService (org.opennms.netmgt.poller.pollables.PollableService)2 PollableVisitor (org.opennms.netmgt.poller.pollables.PollableVisitor)2 PollableVisitorAdaptor (org.opennms.netmgt.poller.pollables.PollableVisitorAdaptor)2