Package org.opennms.netmgt.model
Class NetworkBuilder
- java.lang.Object
-
- org.opennms.netmgt.model.NetworkBuilder
-
public class NetworkBuilder extends java.lang.Object
NetworkBuilder class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkBuilder.InterfaceBuilder
static class
NetworkBuilder.NodeBuilder
-
Constructor Summary
Constructors Constructor Description NetworkBuilder()
Constructor for NetworkBuilder.NetworkBuilder(OnmsDistPoller distPoller)
Constructor for NetworkBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCategory(java.lang.String categoryName)
addCategoryvoid
addCategory(OnmsCategory cat)
addCategoryNetworkBuilder.InterfaceBuilder
addInterface(java.lang.String ipAddr)
NetworkBuilder.InterfaceBuilder
addInterface(java.lang.String ipAddr, OnmsSnmpInterface snmpInterface)
addInterfaceNetworkBuilder.InterfaceBuilder
addInterface(java.net.InetAddress ipAddr)
NetworkBuilder.NodeBuilder
addNode(java.lang.String label)
addNodeOnmsMonitoredService
addService(java.lang.String serviceName)
addServiceOnmsMonitoredService
addService(OnmsServiceType serviceType)
addServiceSnmpInterfaceBuilder
addSnmpInterface(int ifIndex)
addSnmpInterfacevoid
clearInterface()
clearInterfaceOnmsCategory
getCategory(java.lang.String categoryName)
OnmsNode
getCurrentNode()
getCurrentNodeOnmsDistPoller
getDistPoller()
OnmsMonitoringLocation
getLocation()
OnmsServiceType
getServiceType(java.lang.String serviceName)
void
setAssetAttribute(java.lang.String name, java.lang.String value)
setAssetAttributevoid
setBuilding(java.lang.String building)
setBuildingvoid
setDisplayCategory(java.lang.String displayCategory)
setDisplayCategoryvoid
setInterfaceMetaDataEntry(java.lang.String context, java.lang.String key, java.lang.String value)
void
setNodeMetaDataEntry(java.lang.String context, java.lang.String key, java.lang.String value)
void
setServiceMetaDataEntry(java.lang.String context, java.lang.String key, java.lang.String value)
-
-
-
Constructor Detail
-
NetworkBuilder
public NetworkBuilder(OnmsDistPoller distPoller)
Constructor for NetworkBuilder.
- Parameters:
distPoller
- aOnmsDistPoller
object.
-
NetworkBuilder
public NetworkBuilder()
Constructor for NetworkBuilder.
- Parameters:
distPollerId
- aString
object.
-
-
Method Detail
-
getLocation
public OnmsMonitoringLocation getLocation()
-
getDistPoller
public OnmsDistPoller getDistPoller()
-
addNode
public NetworkBuilder.NodeBuilder addNode(java.lang.String label)
addNode
- Parameters:
label
- aString
object.- Returns:
- a
NetworkBuilder.NodeBuilder
object.
-
addInterface
public NetworkBuilder.InterfaceBuilder addInterface(java.lang.String ipAddr)
-
addInterface
public NetworkBuilder.InterfaceBuilder addInterface(java.net.InetAddress ipAddr)
-
addInterface
public NetworkBuilder.InterfaceBuilder addInterface(java.lang.String ipAddr, OnmsSnmpInterface snmpInterface)
addInterface
- Parameters:
ipAddr
- aString
object.snmpInterface
- aOnmsSnmpInterface
object.- Returns:
- a
NetworkBuilder.InterfaceBuilder
object.
-
addSnmpInterface
public SnmpInterfaceBuilder addSnmpInterface(int ifIndex)
addSnmpInterface
- Parameters:
ifIndex
- a int.- Returns:
- a
SnmpInterfaceBuilder
object.
-
addService
public OnmsMonitoredService addService(OnmsServiceType serviceType)
addService
- Parameters:
serviceType
- aOnmsServiceType
object.- Returns:
- a
OnmsMonitoredService
object.
-
setDisplayCategory
public void setDisplayCategory(java.lang.String displayCategory)
setDisplayCategory
- Parameters:
displayCategory
- aString
object.
-
setBuilding
public void setBuilding(java.lang.String building)
setBuilding
- Parameters:
building
- aString
object.
-
addCategory
public void addCategory(OnmsCategory cat)
addCategory
- Parameters:
cat
- aOnmsCategory
object.
-
addCategory
public void addCategory(java.lang.String categoryName)
addCategory
- Parameters:
categoryName
- aString
object.
-
clearInterface
public void clearInterface()
clearInterface
-
addService
public OnmsMonitoredService addService(java.lang.String serviceName)
addService
- Parameters:
serviceName
- aString
object.- Returns:
- a
OnmsMonitoredService
object.
-
setAssetAttribute
public void setAssetAttribute(java.lang.String name, java.lang.String value)
setAssetAttribute
- Parameters:
name
- aString
object.value
- aString
object.
-
setNodeMetaDataEntry
public void setNodeMetaDataEntry(java.lang.String context, java.lang.String key, java.lang.String value)
-
setInterfaceMetaDataEntry
public void setInterfaceMetaDataEntry(java.lang.String context, java.lang.String key, java.lang.String value)
-
setServiceMetaDataEntry
public void setServiceMetaDataEntry(java.lang.String context, java.lang.String key, java.lang.String value)
-
getServiceType
public OnmsServiceType getServiceType(java.lang.String serviceName)
-
getCategory
public OnmsCategory getCategory(java.lang.String categoryName)
-
-