Class PortScannerImpl

    • Constructor Detail

      • PortScannerImpl

        public PortScannerImpl()
        Constructor
      • PortScannerImpl

        public PortScannerImpl​(int numberOfThreads,
                               int timeout)
        Constructor
        Parameters:
        numberOfThreads - the number of threads
        timeout - the scan timeout
    • Method Detail

      • prepareNetworkAddressScanThread

        protected java.util.concurrent.Future<IPortScanResult> prepareNetworkAddressScanThread​(java.util.concurrent.ExecutorService es,
                                                                                               java.lang.String scanAddress,
                                                                                               int port,
                                                                                               int t,
                                                                                               java.util.List<IPortScanListener> portScannerListenerList)
        Prepare the network address scan thread
        Parameters:
        es - the executer service
        scanAddress - the scan address
        port - the port
        t - the timeout
        portScannerListenerList - the port scanner listener list
        Returns:
        the result
      • prepareResultSet

        protected void prepareResultSet​(java.lang.Boolean filterIsAvailable,
                                        java.util.List<IPortScanResult> result,
                                        java.util.concurrent.Future<IPortScanResult> futurePortScanResult)
        Prepare the result set
        Parameters:
        filterIsAvailable - true if the filter is available
        result - the result set
        futurePortScanResult - the input port scan result
      • prepareIntegerValue

        protected int prepareIntegerValue​(int inputValue,
                                          int minValue,
                                          int maxValue)
        Prepare input int value
        Parameters:
        inputValue - the input value
        minValue - the min value
        maxValue - the max value
        Returns:
        the value
      • prepareScanAddressList

        protected java.util.List<java.lang.String> prepareScanAddressList​(java.lang.String scanAddress)
        Prepare the scan addresses
        Parameters:
        scanAddress - the scan addresse(s)
        Returns:
        the scan host address list
      • preparePortScanListenerList

        protected java.util.List<IPortScanListener> preparePortScanListenerList​(IPortScanListener... portScannerListeners)
        Prepare the port scan listener list
        Parameters:
        portScannerListeners - the port scan listener list
        Returns:
        the port scan listener list