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, java.util.Map<java.lang.String,java.lang.Object> attributes)
actjava.lang.String
getAction()
getActionjava.lang.String
getHostName()
getHostNamejava.lang.String
getIpAddress()
getIpAddressvoid
setAction(java.lang.String action)
setActionvoid
setHostName(java.lang.String hostName)
setHostNamevoid
setIpAddress(java.lang.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
-
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 OnmsIpInterface act(OnmsIpInterface iface, java.util.Map<java.lang.String,java.lang.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(java.lang.String ipAddress)
setIpAddress
- Parameters:
ipAddress
- aString
object.
-
getIpAddress
public java.lang.String getIpAddress()
getIpAddress
- Returns:
- a
String
object.
-
setHostName
public void setHostName(java.lang.String hostName)
setHostName
- Parameters:
hostName
- aString
object.
-
getHostName
public java.lang.String getHostName()
getHostName
- Returns:
- a
String
object.
-
-