Class MatchingIpInterfacePolicy
- java.lang.Object
-
- org.opennms.netmgt.provision.BasePolicy<OnmsIpInterface>
-
- org.opennms.netmgt.provision.persist.policies.MatchingIpInterfacePolicy
-
- All Implemented Interfaces:
IpInterfacePolicy
,OnmsPolicy
@Component @Scope("prototype") public class MatchingIpInterfacePolicy extends BasePolicy<OnmsIpInterface> implements IpInterfacePolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatchingIpInterfacePolicy.Action
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.BasePolicy
BasePolicy.Match
-
-
Constructor Summary
Constructors Constructor Description MatchingIpInterfacePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsIpInterface
act(OnmsIpInterface iface, Map<String,Object> attributes)
actString
getAction()
getActionString
getHostName()
getHostNameString
getIpAddress()
getIpAddressvoid
setAction(String action)
setActionvoid
setHostName(String hostName)
setHostNamevoid
setIpAddress(String ipAddress)
setIpAddress-
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.IpInterfacePolicy
apply
-
-
-
-
Method Detail
-
act
public OnmsIpInterface act(OnmsIpInterface iface, Map<String,Object> attributes)
act
- Specified by:
act
in classBasePolicy<OnmsIpInterface>
- Parameters:
iface
- a T object.attributes
- that can be set on script.- Returns:
- a T object.
-
setIpAddress
public void setIpAddress(String ipAddress)
setIpAddress
- Parameters:
ipAddress
- aString
object.
-
setHostName
public void setHostName(String hostName)
setHostName
- Parameters:
hostName
- aString
object.
-
-