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 java.lang.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 java.util.Map<java.lang.String,SnmpStrategy>
getStrategies()
SnmpStrategy
getStrategy()
void
onBind(SnmpStrategy strategy, java.util.Map<java.lang.String,java.lang.String> props)
void
onUnbind(SnmpStrategy operation, java.util.Map<java.lang.String,java.lang.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, java.util.Map<java.lang.String,java.lang.String> props)
-
onUnbind
public void onUnbind(SnmpStrategy operation, java.util.Map<java.lang.String,java.lang.String> props)
-
getStrategy
public SnmpStrategy getStrategy()
- Specified by:
getStrategy
in interfaceStrategyResolver
-
getStrategies
protected java.util.Map<java.lang.String,SnmpStrategy> getStrategies()
- Returns:
- an immutable copy of of the strategies that are currently registered
-
-