|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProvisionService
ProvisionService interface.
| Method Summary | |
|---|---|
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)
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,
String ipAddr,
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 |
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 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)
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 |
| Method Detail |
|---|
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)
node - The node that has been updated and should be written to the
database@Transactional OnmsNode updateNodeAttributes(OnmsNode node)
updateNodeAttributes
node - a OnmsNode object.
OnmsNode object.@Transactional OnmsNode getDbNodeInitCat(Integer nodeId)
getDbNodeInitCat
nodeId - a Integer object.
OnmsNode object.
@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
OnmsNode getRequisitionedNode(String foreignSource,
String foreignId)
getRequisitionedNode
foreignSource - a String object.foreignId - a String object.
OnmsNode object.@Transactional void deleteNode(Integer nodeId)
nodeId - a Integer object.
@Transactional
void deleteInterface(Integer nodeId,
String ipAddr)
deleteInterface
nodeId - a Integer object.ipAddr - a String object.
@Transactional
void deleteService(Integer nodeId,
String ipAddr,
String service)
deleteService
nodeId - a Integer object.ipAddr - a String object.service - a String object.@Transactional void insertNode(OnmsNode node)
node - a OnmsNode object.@Transactional OnmsServiceType createServiceTypeIfNecessary(String serviceName)
serviceName - the name of the OnmsServiceType to look up
@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 OnmsCategory createCategoryIfNecessary(String name)
name - the name of the OnmsCategory to look up
@Transactional(readOnly=true) Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
foreignSource - a String object.
Map object.
@Transactional
void setNodeParentAndDependencies(String foreignSource,
String foreignId,
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
foreignSource - a String object.
List object.List<NodePolicy> getNodePoliciesForForeignSource(String foreignSourceName)
getNodePoliciesForForeignSource
foreignSourceName - a String object.
List object.List<IpInterfacePolicy> getIpInterfacePoliciesForForeignSource(String foreignSourceName)
getIpInterfacePoliciesForForeignSource
foreignSourceName - a String object.
List object.List<SnmpInterfacePolicy> getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
getSnmpInterfacePoliciesForForeignSource
foreignSourceName - a String object.
List object.
@Transactional
void updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp
nodeId - a Integer object.scanStamp - a Date object.
@Transactional
void deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces
nodeId - a Integer object.scanStamp - a Date object.
@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)
createUndiscoveredNode
ipAddress - a String object.
OnmsNode object.@Transactional OnmsNode getNode(Integer nodeId)
getNode
nodeId - a Integer object.
OnmsNode object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||