public interface ProvisionService
Modifier and Type | Field and Description |
---|---|
static String |
ABORT |
static String |
DETECTOR_NAME |
static String |
ERROR |
static String |
FOREIGN_ID |
static String |
FOREIGN_SOURCE |
static String |
IP_ADDRESS |
static String |
LOCATION |
static String |
NODE_ID |
static final String NODE_ID
static final String LOCATION
static final String IP_ADDRESS
static final String FOREIGN_ID
static final String FOREIGN_SOURCE
static final String DETECTOR_NAME
static final String ABORT
static final String ERROR
boolean isDiscoveryEnabled()
void clearCache()
@Transactional OnmsMonitoringLocation createLocationIfNecessary(String locationId)
OnmsMonitoringLocation
object with the ID 'locationId' in the
database and returns it. If there is no OnmsMonitoringLocation
with that name then
one is created using the name provided, saved in the database, and returned.locationId
- The ID of the OnmsMonitoringLocation
that is neededOnmsMonitoringLocation
that will be saved to the database when the
transaction is committed.@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, boolean ignoreUnmanaged)
nodeId
- the node containing the serviceaddr
- the IP address containing the serviceservice
- the service to deleteignoreUnmanaged
- if true, cascade delete the containing interface if only unmanaged services remain@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<PluginConfig> 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, String location)
HostnameResolver getHostnameResolver()
void setHostnameResolver(HostnameResolver resolver)
LocationAwareDetectorClient getLocationAwareDetectorClient()
LocationAwareSnmpClient getLocationAwareSnmpClient()
LocationAwareDnsLookupClient getLocationAwareDnsLookupClient()
SnmpProfileMapper getSnmpProfileMapper()
void setSnmpProfileMapper(SnmpProfileMapper snmpProfileMapper)
void setTracer(io.opentracing.Tracer tracer)
io.opentracing.Span buildAndStartSpan(String name, io.opentracing.SpanContext spanContext)
Copyright © 2021. All rights reserved.