Examples of schedule()


Examples of org.objectstyle.wolips.eogenerator.core.model.EOGenerateWorkspaceJob.schedule()

          IFile eogenFile = (IFile) eogenResource;
          EOGeneratorModel eogenModel = EOGeneratorModel.createModelFromFile(eogenFile);
          if (eogenModel.isModelReferenced(modifiedModelReference)) {
            EOGenerateWorkspaceJob eogenerateJob = new EOGenerateWorkspaceJob(eogenFile);
            eogenerateJob.addListener(new MarkerEOGeneratorListener());
            eogenerateJob.schedule();
          }
        }
      }
    } catch (Throwable e) {
      e.printStackTrace();
View Full Code Here

Examples of org.objectstyle.wolips.wizards.actions.EOModelImportWorkspaceJob.schedule()

    protected void createEOModelSupport() {
      if (getWizardType() != WizardType.WOMAVENPROJECT) {
        // Move any specified models over
        HashMap<String, String> paths = getEOModelPaths();
        EOModelImportWorkspaceJob job = new EOModelImportWorkspaceJob("eomodel import", paths, getProject(), null);
        job.schedule();
      } else {
        HashMap<String, String> paths = getEOModelPaths();
        EOModelImportWorkspaceJob job = new EOModelImportWorkspaceJob("eomodel import", paths, getProject(), getProject().getLocation().append("src/main/resources").toOSString());
        job.schedule();
      }
View Full Code Here

Examples of org.ofbiz.service.LocalDispatcher.schedule()

        // schedule service
        try {
            if (null!=request.getParameter("_RUN_SYNC_") && request.getParameter("_RUN_SYNC_").equals("Y")) {
                syncServiceResult = dispatcher.runSync(serviceName, serviceContext);
            } else {
                dispatcher.schedule(jobName, poolName, serviceName, serviceContext, startTime, frequency, interval, count, endTime, maxRetry);
            }
        } catch (GenericServiceException e) {
            String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_dispatcher_exception", locale);
            request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg + e.getMessage());
            return "error";
View Full Code Here

Examples of org.openstreetmap.josm.data.AutosaveTask.schedule()

                        autosaveTask.recoverUnsavedLayers();
                    } else if (selection == 3) {
                        autosaveTask.discardUnsavedLayers();
                    }
                }
                autosaveTask.schedule();
            }
        }

        private boolean handleNetworkOrProxyErrors(boolean hasErrors, String title, String message) {
            if (hasErrors) {
View Full Code Here

Examples of org.qi4j.sample.dcicargo.sample_b.data.structure.voyage.Voyage.schedule()

                    // MISDIRECT: UNLOAD from carrier in wrong location
                    if( i == 17 )
                    {
                        voyage = uow.get( Voyage.class, voyageNumber );
                        for( CarrierMovement movement : voyage.schedule().get().carrierMovements().get() )
                        {
                            final String arrivalPort = movement.arrivalLocation().get().getCode();

                            // Take first voyage with different arrival location
                            if( !arrivalPort.equals( port ) )
View Full Code Here

Examples of org.rhq.core.clientapi.agent.bundle.BundleAgentService.schedule()

                    BundleResourceDeploymentHistory.Status.SUCCESS, "Requested deployment time: "
                        + request.getRequestedDeployTimeAsString(), null);
                bundleManager.addBundleResourceDeploymentHistoryInNewTrans(subjectManager.getOverlord(),
                    resourceDeployment.getId(), history);

                BundleScheduleResponse response = bundleAgentService.schedule(request);

                if (!response.isSuccess()) {
                    // Handle Schedule Failures. This may include deployment failures for immediate deployment request
                    bundleManager.setBundleResourceDeploymentStatusInNewTransaction(subject,
                        resourceDeployment.getId(), BundleDeploymentStatus.FAILURE);
View Full Code Here

Examples of org.rssowl.core.util.StreamGobbler.schedule()

        /* Let StreamGobbler handle output */
        StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream());

        /* Flush both error and output streams */
        errorGobbler.schedule();
        outputGobbler.schedule();
      }

      /* Show error message, default browser could not be launched */
      catch (IOException e) {
        Activator.getDefault().logError(e.getMessage(), e);
View Full Code Here

Examples of org.springframework.ide.eclipse.aop.core.internal.model.builder.AopReferenceModelBuilderJob.schedule()

        AopReferenceModelMarkerUtils.deleteProblemMarkers(project);
        ((AopReferenceModel) Activator.getModel()).removeProject(JdtUtils.getJavaProject(project));
      }
      Job job = new AopReferenceModelBuilderJob(project, AopReferenceModelUtils
          .getAffectedFilesFromBeansConfig(affectedResources), affectedResources);
      job.schedule();
    }
    monitor.done();
  }

  /**
 
View Full Code Here

Examples of org.springframework.ide.eclipse.maven.internal.legacyconversion.LegacyProjectsJob.schedule()

*/
public class ConvertLegacyProjectAction implements IObjectActionDelegate {

    public void run(IAction action) {
        LegacyProjectsJob job = new LegacyProjectsJob(true, false);
        job.schedule();
    }

    public void selectionChanged(IAction action, ISelection selection) {
        // we don't care about the actual selection
    }
View Full Code Here

Examples of org.springframework.scheduling.TaskScheduler.schedule()

          queue.add(result);
        }
      }
    };

    ScheduledFuture<?> schedule = scheduler.schedule(task, trigger);

    return schedule;

  }
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.