Examples of resume()


Examples of org.apache.oozie.DagEngine.resume()

        DagEngine dagEngine = Services.get().get(DagEngineService.class).getDagEngine(getUser(request),
                getAuthToken(request));

        String jobId = getResourceName(request);
        try {
            dagEngine.resume(jobId);
        }
        catch (DagEngineException ex) {
            throw new XServletException(HttpServletResponse.SC_BAD_REQUEST, ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.client.OozieClient.resume()

            lastModTime = wf.getLastModifiedTime();

            Thread.sleep(1000);

            wc.resume(jobId);
            wf = wc.getJobInfo(jobId);

            dateTest = wf.getLastModifiedTime().compareTo(lastModTime) >= 0 ? true : false;
            assertEquals(true, dateTest);
View Full Code Here

Examples of org.apache.oozie.client.XOozieClient.resume()

            }
            else if (options.contains(SUSPEND_OPTION)) {
                wc.suspend(commandLine.getOptionValue(SUSPEND_OPTION));
            }
            else if (options.contains(RESUME_OPTION)) {
                wc.resume(commandLine.getOptionValue(RESUME_OPTION));
            }
            else if (options.contains(KILL_OPTION)) {
                wc.kill(commandLine.getOptionValue(KILL_OPTION));
            }
            else if (options.contains(CHANGE_OPTION)) {
View Full Code Here

Examples of org.apache.servicemix.wsn.client.Subscription.resume()

        // Wait for notification
        Thread.sleep(150);

        assertEquals(0, pullPoint.getMessages(0).size());

        subscription.resume();

        wsnBroker.notify("myTopic", new Notify());
        // Wait for notification
        Thread.sleep(150);
View Full Code Here

Examples of org.apache.sling.event.jobs.Queue.resume()

                properties.clear();
                properties.put("counter", i);
                jobManager.addJob(subTopic, properties);
            }
            // start the queue
            q.resume();
            while ( count.get() < NUM_JOBS +1 ) {
                try {
                    Thread.sleep(500);
                } catch (InterruptedException ie) {
                    // ignore
View Full Code Here

Examples of org.apache.ws.notification.base.Subscription.resume()

   public ResumeSubscriptionResponseDocument resumeSubscription( ResumeSubscriptionDocument requestDoc )
   {
      Subscription subscription = (Subscription) getResource(  );
      try
      {
         subscription.resume(  );
      }
      catch ( Exception e )
      {
         throw new ResumeFailedFaultException( NAMESPACE_SET,
                                               "Resume failed on subscription: " + subscription.getID(  ) );
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereResource.resume()

                    // want to resume() otherwise the old connect will be
                    // redispatched and will overwrite the new connect.
                    try {
                        if (oldContinuation.getAtmosphereResourceEvent().isSuspended()) {
                            ((HttpServletResponse) oldContinuation.getResponse()).sendError(HttpServletResponse.SC_REQUEST_TIMEOUT);
                            oldContinuation.resume();
                        }
                    }
                    catch (Exception e) {
                        Log.debug(e);
                    }
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereResourceImpl.resume()

                                finishSend(resource.getResponse());
                            } catch (IOException ex) {
                                logger.trace("", ex);
                            }

                            resource.resume();
                        }
                        throw new SocketIOException(e);
                    }
                    if (!isStreamingConnection) {
                        try {
View Full Code Here

Examples of org.atmosphere.cpr.Meteor.resume()

        String transport = event.getResource().getRequest().getHeader("X-Atmosphere-Transport");
        if (transport != null && transport.equalsIgnoreCase("long-polling")) {
            Meteor meteor = Meteor.lookup(event.getResource().getRequest());

            meteor.removeListener(this);
            meteor.resume();
        }
    }

    public void onSuspend(AtmosphereResourceEvent<HttpServletRequest, HttpServletResponse> event) {
        String transport = event.getResource().getRequest().getHeader("X-Atmosphere-Transport");
View Full Code Here

Examples of org.codehaus.plexus.component.manager.ComponentManager.resume()

            return;
        }

        ComponentManager componentManager = componentManagerManager.findComponentManagerByComponentInstance( component );

        componentManager.resume( component );
    }

    // ----------------------------------------------------------------------
    // Lifecylce Management
    // ----------------------------------------------------------------------
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.