Examples of schedule()


Examples of org.apache.hdt.core.internal.hdfs.DownloadFileJob.schedule()

  private void downloadResource(IResource r) {
    try {
      switch (r.getType()) {
      case IFile.FILE:
        DownloadFileJob dfj = new DownloadFileJob(r);
        dfj.schedule();
        break;
      case IFolder.FOLDER:
        IFolder folder = (IFolder) r;
        IResource[] children = folder.members();
        if (children != null) {
View Full Code Here

Examples of org.apache.hdt.core.internal.hdfs.UploadFileJob.schedule()

  private void uploadResource(IResource r) {
    try {
      switch (r.getType()) {
      case IResource.FILE:
        UploadFileJob ufj = new UploadFileJob(r);
        ufj.schedule();
        break;
      case IResource.FOLDER:
        IFolder folder = (IFolder) r;
        IResource[] members = folder.members();
        if (members != null) {
View Full Code Here

Examples of org.apache.ivory.client.IvoryClient.schedule()

      validateColo(optionsList);
      result = client.validate(entityType, filePath);
    } else if (optionsList.contains(SCHEDULE_OPT)) {
      validateEntityName(optionsList, entityName);
      colo = getColo(colo);
      result = client.schedule(entityType, entityName, colo);
    } else if (optionsList.contains(SUSPEND_OPT)) {
      validateEntityName(optionsList, entityName);
      colo = getColo(colo);
      result = client.suspend(entityType, entityName, colo);
    } else if (optionsList.contains(RESUME_OPT)) {
View Full Code Here

Examples of org.apache.ivory.workflow.engine.OozieWorkflowEngine.schedule()

  @Test
  public void testLogMover() throws Exception {
    CurrentUser.authenticate(System.getProperty("user.name"));
    OozieWorkflowEngine engine = new OozieWorkflowEngine();
    engine.schedule(testProcess);

    OozieClient client = new OozieClient(
        ClusterHelper.getOozieUrl(testCluster.getCluster()));
    List<WorkflowJob> jobs;
    while (true) {
View Full Code Here

Examples of org.apache.ivyde.eclipse.cpcontainer.IvyMultiResolveJob.schedule()

            allContainers.addAll(IvyClasspathUtil.getIvyClasspathContainers(projects[i]));
        }

        Job resolveAllJob = new IvyMultiResolveJob(allContainers);
        resolveAllJob.setUser(true);
        resolveAllJob.schedule();
    }

    public void selectionChanged(IAction action, ISelection selection) {
        // nothing to do
    }
View Full Code Here

Examples of org.apache.ivyde.eclipse.revdepexplorer.SyncIvyFilesJob.schedule()

                    job.addJobChangeListener(new JobChangeAdapter() {
                        public void done(IJobChangeEvent arg0) {
                            refresh(true);
                        }
                    });
                    job.schedule();
                }
            }
        };
        syncAction.setToolTipText("Synchronize ivy dependencies");
        syncAction.setImageDescriptor(IvyPlugin.getImageDescriptor("icons/synced.gif"));
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.revdepexplorer.SyncIvyFilesJob.schedule()

                    job.addJobChangeListener(new JobChangeAdapter() {
                        public void done(IJobChangeEvent arg0) {
                            refresh(true);
                        }
                    });
                    job.schedule();
                }
            }
        };
        syncAction.setToolTipText("Synchronize ivy dependencies");
        syncAction.setImageDescriptor(IvyPlugin.getImageDescriptor("icons/synced.gif"));
View Full Code Here

Examples of org.apache.karaf.eik.ui.features.FeaturesResolverJob.schedule()

        monitor.subTask("Resolving Features Repository for Apache Karaf Project: " + karafProject.getName());

        final FeaturesSection featuresSection = (FeaturesSection) karafPlatformModel.getAdapter(FeaturesSection.class);
        final FeaturesResolverJob job = new FeaturesResolverJob(karafProject.getName(), karafPlatformModel, featuresSection);
        job.schedule();
        try {
            job.join();

            final List<FeaturesRepository> featuresRepositories = job.getFeaturesRepositories();
View Full Code Here

Examples of org.apache.karaf.eik.ui.internal.KarafRemoteShellConnectJob.schedule()

                        }
                    }
                }
            });

            job.schedule(15 * 1000);
        } else {
            writeTo(outputStream, "The Karaf remote shell is disabled. Enable it in the launch configuration dialog.");
        }
    }

View Full Code Here

Examples of org.apache.karaf.eik.ui.internal.PopulateObrFileJob.schedule()

            platformFolder.getRawLocation().append("eclipse.obr").addFileExtension("xml");

        platformFolder.refreshLocal(0, monitor);

        final PopulateObrFileJob populateObrJob = new PopulateObrFileJob(karafProject.getName(), obrFile.toFile());
        populateObrJob.schedule();

        try {
          populateObrJob.join();
        } catch (final InterruptedException e) {
            Thread.interrupted();
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.