Examples of pause()


Examples of org.hornetq.core.server.impl.QueueImpl.pause()

                                      null,
                                      null,
                                      executor);

      // pauses the queue
      queue.pause();

      final int numMessages = 10;

      List<MessageReference> refs = new ArrayList<MessageReference>();
View Full Code Here

Examples of org.hornetq.jms.bridge.JMSBridge.pause()

            } catch (Exception e) {
                context.getFailureDescription().set(e.getLocalizedMessage());
            }
        } else if (PAUSE.equals(operationName)) {
            try {
                bridge.pause();
            } catch (Exception e) {
                context.getFailureDescription().set(e.getLocalizedMessage());
            }
        } else if (RESUME.equals(operationName)) {
            try {
View Full Code Here

Examples of org.hyperic.sigar.win32.Service.pause()

            }
            else if (cmd.equals("stop")) {
                service.stop();
            }
            else if (cmd.equals("pause")) {
                service.pause();
            }
            else if (cmd.equals("resume")) {
                service.resume();
            }
            else if (cmd.equals("delete")) {
View Full Code Here

Examples of org.jamesii.core.processor.IRunnable.pause()

              "Computing the computation task stepwise is not possible.");
          return;
        }
        ComputationRuntimeState state = getSimRuntimeInfo().getState();
        if (state == ComputationRuntimeState.RUNNING) {
          run.pause();
        }

        // show input dialog where the user can enter the steps amount to
        // forward
        String slowDown =
View Full Code Here

Examples of org.mule.api.service.Service.pause()

        final Service c = muleContext.getRegistry().lookupService("startedComponent");
        assertTrue(c.isStarted());
        assertFalse(c.isPaused());
        assertFalse(c.isStopped());
       
        c.pause();
        assertTrue(c.isPaused());
        assertFalse(c.isStopped());
        assertFalse(c.isStarted());
       
        new Thread(new Runnable()
View Full Code Here

Examples of org.pentaho.platform.api.scheduler2.IScheduler.pause()

  }

  /** {@inheritDoc} */
  public void pause() throws SchedulerException {
    IScheduler scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$
    scheduler.pause();
  }

  /** {@inheritDoc} */
  public void pauseJob( String jobId ) throws SchedulerException {
    IScheduler scheduler = PentahoSystem.get( IScheduler.class, "IScheduler2", null ); //$NON-NLS-1$
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.pause()

                builder.where( eq( subject.schoolId(), schoolId ) );
                return uow.newQuery( builder );
            }
            finally
            {
                uow.pause();
            }
        }

        @Override
        public Query<Student> students()
View Full Code Here

Examples of org.red5.server.api.stream.ISubscriberStream.pause()

        // pausePlayback can be "null" if "pause" is called without any parameters from flash
        if (pausePlayback == null) {
          pausePlayback = !subscriberStream.isPaused();
        }
        if (pausePlayback) {
          subscriberStream.pause(position);
        } else {
          subscriberStream.resume(position);
        }
      }
    }
View Full Code Here

Examples of paulscode.sound.SoundSystem.pause()

            playRandomMusic();
         } else if (split[1].equalsIgnoreCase("pause")) {
            SoundSystem sound = getSoundSystem();
            if (sound != null) {
               if (sound.playing("BgMusic")) {
                  sound.pause("BgMusic");
               }
               if (sound.playing("streaming")) {
                  sound.pause("streaming");
               }
            }
View Full Code Here

Examples of ptolemy.actor.Manager.pause()

                Manager.State state = manager.getState();

                if ((state == Manager.IDLE) && (state == Manager.PAUSED)) {
                    return super._saveAs();
                } else {
                    manager.pause();

                    boolean returnValue = super._saveAs();
                    manager.resume();
                    return returnValue;
                }
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.