|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProvisionService
| Method Summary | |
|---|---|
OnmsMonitoredService |
addMonitoredService(Integer ipInterfaceId,
String svcName)
|
OnmsMonitoredService |
addMonitoredService(Integer nodeId,
String ipAddress,
String serviceName)
|
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 foreignSource)
|
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)
|
List<NodePolicy> |
getNodePoliciesForForeignSource(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 ipInterface)
|
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)
|
| Method Detail |
|---|
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)
@Transactional
OnmsIpInterface updateIpInterfaceAttributes(Integer nodeId,
OnmsIpInterface ipInterface)
@Transactional
OnmsSnmpInterface updateSnmpInterfaceAttributes(Integer nodeId,
OnmsSnmpInterface snmpInterface)
@Transactional
OnmsMonitoredService addMonitoredService(Integer ipInterfaceId,
String svcName)
@Transactional
OnmsMonitoredService addMonitoredService(Integer nodeId,
String ipAddress,
String serviceName)
@Transactional
OnmsNode getRequisitionedNode(String foreignSource,
String foreignId)
@Transactional void deleteNode(Integer nodeId)
@Transactional void insertNode(OnmsNode node)
@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 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()
NodeScanSchedule getScheduleForNode(int nodeId,
boolean force)
void setForeignSourceRepository(ForeignSourceRepository foriengSourceRepository)
Requisition loadRequisition(org.springframework.core.io.Resource resource)
foreignSource - resource -
List<ServiceDetector> getDetectorsForForeignSource(String foreignSource)
List<NodePolicy> getNodePoliciesForForeignSource(String foreignSourceName)
List<IpInterfacePolicy> getIpInterfacePoliciesForForeignSource(String foreignSourceName)
List<SnmpInterfacePolicy> getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
void updateNodeScanStamp(Integer nodeId,
Date scanStamp)
void deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||