Examples of subscribe()


Examples of org.olat.course.run.calendar.CourseCalendarSubscription.subscribe()

    ICourse course = CourseFactory.loadCourse(cenv.getCourseResourceableId());
    CourseCalendars myCal = CourseCalendars.createCourseCalendarsWrapper(ureq, wControl, course);
    CourseCalendarSubscription calSubscription = myCal.createSubscription(ureq);
    if(CalEditController.getAutoSubscribe(config)) {
      if(!calSubscription.isSubscribed()) {
        calSubscription.subscribe(false);
        ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(new KalendarModifiedEvent(), OresHelper.lookupType(CalendarManager.class));
      }
    }
   
    calCtr = new CourseCalendarController(ureq, wControl, myCal, calSubscription, course);
View Full Code Here

Examples of org.projectodd.stilts.stomp.client.StompClient.subscribe()

        StompClient client = new StompClient("stomp://" + url.getHost());
        client.connect();

        final Set<String> outbound = new HashSet<String>();
        final CountDownLatch outboundLatch = new CountDownLatch(2);
        SubscriptionBuilder builder = client.subscribe(DESTINATION_QUEUE_ONE);
        builder.withMessageHandler(new MessageHandler() {
            public void handle(StompMessage message) {
                String content = message.getContentAsString();
                outbound.add(content);
                outboundLatch.countDown();
View Full Code Here

Examples of org.red5.server.api.scope.IBroadcastScope.subscribe()

      } else {
        log.warn("Broadcast scope was not added to {}", scope);
      }
    }
    log.debug("Subscribing scope {} to provider {}", broadcastScope, bs.getProvider());
    return broadcastScope.subscribe(bs.getProvider(), null);
  }

  /** {@inheritDoc} */
  public Set<String> getBroadcastStreamNames(IScope scope) {
    return scope.getBasicScopeNames(ScopeType.BROADCAST);
View Full Code Here

Examples of org.red5.server.messaging.IPipe.subscribe()

    if (streamConn != null) {
      Channel data = new Channel(null, 4);
      Channel video = new Channel(null, 5);
      Channel audio = new Channel(null, 6);
      IPipe pipe = new InMemoryPushPushPipe();
      pipe.subscribe(new ConnectionConsumer(video, audio, data), null);
      return pipe;
    }
    return null;
  }
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPullPullPipe.subscribe()

    File file = getVODProviderFile(scope, name);
    if (file == null) {
      return null;
    }
    IPipe pipe = new InMemoryPullPullPipe();
    pipe.subscribe(new FileProvider(scope, file), null);
    return pipe;
  }

  /** {@inheritDoc} */
  public File getVODProviderFile(IScope scope, String name) {
View Full Code Here

Examples of org.red5.server.messaging.InMemoryPushPushPipe.subscribe()

    if (streamConn != null) {
      Channel data = new Channel(null, 4);
      Channel video = new Channel(null, 5);
      Channel audio = new Channel(null, 6);
      IPipe pipe = new InMemoryPushPushPipe();
      pipe.subscribe(new ConnectionConsumer(video, audio, data), null);
      return pipe;
    }
    return null;
  }
View Full Code Here

Examples of org.richfaces.application.push.Session.subscribe()

        if (topicNames == null) {
            throw new IllegalArgumentException(PUSH_TOPIC_PARAM + " request parameter must be present");
        }

        session.subscribe(topicNames);

        Map<String, Object> subscriptionData = new HashMap<String, Object>(4);
        subscriptionData.put("sessionId", session.getId());

        Map<TopicKey, String> failedSubscriptions = session.getFailedSubscriptions();
View Full Code Here

Examples of org.rioproject.monitor.service.channel.ServiceChannel.subscribe()

        ServiceChannel channel = ServiceChannel.getInstance();
        channel.unsubscribe(localServiceChannelClient);
        for (AssociationDescriptor aDesc : svcElement.getAssociationDescriptors()) {
            if (aDesc.getAssociationType() == AssociationType.COLOCATED) {
                channel.subscribe(localServiceChannelClient, aDesc, ServiceChannelEvent.Type.PROVISIONED);
            }
        }

        ServiceBeanConfig sc = svcElement.getServiceBeanConfig();
        Map<String, Object> configParameters = sc.getConfigurationParameters();
View Full Code Here

Examples of org.serviceconnector.api.cln.SCPublishService.subscribe()

      String mask = "0000121ABCDEFGHIJKLMNO-----------X-----------";
      msg.setSessionInfo("subscription-info"); // optional
      msg.setData("certificate or what so ever"); // optional
      msg.setMask(mask); // mandatory
      msg.setNoDataIntervalSeconds(100); // mandatory
      SCSubscribeMessage reply = service.subscribe(msg, cbk); // regular subscribe

      String sid = service.getSessionId();

      // wait to receive messages
      while (cbk.receivedMsg < 5) {
View Full Code Here

Examples of org.serviceconnector.server.StatefulServer.subscribe()

      StatefulServer server = this.listOfServers.get(serverIndex);
      if (server.hasFreeSession()) {
        server.addSession(subscription);
        subscription.setServer(server);
        try {
          server.subscribe(msgToForward, callback, timeoutMillis);
        } catch (Exception e) {
          server.removeSession(subscription);
          throw e;
        }
        return;
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.