public interface ProvisionService
ProvisionService interface.
Modifier and Type | Method and Description |
---|---|
OnmsMonitoredService |
addMonitoredService(Integer ipInterfaceId,
String svcName)
addMonitoredService
|
OnmsMonitoredService |
addMonitoredService(Integer nodeId,
String ipAddress,
String serviceName)
addMonitoredService
|
void |
clearCache()
Clear the Hibernate object cache.
|
OnmsCategory |
createCategoryIfNecessary(String name)
Look up the OnmsCategory with the give name, creating one if none
exists.
|
OnmsDistPoller |
createDistPollerIfNecessary(String dpName,
String dpAddr)
Lookup a distPoller in the database, creating it if necessary.
|
OnmsServiceType |
createServiceTypeIfNecessary(String serviceName)
Look up the OnmsServiceType with the given name, creating one if it
doesn't exist.
|
OnmsNode |
createUndiscoveredNode(String ipAddress,
String foreignSource)
createUndiscoveredNode
|
void |
deleteInterface(Integer nodeId,
String ipAddr)
deleteInterface
|
void |
deleteNode(Integer nodeId)
Delete the indicated node form the database.
|
void |
deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces
|
void |
deleteService(Integer nodeId,
InetAddress addr,
String service)
deleteService
|
OnmsNode |
getDbNodeInitCat(Integer nodeId)
getDbNodeInitCat
|
List<ServiceDetector> |
getDetectorsForForeignSource(String foreignSource)
getDetectorsForForeignSource
|
Map<String,Integer> |
getForeignIdToNodeIdMap(String foreignSource)
Creates a map of foreignIds to nodeIds for all nodes that have the indicated foreignSorce.
|
List<IpInterfacePolicy> |
getIpInterfacePoliciesForForeignSource(String foreignSourceName)
getIpInterfacePoliciesForForeignSource
|
OnmsNode |
getNode(Integer nodeId)
getNode
|
List<NodePolicy> |
getNodePoliciesForForeignSource(String foreignSourceName)
getNodePoliciesForForeignSource
|
OnmsIpInterface |
getPrimaryInterfaceForNode(OnmsNode node)
getPrimaryInterfaceForNode
|
OnmsNode |
getRequisitionedNode(String foreignSource,
String foreignId)
getRequisitionedNode
|
NodeScanSchedule |
getScheduleForNode(int nodeId,
boolean force)
getScheduleForNode
|
List<NodeScanSchedule> |
getScheduleForNodes()
Returns a list of scheduled nodes.
|
List<SnmpInterfacePolicy> |
getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
getSnmpInterfacePoliciesForForeignSource
|
void |
insertNode(OnmsNode node)
Insert the provided node into the database
|
boolean |
isDiscoveryEnabled()
isDiscoveryEnabled
|
boolean |
isRequisitionedEntityDeletionEnabled() |
Requisition |
loadRequisition(org.springframework.core.io.Resource resource)
loadRequisition
|
void |
setForeignSourceRepository(ForeignSourceRepository foriengSourceRepository)
setForeignSourceRepository
|
OnmsIpInterface |
setIsPrimaryFlag(Integer nodeId,
String ipAddress)
setIsPrimaryFlag
|
void |
setNodeParentAndDependencies(String foreignSource,
String foreignId,
String parentForeignSource,
String parentForeignId,
String parentNodeLabel)
Sets the parent of the node and adds the relationship to the path
element for the node.
|
OnmsIpInterface |
updateIpInterfaceAttributes(Integer nodeId,
OnmsIpInterface ipInterface)
updateIpInterfaceAttributes
|
OnmsMonitoredService |
updateMonitoredServiceState(Integer nodeId,
String ipAddress,
String serviceName)
updateMonitoredServiceState
|
void |
updateNode(OnmsNode node,
String rescanExisting)
Update the database entry for the given node.
|
OnmsNode |
updateNodeAttributes(OnmsNode node)
updateNodeAttributes
|
void |
updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp
|
OnmsSnmpInterface |
updateSnmpInterfaceAttributes(Integer nodeId,
OnmsSnmpInterface snmpInterface)
updateSnmpInterfaceAttributes
|
boolean isRequisitionedEntityDeletionEnabled()
boolean isDiscoveryEnabled()
isDiscoveryEnabled
void clearCache()
@Transactional OnmsDistPoller createDistPollerIfNecessary(String dpName, String dpAddr)
dpName
- The name of the distPoller that is neededdpAddr
- The address to give the new distPoller if it is necessary to
create one@Transactional void updateNode(OnmsNode node, String rescanExisting)
node
- The node that has been updated and should be written to the
databaserescanExisting
- true, if the node must be rescanned.
false, if the node should not be rescanned (perform only add/delete operations on the DB)
dbonly, if the node should not be rescanned (perform all DB operations)@Transactional OnmsNode updateNodeAttributes(OnmsNode node)
updateNodeAttributes
@Transactional OnmsIpInterface updateIpInterfaceAttributes(Integer nodeId, OnmsIpInterface ipInterface)
updateIpInterfaceAttributes
nodeId
- a Integer
object.ipInterface
- a OnmsIpInterface
object.OnmsIpInterface
object.@Transactional OnmsSnmpInterface updateSnmpInterfaceAttributes(Integer nodeId, OnmsSnmpInterface snmpInterface)
updateSnmpInterfaceAttributes
nodeId
- a Integer
object.snmpInterface
- a OnmsSnmpInterface
object.OnmsSnmpInterface
object.@Transactional OnmsMonitoredService addMonitoredService(Integer ipInterfaceId, String svcName)
addMonitoredService
ipInterfaceId
- a Integer
object.svcName
- a String
object.OnmsMonitoredService
object.@Transactional OnmsMonitoredService addMonitoredService(Integer nodeId, String ipAddress, String serviceName)
addMonitoredService
nodeId
- a Integer
object.ipAddress
- a String
object.serviceName
- a String
object.OnmsMonitoredService
object.@Transactional OnmsMonitoredService updateMonitoredServiceState(Integer nodeId, String ipAddress, String serviceName)
updateMonitoredServiceState
nodeId
- a Integer
object.ipAddress
- a String
object.serviceName
- a String
object.OnmsMonitoredService
object.@Transactional OnmsNode getRequisitionedNode(String foreignSource, String foreignId)
getRequisitionedNode
@Transactional void deleteNode(Integer nodeId)
nodeId
- a Integer
object.@Transactional void deleteService(Integer nodeId, InetAddress addr, String service)
deleteService
@Transactional void insertNode(OnmsNode node)
node
- a OnmsNode
object.@Transactional OnmsServiceType createServiceTypeIfNecessary(String serviceName)
serviceName
- the name of the OnmsServiceType to look up@Transactional OnmsCategory createCategoryIfNecessary(String name)
name
- the name of the OnmsCategory to look up@Transactional(readOnly=true) Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
@Transactional void setNodeParentAndDependencies(String foreignSource, String foreignId, String parentForeignSource, String parentForeignId, String parentNodeLabel)
foreignSource
- the foreignSource to use when looking for the nodeId and
parentNodeId by foreignId.foreignId
- the foreignId for the node being setparentForeignId
- the foreignId of the parent nodeparentNodeLabel
- if the parent node cannot be found using its
foreignId then an attempt to locate it using the its nodeLabel
is madeList<NodeScanSchedule> getScheduleForNodes()
List
object.NodeScanSchedule getScheduleForNode(int nodeId, boolean force)
getScheduleForNode
nodeId
- a int.force
- a boolean.NodeScanSchedule
object.void setForeignSourceRepository(ForeignSourceRepository foriengSourceRepository)
setForeignSourceRepository
foriengSourceRepository
- a ForeignSourceRepository
object.Requisition loadRequisition(org.springframework.core.io.Resource resource)
loadRequisition
resource
- a Resource
object.Requisition
object.List<ServiceDetector> getDetectorsForForeignSource(String foreignSource)
getDetectorsForForeignSource
List<NodePolicy> getNodePoliciesForForeignSource(String foreignSourceName)
getNodePoliciesForForeignSource
List<IpInterfacePolicy> getIpInterfacePoliciesForForeignSource(String foreignSourceName)
getIpInterfacePoliciesForForeignSource
List<SnmpInterfacePolicy> getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
getSnmpInterfacePoliciesForForeignSource
@Transactional void updateNodeScanStamp(Integer nodeId, Date scanStamp)
updateNodeScanStamp
@Transactional void deleteObsoleteInterfaces(Integer nodeId, Date scanStamp)
deleteObsoleteInterfaces
@Transactional OnmsIpInterface setIsPrimaryFlag(Integer nodeId, String ipAddress)
setIsPrimaryFlag
nodeId
- a Integer
object.ipAddress
- a String
object.OnmsIpInterface
object.@Transactional OnmsIpInterface getPrimaryInterfaceForNode(OnmsNode node)
getPrimaryInterfaceForNode
node
- a OnmsNode
object.OnmsIpInterface
object.@Transactional OnmsNode createUndiscoveredNode(String ipAddress, String foreignSource)
createUndiscoveredNode
Copyright © 2015. All rights reserved.