Examples of requestTask()


Examples of ca.eandb.jdcp.remote.JobService.requestTask()

  public TaskDescription requestTask() throws SecurityException {
    JobService service = null;
    while (true) {
      try {
        service = getJobService(service);
        return service.requestTask();
      } catch (RemoteException e) {
        logger.error("Lost connection", e);
      }
    }
  }
View Full Code Here

Examples of com.denimgroup.threadfix.remote.ThreadFixRestClient.requestTask()

    @Test
    public void testTask() {
        String scannerList = "OWASP Zed Attack Proxy";
        ThreadFixRestClient client = new ThreadFixRestClientImpl(new TestPropertiesManager());

        RestResponse<Task> response = client.requestTask(scannerList, "");

        assertTrue(response != null && response.object != null);
    }

    // TODO write tests for the scan agent methods.
View Full Code Here

Examples of com.denimgroup.threadfix.remote.ThreadFixRestClientImpl.requestTask()

    @Test
    public void testTask() {
        String scannerList = "OWASP Zed Attack Proxy";
        ThreadFixRestClient client = new ThreadFixRestClientImpl(new TestPropertiesManager());

        RestResponse<Task> response = client.requestTask(scannerList, "");

        assertTrue(response != null && response.object != null);
    }

    // TODO write tests for the scan agent methods.
View Full Code Here

Examples of org.discoproject.worker.DiscoWorker.requestTask()

    final String taskStr = "TASK 327 {\"taskid\":0,\"master\":\"http://lhoersten-66113:8989\",\"disco_port\":8989,\"put_port\":8990,\"ddfs_data\":\"/srv/disco/ddfs\",\"disco_data\":\"/srv/disco/data\",\"mode\":\"map\",\"jobfile\":\"/srv/disco/data/localhost/5a/lhoersten-FunshineSimulator@524:7310e:1cb44/jobfile\",\"jobname\":\"lhoersten-FunshineSimulator@524:7310e:1cb44\",\"host\":\"localhost\"}\n";
    disco.write(ByteBuffer.wrap(taskStr.getBytes()));
    final String inputStr = "INPUT 110 [\"done\",[[0,\"ok\",[[0,\"raw://eyJlbnRyeWV4aXRsZXZlbCI6WyJERUMiLDEuNV0sInFyMiI6WyJERUMiLDFdLCJxcjEiOlsiREVD\"]]]]]\n";
    disco.write(ByteBuffer.wrap(inputStr.getBytes()));

    discoWorker.requestTask();
    final ReadableByteChannel mapInput = discoWorker.getMapInput();

    final String input = DiscoUtils.channelLineToString(mapInput);

    assertEquals("eyJlbnRyeWV4aXRsZXZlbCI6WyJERUMiLDEuNV0sInFyMiI6WyJERUMiLDFdLCJxcjEiOlsiREVD", input);
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.