Class InterfaceMetadataSettingPolicy
- java.lang.Object
-
- org.opennms.netmgt.provision.BasePolicy<OnmsIpInterface>
-
- org.opennms.netmgt.provision.persist.policies.InterfaceMetadataSettingPolicy
-
- All Implemented Interfaces:
IpInterfacePolicy
,OnmsPolicy
@Component @Scope("prototype") public class InterfaceMetadataSettingPolicy extends BasePolicy<OnmsIpInterface> implements IpInterfacePolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.BasePolicy
BasePolicy.Match
-
-
Constructor Summary
Constructors Constructor Description InterfaceMetadataSettingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsIpInterface
act(OnmsIpInterface iface, Map<String,Object> attributes)
actString
getHostName()
getHostNameString
getIpAddress()
getIpAddressString
getMetadataContext()
String
getMetadataKey()
String
getMetadataValue()
void
setHostName(String hostName)
setHostNamevoid
setIpAddress(String ipAddress)
setIpAddressvoid
setMetadataContext(String metadataContext)
void
setMetadataKey(String metadataKey)
void
setMetadataValue(String metadataValue)
-
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)
Description copied from class:BasePolicy
act
- Specified by:
act
in classBasePolicy<OnmsIpInterface>
- Parameters:
iface
- a T object.attributes
- that can be set on script.- Returns:
- a T object.
-
setMetadataKey
public void setMetadataKey(String metadataKey)
-
getMetadataKey
public String getMetadataKey()
-
setMetadataValue
public void setMetadataValue(String metadataValue)
-
getMetadataValue
public String getMetadataValue()
-
setMetadataContext
public void setMetadataContext(String metadataContext)
-
getMetadataContext
public String getMetadataContext()
-
setIpAddress
public void setIpAddress(String ipAddress)
setIpAddress
- Parameters:
ipAddress
- aString
object.
-
setHostName
public void setHostName(String hostName)
setHostName
- Parameters:
hostName
- aString
object.
-
-