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, java.util.Map<java.lang.String,java.lang.Object> attributes)
actjava.lang.String
getAction()
getActionjava.lang.String
getIfAdminStatus()
getIfAdminStatusjava.lang.String
getIfAlias()
getIfAliasjava.lang.String
getIfDescr()
getIfDescrjava.lang.String
getIfIndex()
getIfIndexjava.lang.String
getIfName()
getIfNamejava.lang.String
getIfOperStatus()
getIfOperStatusjava.lang.String
getIfSpeed()
getIfSpeedjava.lang.String
getIfType()
getIfTypejava.lang.String
getPhysAddr()
getPhysAddrvoid
setAction(java.lang.String action)
setActionvoid
setIfAdminStatus(java.lang.String ifAdminStatus)
setIfAdminStatusvoid
setIfAlias(java.lang.String ifAlias)
setIfAliasvoid
setIfDescr(java.lang.String ifDescr)
setIfDescrvoid
setIfIndex(java.lang.String ifIndex)
setIfIndexvoid
setIfName(java.lang.String ifName)
setIfNamevoid
setIfOperStatus(java.lang.String ifOperStatus)
setIfOperStatusvoid
setIfSpeed(java.lang.String ifSpeed)
setIfSpeedvoid
setIfType(java.lang.String ifType)
setIfTypevoid
setPhysAddr(java.lang.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
-
getAction
public java.lang.String getAction()
getAction
- Returns:
- a
String
object.
-
setAction
public void setAction(java.lang.String action)
setAction
- Parameters:
action
- aString
object.
-
act
public OnmsSnmpInterface act(OnmsSnmpInterface iface, java.util.Map<java.lang.String,java.lang.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.
-
getIfDescr
public java.lang.String getIfDescr()
getIfDescr
- Returns:
- a
String
object.
-
setIfDescr
public void setIfDescr(java.lang.String ifDescr)
setIfDescr
- Parameters:
ifDescr
- aString
object.
-
getIfName
public java.lang.String getIfName()
getIfName
- Returns:
- a
String
object.
-
setIfName
public void setIfName(java.lang.String ifName)
setIfName
- Parameters:
ifName
- aString
object.
-
getIfType
public java.lang.String getIfType()
getIfType
- Returns:
- a
String
object.
-
setIfType
public void setIfType(java.lang.String ifType)
setIfType
- Parameters:
ifType
- aString
object.
-
getPhysAddr
public java.lang.String getPhysAddr()
getPhysAddr
- Returns:
- a
String
object.
-
setPhysAddr
public void setPhysAddr(java.lang.String physAddr)
setPhysAddr
- Parameters:
physAddr
- aString
object.
-
getIfIndex
public java.lang.String getIfIndex()
getIfIndex
- Returns:
- a
String
object.
-
setIfIndex
public void setIfIndex(java.lang.String ifIndex)
setIfIndex
- Parameters:
ifIndex
- aString
object.
-
getIfSpeed
public java.lang.String getIfSpeed()
getIfSpeed
- Returns:
- a
String
object.
-
setIfSpeed
public void setIfSpeed(java.lang.String ifSpeed)
setIfSpeed
- Parameters:
ifSpeed
- aString
object.
-
getIfAdminStatus
public java.lang.String getIfAdminStatus()
getIfAdminStatus
- Returns:
- a
String
object.
-
setIfAdminStatus
public void setIfAdminStatus(java.lang.String ifAdminStatus)
setIfAdminStatus
- Parameters:
ifAdminStatus
- aString
object.
-
getIfOperStatus
public java.lang.String getIfOperStatus()
getIfOperStatus
- Returns:
- a
String
object.
-
setIfOperStatus
public void setIfOperStatus(java.lang.String ifOperStatus)
setIfOperStatus
- Parameters:
ifOperStatus
- aString
object.
-
getIfAlias
public java.lang.String getIfAlias()
getIfAlias
- Returns:
- a
String
object.
-
setIfAlias
public void setIfAlias(java.lang.String ifAlias)
setIfAlias
- Parameters:
ifAlias
- aString
object.
-
-