Examples of registerAtIndex()


Examples of net.azib.ipscan.core.ScanningResultList.registerAtIndex()

    scanningResults.initNewScan(mockFeeder("info"));
    ScanningResult result = scanningResults.createResult(InetAddress.getByName("127.0.0.1"));
    result.setValue(0, new InetAddressHolder(InetAddress.getByName("127.0.0.1")));
    result.setValue(1, "HOSTNAME");
    result.setValue(2, new IntegerWithUnit(10, "ms"));
    scanningResults.registerAtIndex(0, result);
   
    OpenerLauncher ol = new OpenerLauncher(fetcherRegistry, scanningResults);
   
    assertEquals("\\\\127.0.0.1", ol.prepareOpenerStringForItem("\\\\${fetcher.ip}", 0));
    assertEquals("HOSTNAME$$$127.0.0.1xxx${}", ol.prepareOpenerStringForItem("${fetcher.hostname}$$$${fetcher.ip}xxx${}", 0));
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.registerAtIndex()

    File file = File.createTempFile("exportTest", "txt");
    ExportProcessor exportProcessor = new ExportProcessor(new TXTExporter(), file, false);
   
    ScanningResultList scanningResultList = new ScanningResultList(fetcherRegistry);
    scanningResultList.initNewScan(mockFeeder("megaFeeder"));
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.0.13")));
    exportProcessor.process(scanningResultList, null);
   
    String content = readFileContent(file);
   
    assertTrue(content.indexOf("megaFeeder") > 0);
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.registerAtIndex()

    ExportProcessor exportProcessor = new ExportProcessor(new TXTExporter(), file, false);
   
    ScanningResultList scanningResultList = new ScanningResultList(fetcherRegistry);
    scanningResultList.initNewScan(mockFeeder("feeder2"));
   
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.13.66")));
    scanningResultList.registerAtIndex(1, scanningResultList.createResult(InetAddress.getByName("192.168.13.67")));
    scanningResultList.registerAtIndex(2, scanningResultList.createResult(InetAddress.getByName("192.168.13.76")));
   
    exportProcessor.process(scanningResultList, new ScanningResultFilter() {
      public boolean apply(int index, ScanningResult result) {
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.registerAtIndex()

   
    ScanningResultList scanningResultList = new ScanningResultList(fetcherRegistry);
    scanningResultList.initNewScan(mockFeeder("feeder2"));
   
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.13.66")));
    scanningResultList.registerAtIndex(1, scanningResultList.createResult(InetAddress.getByName("192.168.13.67")));
    scanningResultList.registerAtIndex(2, scanningResultList.createResult(InetAddress.getByName("192.168.13.76")));
   
    exportProcessor.process(scanningResultList, new ScanningResultFilter() {
      public boolean apply(int index, ScanningResult result) {
        // select only IP addresses ending with 6
View Full Code Here

Examples of net.azib.ipscan.core.ScanningResultList.registerAtIndex()

    ScanningResultList scanningResultList = new ScanningResultList(fetcherRegistry);
    scanningResultList.initNewScan(mockFeeder("feeder2"));
   
    scanningResultList.registerAtIndex(0, scanningResultList.createResult(InetAddress.getByName("192.168.13.66")));
    scanningResultList.registerAtIndex(1, scanningResultList.createResult(InetAddress.getByName("192.168.13.67")));
    scanningResultList.registerAtIndex(2, scanningResultList.createResult(InetAddress.getByName("192.168.13.76")));
   
    exportProcessor.process(scanningResultList, new ScanningResultFilter() {
      public boolean apply(int index, ScanningResult result) {
        // select only IP addresses ending with 6
        return ((String)result.getValues().get(0)).endsWith("6");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.