Class IpInterfaceScan
- java.lang.Object
-
- org.opennms.netmgt.provision.service.IpInterfaceScan
-
- All Implemented Interfaces:
RunInBatch
public class IpInterfaceScan extends java.lang.Object implements RunInBatch
IpInterfaceScan class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description IpInterfaceScan(java.lang.Integer nodeId, java.net.InetAddress address, java.lang.String foreignSource, OnmsMonitoringLocation location, ProvisionService provisionService, io.opentracing.Span span)
Constructor for IpInterfaceScan.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static AbstractTask
createDetectorTask(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, java.net.InetAddress address, OnmsMonitoringLocation location, io.opentracing.Span span, java.util.concurrent.CompletableFuture<java.lang.Boolean> future)
protected static java.lang.String
generateExpr(java.lang.String basicExpr)
java.net.InetAddress
getAddress()
getAddressjava.lang.String
getForeignSource()
getForeignSourceOnmsMonitoringLocation
getLocation()
java.lang.Integer
getNodeId()
getNodeIdProvisionService
getProvisionService()
getProvisionServiceprotected static boolean
isIpMatching(java.net.InetAddress ip, java.lang.String expr)
void
run(BatchTask currentPhase)
runstatic Callback<java.lang.Boolean>
servicePersister(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, java.net.InetAddress address, java.util.concurrent.CompletableFuture<java.lang.Boolean> future)
servicePersisterprotected static boolean
shouldDetect(PluginConfig detectorConfig, java.net.InetAddress address)
java.lang.String
toString()
toString
-
-
-
Constructor Detail
-
IpInterfaceScan
public IpInterfaceScan(java.lang.Integer nodeId, java.net.InetAddress address, java.lang.String foreignSource, OnmsMonitoringLocation location, ProvisionService provisionService, io.opentracing.Span span)
Constructor for IpInterfaceScan.
- Parameters:
nodeId
- aInteger
object.address
- aInetAddress
object.foreignSource
- aString
object.location
- aOnmsMonitoringLocation
object.provisionService
- aProvisionService
object.
-
-
Method Detail
-
getForeignSource
public java.lang.String getForeignSource()
getForeignSource
- Returns:
- a
String
object.
-
getNodeId
public java.lang.Integer getNodeId()
getNodeId
- Returns:
- a
Integer
object.
-
getLocation
public OnmsMonitoringLocation getLocation()
-
getAddress
public java.net.InetAddress getAddress()
getAddress
- Returns:
- a
InetAddress
object.
-
getProvisionService
public ProvisionService getProvisionService()
getProvisionService
- Returns:
- a
ProvisionService
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
servicePersister
public static Callback<java.lang.Boolean> servicePersister(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, java.net.InetAddress address, java.util.concurrent.CompletableFuture<java.lang.Boolean> future)
servicePersister
-
createDetectorTask
protected static AbstractTask createDetectorTask(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, java.net.InetAddress address, OnmsMonitoringLocation location, io.opentracing.Span span, java.util.concurrent.CompletableFuture<java.lang.Boolean> future)
-
run
public void run(BatchTask currentPhase)
run
- Specified by:
run
in interfaceRunInBatch
- Parameters:
currentPhase
- aBatchTask
object.
-
shouldDetect
protected static boolean shouldDetect(PluginConfig detectorConfig, java.net.InetAddress address)
-
isIpMatching
protected static boolean isIpMatching(java.net.InetAddress ip, java.lang.String expr)
-
generateExpr
protected static java.lang.String generateExpr(java.lang.String basicExpr)
-
-