Class MatchingSnmpInterfacePolicy
- java.lang.Object
-
- org.opennms.netmgt.provision.BasePolicy<OnmsSnmpInterface>
-
- org.opennms.netmgt.provision.persist.policies.MatchingSnmpInterfacePolicy
-
- All Implemented Interfaces:
OnmsPolicy
,SnmpInterfacePolicy
@Component @Scope("prototype") public class MatchingSnmpInterfacePolicy extends BasePolicy<OnmsSnmpInterface> implements SnmpInterfacePolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatchingSnmpInterfacePolicy.Action
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.BasePolicy
BasePolicy.Match
-
-
Constructor Summary
Constructors Constructor Description MatchingSnmpInterfacePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsSnmpInterface
act(OnmsSnmpInterface iface, Map<String,Object> attributes)
actString
getAction()
getActionString
getIfAdminStatus()
getIfAdminStatusString
getIfAlias()
getIfAliasString
getIfDescr()
getIfDescrString
getIfIndex()
getIfIndexString
getIfName()
getIfNameString
getIfOperStatus()
getIfOperStatusString
getIfSpeed()
getIfSpeedString
getIfType()
getIfTypeString
getPhysAddr()
getPhysAddrvoid
setAction(String action)
setActionvoid
setIfAdminStatus(String ifAdminStatus)
setIfAdminStatusvoid
setIfAlias(String ifAlias)
setIfAliasvoid
setIfDescr(String ifDescr)
setIfDescrvoid
setIfIndex(String ifIndex)
setIfIndexvoid
setIfName(String ifName)
setIfNamevoid
setIfOperStatus(String ifOperStatus)
setIfOperStatusvoid
setIfSpeed(String ifSpeed)
setIfSpeedvoid
setIfType(String ifType)
setIfTypevoid
setPhysAddr(String physAddr)
setPhysAddr-
Methods inherited from class org.opennms.netmgt.provision.BasePolicy
apply, getCriteria, getCriteria, getMatch, getMatchBehavior, match, matches, putCriteria, setMatch, setMatchBehavior
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.SnmpInterfacePolicy
apply
-
-
-
-
Method Detail
-
act
public OnmsSnmpInterface act(OnmsSnmpInterface iface, Map<String,Object> attributes)
act
- Specified by:
act
in classBasePolicy<OnmsSnmpInterface>
- Parameters:
iface
- a T object.attributes
- that can be set on script.- Returns:
- a T object.
-
setIfDescr
public void setIfDescr(String ifDescr)
setIfDescr
- Parameters:
ifDescr
- aString
object.
-
setPhysAddr
public void setPhysAddr(String physAddr)
setPhysAddr
- Parameters:
physAddr
- aString
object.
-
setIfIndex
public void setIfIndex(String ifIndex)
setIfIndex
- Parameters:
ifIndex
- aString
object.
-
setIfSpeed
public void setIfSpeed(String ifSpeed)
setIfSpeed
- Parameters:
ifSpeed
- aString
object.
-
setIfAdminStatus
public void setIfAdminStatus(String ifAdminStatus)
setIfAdminStatus
- Parameters:
ifAdminStatus
- aString
object.
-
setIfOperStatus
public void setIfOperStatus(String ifOperStatus)
setIfOperStatus
- Parameters:
ifOperStatus
- aString
object.
-
-