|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.provision.service.DefaultProvisionService
@Service public class DefaultProvisionService
DefaultProvisionService
| Constructor Summary | |
|---|---|
DefaultProvisionService()
|
|
| Method Summary | ||
|---|---|---|
OnmsMonitoredService |
addMonitoredService(Integer ipInterfaceId,
String svcName)
|
|
OnmsMonitoredService |
addMonitoredService(Integer nodeId,
String ipAddress,
String svcName)
|
|
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. |
|
void |
deleteNode(Integer nodeId)
Delete the indicated node form the database. |
|
void |
deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
|
|
List<ServiceDetector> |
getDetectorsForForeignSource(String foreignSourceName)
|
|
Map<String,Integer> |
getForeignIdToNodeIdMap(String foreignSource)
Creates a map of foreignIds to nodeIds for all nodes that have the indicated foreignSorce. |
|
ForeignSourceRepository |
getForeignSourceRepository()
|
|
List<IpInterfacePolicy> |
getIpInterfacePoliciesForForeignSource(String foreignSourceName)
|
|
List<NodePolicy> |
getNodePoliciesForForeignSource(String foreignSourceName)
|
|
|
getPluginsForForeignSource(Class<T> pluginClass,
String foreignSourceName)
|
|
OnmsNode |
getRequisitionedNode(String foreignSource,
String foreignId)
|
|
NodeScanSchedule |
getScheduleForNode(int nodeId,
boolean force)
|
|
List<NodeScanSchedule> |
getScheduleForNodes()
Returns a list of scheduled nodes. |
|
List<SnmpInterfacePolicy> |
getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
|
|
void |
insertNode(OnmsNode node)
Insert the provided node into the database |
|
Requisition |
loadRequisition(org.springframework.core.io.Resource resource)
|
|
void |
setForeignSourceRepository(ForeignSourceRepository foriengSourceRepository)
|
|
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 scannedIface)
|
|
void |
updateNode(OnmsNode node)
Update the database entry for the given node. |
|
OnmsNode |
updateNodeAttributes(OnmsNode node)
|
|
void |
updateNodeScanStamp(Integer nodeId,
Date scanStamp)
|
|
OnmsSnmpInterface |
updateSnmpInterfaceAttributes(Integer nodeId,
OnmsSnmpInterface snmpInterface)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultProvisionService()
| Method Detail |
|---|
@Transactional public void insertNode(OnmsNode node)
ProvisionService
insertNode in interface ProvisionService@Transactional public void updateNode(OnmsNode node)
ProvisionService
updateNode in interface ProvisionServicenode - The node that has been updated and should be written to the
database@Transactional public void deleteNode(Integer nodeId)
ProvisionService
deleteNode in interface ProvisionService
public OnmsIpInterface updateIpInterfaceAttributes(Integer nodeId,
OnmsIpInterface scannedIface)
updateIpInterfaceAttributes in interface ProvisionService
public OnmsSnmpInterface updateSnmpInterfaceAttributes(Integer nodeId,
OnmsSnmpInterface snmpInterface)
updateSnmpInterfaceAttributes in interface ProvisionService
public OnmsMonitoredService addMonitoredService(Integer ipInterfaceId,
String svcName)
addMonitoredService in interface ProvisionService
public OnmsMonitoredService addMonitoredService(Integer nodeId,
String ipAddress,
String svcName)
addMonitoredService in interface ProvisionServicepublic void clearCache()
ProvisionService
clearCache in interface ProvisionService
@Transactional
public OnmsDistPoller createDistPollerIfNecessary(String dpName,
String dpAddr)
ProvisionService
createDistPollerIfNecessary in interface ProvisionServicedpName - The name of the distPoller that is neededdpAddr - The address to give the new distPoller if it is necessary to
create one
@Transactional
public OnmsNode getRequisitionedNode(String foreignSource,
String foreignId)
throws ForeignSourceRepositoryException
getRequisitionedNode in interface ProvisionServiceForeignSourceRepositoryException@Transactional public OnmsServiceType createServiceTypeIfNecessary(String serviceName)
ProvisionService
createServiceTypeIfNecessary in interface ProvisionServiceserviceName - the name of the OnmsServiceType to look up
@Transactional public OnmsCategory createCategoryIfNecessary(String name)
ProvisionService
createCategoryIfNecessary in interface ProvisionServicename - the name of the OnmsCategory to look up
@Transactional(readOnly=true) public Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
ProvisionService
getForeignIdToNodeIdMap in interface ProvisionService
@Transactional
public void setNodeParentAndDependencies(String foreignSource,
String foreignId,
String parentForeignId,
String parentNodeLabel)
ProvisionService
setNodeParentAndDependencies in interface ProvisionServiceforeignSource - 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 made
public NodeScanSchedule getScheduleForNode(int nodeId,
boolean force)
getScheduleForNode in interface ProvisionServicepublic List<NodeScanSchedule> getScheduleForNodes()
ProvisionService
getScheduleForNodes in interface ProvisionServicepublic void setForeignSourceRepository(ForeignSourceRepository foriengSourceRepository)
setForeignSourceRepository in interface ProvisionServicepublic ForeignSourceRepository getForeignSourceRepository()
public Requisition loadRequisition(org.springframework.core.io.Resource resource)
loadRequisition in interface ProvisionServicepublic OnmsNode updateNodeAttributes(OnmsNode node)
updateNodeAttributes in interface ProvisionServicepublic List<ServiceDetector> getDetectorsForForeignSource(String foreignSourceName)
getDetectorsForForeignSource in interface ProvisionServicepublic List<NodePolicy> getNodePoliciesForForeignSource(String foreignSourceName)
getNodePoliciesForForeignSource in interface ProvisionServicepublic List<IpInterfacePolicy> getIpInterfacePoliciesForForeignSource(String foreignSourceName)
getIpInterfacePoliciesForForeignSource in interface ProvisionServicepublic List<SnmpInterfacePolicy> getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
getSnmpInterfacePoliciesForForeignSource in interface ProvisionService
public <T> List<T> getPluginsForForeignSource(Class<T> pluginClass,
String foreignSourceName)
public void deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces in interface ProvisionService
public void updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp in interface ProvisionService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||