org.opennms.netmgt.provision.persist.policies
Class MatchingIpInterfacePolicy

java.lang.Object
  extended by org.opennms.netmgt.provision.BasePolicy<OnmsIpInterface>
      extended by org.opennms.netmgt.provision.persist.policies.MatchingIpInterfacePolicy
All Implemented Interfaces:
IpInterfacePolicy, OnmsPolicy

@Component
@Scope(value="prototype")
public class MatchingIpInterfacePolicy
extends BasePolicy<OnmsIpInterface>
implements IpInterfacePolicy


Nested Class Summary
static class MatchingIpInterfacePolicy.Action
           
 
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.BasePolicy
BasePolicy.Match
 
Constructor Summary
MatchingIpInterfacePolicy()
           
 
Method Summary
 OnmsIpInterface act(OnmsIpInterface iface)
          act
 String getAction()
          getAction
 String getHostName()
          getHostName
 String getIpAddress()
          getIpAddress
 void setAction(String action)
          setAction
 void setHostName(String hostName)
          setHostName
 void 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
 

Constructor Detail

MatchingIpInterfacePolicy

public MatchingIpInterfacePolicy()
Method Detail

getAction

public String getAction()

getAction

Returns:
a String object.

setAction

public void setAction(String action)

setAction

Parameters:
action - a String object.

act

public OnmsIpInterface act(OnmsIpInterface iface)

act

Specified by:
act in class BasePolicy<OnmsIpInterface>
Parameters:
iface - a T object.
Returns:
a T object.

setIpAddress

public void setIpAddress(String ipAddress)

setIpAddress

Parameters:
ipAddress - a String object.

getIpAddress

public String getIpAddress()

getIpAddress

Returns:
a String object.

setHostName

public void setHostName(String hostName)

setHostName

Parameters:
hostName - a String object.

getHostName

public String getHostName()

getHostName

Returns:
a String object.


Copyright © 2011. All Rights Reserved.