Package org.jitterbit.integration.client.datalocation.connection.all

Examples of org.jitterbit.integration.client.datalocation.connection.all.AllLocationsTester$ProgressMonitor


  private ProgressMonitor currentMonitor;

  @Override
  public void abortCurrentRequest() {
    ProgressMonitor monitor = currentMonitor;
    if(monitor != null)
      monitor.cancel();
    client.abortCurrentRequest();
  }
View Full Code Here


    return client.get(getEndpointSegment(), params, getPaginatedResultType());
  }

  @Override
  public List<T> listAll(Query<T> query, SortBy<T> sortBy, boolean includeDeleted) throws IOException {
    ProgressMonitor monitor = new NullProgressMonitor();
    currentMonitor = monitor;
    try {
      PaginatedResult<T> page = list(query, sortBy, null, includeDeleted);
      monitor.beginTask(page.getTotal());

      int total = page.getTotal();
      if(total == 0)
        return Collections.emptyList();
View Full Code Here

        @Override
        public void contentAdded(WindowSection section, WindowSectionContent content) {
            waitLock.release();
            TestAllConnectionsView testView = (TestAllConnectionsView) content;
            testView.addResource(new ProjectListening(testView));
            AllLocationsTester test = testView.getCurrentTest();
            if (test == null) {
                createAndStartTest(testView);
            }
        }
View Full Code Here

            waitLock.release();
            ErrorLog.attention(TestAllConnectionsAction.class, "An error occurred: " + cause.getMessage(), cause);
        }

        private void createAndStartTest(TestAllConnectionsView testView) {
            AllLocationsTester test;
            test = createTest();
            testView.setTestToRun(test);
            test.start();
        }
View Full Code Here

        return createTest(getManagedProject());
    }

    private AllLocationsTester createTest(ManagedProject mp) {
        TestConnectionHistory history = mp.getTestHistory().getTestConnectionHistory();
        AllLocationsTester tester = new AllLocationsTester(mp.getProject(), history);
        tester.setPageDisplayer(pageDisplayer);
        return tester;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.datalocation.connection.all.AllLocationsTester$ProgressMonitor

Copyright © 2018 www.massapicom. 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.