public interface ProvisionService
boolean isRequisitionedEntityDeletionEnabled()
boolean 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 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 OnmsMonitoredService updateMonitoredServiceState(Integer nodeId, String ipAddress, String serviceName)
@Transactional OnmsNode getRequisitionedNode(String foreignSource, String foreignId)
@Transactional void deleteNode(Integer nodeId)
@Transactional void deleteService(Integer nodeId, InetAddress addr, String service)
@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 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()
NodeScanSchedule getScheduleForNode(int nodeId, boolean force)
void setForeignSourceRepository(ForeignSourceRepository foriengSourceRepository)
Requisition loadRequisition(org.springframework.core.io.Resource resource)
List<ServiceDetector> getDetectorsForForeignSource(String foreignSource)
List<NodePolicy> getNodePoliciesForForeignSource(String foreignSourceName)
List<IpInterfacePolicy> getIpInterfacePoliciesForForeignSource(String foreignSourceName)
List<SnmpInterfacePolicy> getSnmpInterfacePoliciesForForeignSource(String foreignSourceName)
@Transactional void deleteObsoleteInterfaces(Integer nodeId, Date scanStamp)
@Transactional OnmsIpInterface setIsPrimaryFlag(Integer nodeId, String ipAddress)
@Transactional OnmsIpInterface getPrimaryInterfaceForNode(OnmsNode node)
@Transactional OnmsNode createUndiscoveredNode(String ipAddress, String foreignSource)
HostnameResolver getHostnameResolver()
void setHostnameResolver(HostnameResolver resolver)
Copyright © 2015. All rights reserved.