Package org.opennms.netmgt.snmp.internal
Class ServiceBasedStrategyResolver
- java.lang.Object
-
- org.opennms.netmgt.snmp.internal.ServiceBasedStrategyResolver
-
- All Implemented Interfaces:
StrategyResolver
public class ServiceBasedStrategyResolver extends Object implements StrategyResolver
-
-
Constructor Summary
Constructors Constructor Description ServiceBasedStrategyResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,SnmpStrategy>
getStrategies()
SnmpStrategy
getStrategy()
void
onBind(SnmpStrategy strategy, Map<String,String> props)
void
onUnbind(SnmpStrategy operation, Map<String,String> props)
static ServiceBasedStrategyResolver
register()
static void
unregister()
-
-
-
Method Detail
-
register
public static ServiceBasedStrategyResolver register()
-
unregister
public static void unregister()
-
onBind
public void onBind(SnmpStrategy strategy, Map<String,String> props)
-
onUnbind
public void onUnbind(SnmpStrategy operation, Map<String,String> props)
-
getStrategy
public SnmpStrategy getStrategy()
- Specified by:
getStrategy
in interfaceStrategyResolver
-
getStrategies
protected Map<String,SnmpStrategy> getStrategies()
- Returns:
- an immutable copy of of the strategies that are currently registered
-
-