@Component @Scope(value="prototype") public class InterfaceMetadataSettingPolicy extends BasePolicy<OnmsIpInterface> implements IpInterfacePolicy
BasePolicy.Match
Constructor and Description |
---|
InterfaceMetadataSettingPolicy() |
Modifier and Type | Method and Description |
---|---|
OnmsIpInterface |
act(OnmsIpInterface iface,
Map<String,Object> attributes)
act
|
String |
getHostName()
getHostName
|
String |
getIpAddress()
getIpAddress
|
String |
getMetadataContext() |
String |
getMetadataKey() |
String |
getMetadataValue() |
void |
setHostName(String hostName)
setHostName
|
void |
setIpAddress(String ipAddress)
setIpAddress
|
void |
setMetadataContext(String metadataContext) |
void |
setMetadataKey(String metadataKey) |
void |
setMetadataValue(String metadataValue) |
apply, getCriteria, getCriteria, getMatch, getMatchBehavior, match, matches, putCriteria, setMatch, setMatchBehavior
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public OnmsIpInterface act(OnmsIpInterface iface, Map<String,Object> attributes)
BasePolicy
act
act
in class BasePolicy<OnmsIpInterface>
iface
- a T object.attributes
- that can be set on script.public void setMetadataKey(String metadataKey)
public String getMetadataKey()
public void setMetadataValue(String metadataValue)
public String getMetadataValue()
public void setMetadataContext(String metadataContext)
public String getMetadataContext()
public void setIpAddress(String ipAddress)
setIpAddress
ipAddress
- a String
object.public void setHostName(String hostName)
setHostName
hostName
- a String
object.Copyright © 2021. All rights reserved.