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 classMatchingIpInterfacePolicy.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 OnmsIpInterfaceact(OnmsIpInterface iface, Map<String,Object> attributes)actStringgetAction()getActionStringgetHostName()getHostNameStringgetIpAddress()getIpAddressvoidsetAction(String action)setActionvoidsetHostName(String hostName)setHostNamevoidsetIpAddress(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:
actin 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- aStringobject.
-
setHostName
public void setHostName(String hostName)
setHostName
- Parameters:
hostName- aStringobject.
-
-