Exemplo n.º 1
0
  /** Stops this instance. */
  public void stop() {
    expireThread.stop();

    if (componentsDiscovery != null) {
      componentsDiscovery.stop();
      componentsDiscovery = null;
    }

    meetExtensionsHandler.dispose();

    protocolProviderHandler.stop();
  }
Exemplo n.º 2
0
  /** Starts this manager for given <tt>hostName</tt>. */
  public void start() {
    expireThread.start();

    ConfigurationService config = FocusBundleActivator.getConfigService();
    String hostName = config.getString(HOSTNAME_PNAME);
    String xmppDomain = config.getString(XMPP_DOMAIN_PNAME);

    focusUserDomain = config.getString(FOCUS_USER_DOMAIN_PNAME);
    focusUserName = config.getString(FOCUS_USER_NAME_PNAME);

    String focusUserPassword = config.getString(FOCUS_USER_PASSWORD_PNAME);

    protocolProviderHandler.start(hostName, focusUserDomain, focusUserPassword, focusUserName);

    jitsiMeetServices =
        new JitsiMeetServices(
            protocolProviderHandler.getOperationSet(OperationSetSubscription.class));

    String statsPubSubNode = config.getString(SHARED_STATS_PUBSUB_NODE_PNAME);

    componentsDiscovery = new ComponentsDiscovery(jitsiMeetServices);

    componentsDiscovery.start(xmppDomain, statsPubSubNode, protocolProviderHandler);

    meetExtensionsHandler = new MeetExtensionsHandler(this);

    ProviderManager.getInstance()
        .addExtensionProvider(
            LogPacketExtension.LOG_ELEM_NAME,
            LogPacketExtension.NAMESPACE,
            new LogExtensionProvider());

    FocusBundleActivator.bundleContext.registerService(
        JitsiMeetServices.class, jitsiMeetServices, null);

    protocolProviderHandler.addRegistrationListener(this);
    protocolProviderHandler.register();
  }
Exemplo n.º 3
0
 /**
  * Gets the {@code ProtocolProviderSerivce} for focus XMPP connection.
  *
  * @return the {@code ProtocolProviderService} for focus XMPP connection
  */
 public ProtocolProviderService getProtocolProvider() {
   return protocolProviderHandler.getProtocolProvider();
 }
Exemplo n.º 4
0
 /**
  * Returns operation set instance for focus XMPP connection.
  *
  * @param opsetClass operation set class.
  * @param <T> the class of Operation Set to be returned
  * @return operation set instance of given class or <tt>null</tt> if given operation set is not
  *     implemented by focus XMPP provider.
  */
 public <T extends OperationSet> T getOperationSet(Class<T> opsetClass) {
   return protocolProviderHandler.getOperationSet(opsetClass);
 }