Package org.red5.server.api.scheduling

Examples of org.red5.server.api.scheduling.ISchedulingService


  }

  /** {@inheritDoc} */
    public void connectionOpened(RTMPConnection conn, RTMP state) {
    if (state.getMode() == RTMP.MODE_SERVER && appCtx != null) {
      ISchedulingService service = (ISchedulingService) appCtx.getBean(ISchedulingService.BEAN_NAME);
      conn.startWaitForHandshake(service);
    }
  }
View Full Code Here


   *            Scheduled job object
   *
   * @return  Name of the scheduled job
   */
  public String addScheduledJob(int interval, IScheduledJob job) {
    ISchedulingService service = (ISchedulingService) getScopeService(
        scope, ISchedulingService.class, QuartzSchedulingService.class,
        false);
    return service.addScheduledJob(interval, job);
  }
View Full Code Here

   *            Scheduled job object
   *
   * @return  Name of the scheduled job
   */
  public String addScheduledOnceJob(long timeDelta, IScheduledJob job) {
    ISchedulingService service = (ISchedulingService) getScopeService(
        scope, ISchedulingService.class, QuartzSchedulingService.class,
        false);
    return service.addScheduledOnceJob(timeDelta, job);
  }
View Full Code Here

   *            Scheduled job object
   *
   * @return  Name of the scheduled job
   */
  public String addScheduledOnceJob(Date date, IScheduledJob job) {
    ISchedulingService service = (ISchedulingService) getScopeService(
        scope, ISchedulingService.class, QuartzSchedulingService.class,
        false);
    return service.addScheduledOnceJob(date, job);
  }
View Full Code Here

   *       time in milliseconds to pass before first execution.
   * @return
   *       the name of the scheduled job
   */
  public String addScheduledJobAfterDelay(int interval, IScheduledJob job, int delay) {
    ISchedulingService service = (ISchedulingService) getScopeService(
        scope, ISchedulingService.class, QuartzSchedulingService.class,
        false);
    return service.addScheduledJobAfterDelay(interval, job, delay);
  }
View Full Code Here

   *
   * @param name
   *            Scheduled job name
   */
  public void removeScheduledJob(String name) {
    ISchedulingService service = (ISchedulingService) getScopeService(
        scope, ISchedulingService.class, QuartzSchedulingService.class,
        false);
    service.removeScheduledJob(name);
  }
View Full Code Here

   * Retuns list of scheduled job names
   *
   * @return  List of scheduled job names as list of Strings.
   */
  public List<String> getScheduledJobNames() {
    ISchedulingService service = (ISchedulingService) getScopeService(
        scope, ISchedulingService.class, QuartzSchedulingService.class,
        false);
    return service.getScheduledJobNames();
  }
View Full Code Here

    // ------------------------------------------------------------------------

    private void createPlayStream( IPendingServiceCallback callback ) {

        logger.debug( "create play stream" );
        IPendingServiceCallback wrapper = new CreatePlayStreamCallBack( callback );
        invoke( "createStream", null, wrapper );
    }
View Full Code Here

      if (stream.getStreamListeners() != null) {
       
        for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
         
          IStreamListener iStreamListener = iter.next();
         
          ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
         
          log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
         
View Full Code Here

            if ( !( event instanceof IRTMPEvent ) ) {
                logger.debug( "skipping non rtmp event: " + event );
                return;
            }

            IRTMPEvent rtmpEvent = (IRTMPEvent) event;

            if ( logger.isDebugEnabled() ) {
                // logger.debug("rtmp event: " + rtmpEvent.getHeader() + ", " +
                // rtmpEvent.getClass().getSimpleName());
            }

            if ( !( rtmpEvent instanceof IStreamData ) ) {
                logger.debug( "skipping non stream data" );
                return;
            }

            if ( rtmpEvent.getHeader().getSize() == 0 ) {
                logger.debug( "skipping event where size == 0" );
                return;
            }

            if ( rtmpEvent instanceof VideoData ) {
View Full Code Here

TOP

Related Classes of org.red5.server.api.scheduling.ISchedulingService

Copyright © 2018 www.massapicom. 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.