Class IpInterfaceScan

  • All Implemented Interfaces:
    RunInBatch

    public class IpInterfaceScan
    extends java.lang.Object
    implements RunInBatch

    IpInterfaceScan class.

    Version:
    $Id: $
    Author:
    ranger
    • 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 - a Integer object.
        address - a InetAddress object.
        foreignSource - a String object.
        location - a OnmsMonitoringLocation object.
        provisionService - a ProvisionService 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.
      • getAddress

        public java.net.InetAddress getAddress()

        getAddress

        Returns:
        a InetAddress object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.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

        Parameters:
        currentPhase - a BatchTask object.
        Returns:
        a Callback 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)