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, java.util.Map<java.lang.String,java.lang.Object> attributes)
actjava.lang.String
getHostName()
getHostNamejava.lang.String
getIpAddress()
getIpAddressjava.lang.String
getMetadataContext()
java.lang.String
getMetadataKey()
java.lang.String
getMetadataValue()
void
setHostName(java.lang.String hostName)
setHostNamevoid
setIpAddress(java.lang.String ipAddress)
setIpAddressvoid
setMetadataContext(java.lang.String metadataContext)
void
setMetadataKey(java.lang.String metadataKey)
void
setMetadataValue(java.lang.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, java.util.Map<java.lang.String,java.lang.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(java.lang.String metadataKey)
-
getMetadataKey
public java.lang.String getMetadataKey()
-
setMetadataValue
public void setMetadataValue(java.lang.String metadataValue)
-
getMetadataValue
public java.lang.String getMetadataValue()
-
setMetadataContext
public void setMetadataContext(java.lang.String metadataContext)
-
getMetadataContext
public java.lang.String getMetadataContext()
-
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.
-
-