Examples of schedule()


Examples of org.apache.axis2.deployment.scheduler.Scheduler.schedule()

     * Starts the Deployment engine to perform Hot deployment and so on..
     */
    private void startSearch(RepositoryListener listener) {
        Scheduler scheduler = new Scheduler();

        scheduler.schedule(new SchedulerTask(listener), new DeploymentIterator());
    }

    public void unDeploy() {
        String fileName;
        try {
View Full Code Here

Examples of org.apache.derby.iapi.services.daemon.IndexStatisticsDaemon.schedule()

                    if (tds.length > 0) {
                        IndexStatisticsDaemon isd = lcc.getDataDictionary().
                            getIndexStatsRefresher(true);
                        if (isd != null) {
                            for (int i=0; i < tds.length; i++) {
                                isd.schedule(tds[i]);
                            }
                        }
                    }
                }
        catch (StandardException e)   // hold it, throw it
View Full Code Here

Examples of org.apache.directory.studio.apacheds.jobs.LaunchServerJob.schedule()

                // Creating, setting and launching the launch job
                LaunchServerJob job = new LaunchServerJob( server, serverConfiguration );
                job.setLogsLevel( ApacheDsPluginUtils.getServerLogsLevel() );
                job.setLogsPattern( ApacheDsPluginUtils.getServerLogsPattern() );
                server.setLaunchJob( job );
                job.schedule();
            }
        }
    }

View Full Code Here

Examples of org.apache.directory.studio.ldapservers.jobs.StudioLdapServerJob.schedule()

            DeleteServerDialog dsd = new DeleteServerDialog( view.getSite().getShell(), server );
            if ( dsd.open() == DeleteServerDialog.OK )
            {
                // Creating and scheduling the job to delete the server
                StudioLdapServerJob job = new StudioLdapServerJob( new DeleteLdapServerRunnable( server ) );
                job.schedule();
            }
        }
    }

View Full Code Here

Examples of org.apache.falcon.client.FalconClient.schedule()

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

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

        String path = StartupProperties.get().getProperty("system.lib.location");
        if (!new File("target/libs").exists()) {
            Assert.assertTrue(new File("target/libs").mkdirs());
        }
        StartupProperties.get().setProperty("system.lib.location", "target/libs");
        engine.schedule(testProcess);
        StartupProperties.get().setProperty("system.lib.location", path);

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

Examples of org.apache.felix.sigil.eclipse.job.ResolveProjectsJob.schedule()

                                {
                                    IWorkspace workspace = ResourcesPlugin.getWorkspace();
                                    ResolveProjectsJob job = new ResolveProjectsJob(
                                        workspace);
                                    job.setSystem(true);
                                    job.schedule();
                                }
                                return Status.OK_STATUS;
                            }

                        };
View Full Code Here

Examples of org.apache.hadoop.lib.service.Scheduler.schedule()

    Scheduler scheduler = getServer().get(Scheduler.class);
    int purgeInterval = getServiceConfig().getInt(FS_CACHE_PURGE_FREQUENCY, 60);
    purgeTimeout = getServiceConfig().getLong(FS_CACHE_PURGE_TIMEOUT, 60);
    purgeTimeout = (purgeTimeout > 0) ? purgeTimeout : 0;
    if (purgeTimeout > 0) {
      scheduler.schedule(new FileSystemCachePurger(),
                         purgeInterval, purgeInterval, TimeUnit.SECONDS);
    }
  }

  private class FileSystemCachePurger implements Runnable {
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.Application.schedule()

    application_1.addTask(task_1_0);
       
    // Send resource requests to the scheduler
    LOG.info("Send resource requests to the scheduler");
    application_0.schedule();
    application_1.schedule();
   
    // Send a heartbeat to kick the tires on the Scheduler
    LOG.info("Send a heartbeat to kick the tires on the Scheduler... " +
        "nm0 -> task_0_0 and task_1_0 allocated, used=4G " +
        "nm1 -> nothing allocated");
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.MockAM.schedule()

    MockAM am1 = rm.sendAMLaunched(attempt1.getAppAttemptId());
    am1.registerAppAttempt();

    LOG.info("sending container requests ");
    am1.addRequests(new String[] {"*"}, 3 * GB, 1, 1);
    AllocateResponse alloc1Response = am1.schedule(); // send the request

    // kick the scheduler
    nm1.nodeHeartbeat(true);
    int waitCounter = 20;
    LOG.info("heartbeating nm1");
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.