Class IpInterfaceScan
- java.lang.Object
-
- org.opennms.netmgt.provision.service.IpInterfaceScan
-
- All Implemented Interfaces:
RunInBatch
public class IpInterfaceScan extends Object implements RunInBatch
IpInterfaceScan class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description IpInterfaceScan(Integer nodeId, InetAddress address, 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, InetAddress address, OnmsMonitoringLocation location, io.opentracing.Span span, CompletableFuture<Boolean> future)
protected static String
generateExpr(String basicExpr)
InetAddress
getAddress()
getAddressString
getForeignSource()
getForeignSourceOnmsMonitoringLocation
getLocation()
Integer
getNodeId()
getNodeIdProvisionService
getProvisionService()
getProvisionServiceprotected static boolean
isIpMatching(InetAddress ip, String expr)
void
run(BatchTask currentPhase)
runstatic Callback<Boolean>
servicePersister(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, InetAddress address, CompletableFuture<Boolean> future)
servicePersisterprotected static boolean
shouldDetect(PluginConfig detectorConfig, InetAddress address)
String
toString()
toString
-
-
-
Constructor Detail
-
IpInterfaceScan
public IpInterfaceScan(Integer nodeId, InetAddress address, 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
-
getLocation
public OnmsMonitoringLocation getLocation()
-
getAddress
public InetAddress getAddress()
getAddress
- Returns:
- a
InetAddress
object.
-
getProvisionService
public ProvisionService getProvisionService()
getProvisionService
- Returns:
- a
ProvisionService
object.
-
toString
public String toString()
toString
-
servicePersister
public static Callback<Boolean> servicePersister(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, InetAddress address, CompletableFuture<Boolean> future)
servicePersister
-
createDetectorTask
protected static AbstractTask createDetectorTask(BatchTask currentPhase, ProvisionService service, PluginConfig detectorConfig, int nodeId, InetAddress address, OnmsMonitoringLocation location, io.opentracing.Span span, CompletableFuture<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, InetAddress address)
-
isIpMatching
protected static boolean isIpMatching(InetAddress ip, String expr)
-
-