Package org.bigbluebutton.voiceconf.red5

Examples of org.bigbluebutton.voiceconf.red5.Service


    public void start() {       
      SipToFlashTranscoder sipToFlashTranscoder = new SpeexSipToFlashTranscoderImp(sipCodec);
      FlashToSipTranscoder flashToSipTranscoder = new SpeexFlashToSipTranscoderImp(sipCodec);

    if (sipCodec.getCodecId() != SpeexCodec.codecId) {     
      flashToSipTranscoder = new NellyFlashToSipTranscoderImp(sipCodec);
      sipToFlashTranscoder = new NellySipToFlashTranscoderImp(sipCodec);
    }
   
    log.info("Using codec=" + sipCodec.getCodecName() + " id=" + sipCodec.getCodecId());
    log.debug("Packetization [" + sipCodec.getIncomingPacketization() + "," + sipCodec.getOutgoingPacketization() + "]");
View Full Code Here


      SipToFlashTranscoder sipToFlashTranscoder = new SpeexSipToFlashTranscoderImp(sipCodec);
      FlashToSipTranscoder flashToSipTranscoder = new SpeexFlashToSipTranscoderImp(sipCodec);

    if (sipCodec.getCodecId() != SpeexCodec.codecId) {     
      flashToSipTranscoder = new NellyFlashToSipTranscoderImp(sipCodec);
      sipToFlashTranscoder = new NellySipToFlashTranscoderImp(sipCodec);
    }
   
    log.info("Using codec=" + sipCodec.getCodecName() + " id=" + sipCodec.getCodecId());
    log.debug("Packetization [" + sipCodec.getIncomingPacketization() + "," + sipCodec.getOutgoingPacketization() + "]");
    log.debug("Outgoing Frame size [" + sipCodec.getOutgoingEncodedFrameSize() + ", " + sipCodec.getOutgoingDecodedFrameSize() + "]");
View Full Code Here

    public void addCallStreamObserver(CallStreamObserver observer) {
      callStreamObserver = observer;
    }
   
    public void start() {       
      SipToFlashTranscoder sipToFlashTranscoder = new SpeexSipToFlashTranscoderImp(sipCodec);
      FlashToSipTranscoder flashToSipTranscoder = new SpeexFlashToSipTranscoderImp(sipCodec);

    if (sipCodec.getCodecId() != SpeexCodec.codecId) {     
      flashToSipTranscoder = new NellyFlashToSipTranscoderImp(sipCodec);
      sipToFlashTranscoder = new NellySipToFlashTranscoderImp(sipCodec);
View Full Code Here

      callStreamObserver = observer;
    }
   
    public void start() {       
      SipToFlashTranscoder sipToFlashTranscoder = new SpeexSipToFlashTranscoderImp(sipCodec);
      FlashToSipTranscoder flashToSipTranscoder = new SpeexFlashToSipTranscoderImp(sipCodec);

    if (sipCodec.getCodecId() != SpeexCodec.codecId) {     
      flashToSipTranscoder = new NellyFlashToSipTranscoderImp(sipCodec);
      sipToFlashTranscoder = new NellySipToFlashTranscoderImp(sipCodec);
    }
View Full Code Here

    public void addCallStreamObserver(CallStreamObserver observer) {
      callStreamObserver = observer;
    }
   
    public void start() {       
      SipToFlashTranscoder sipToFlashTranscoder = new SpeexSipToFlashTranscoderImp(sipCodec);
      FlashToSipTranscoder flashToSipTranscoder = new SpeexFlashToSipTranscoderImp(sipCodec);

    if (sipCodec.getCodecId() != SpeexCodec.codecId) {     
      flashToSipTranscoder = new NellyFlashToSipTranscoderImp(sipCodec);
      sipToFlashTranscoder = new NellySipToFlashTranscoderImp(sipCodec);
View Full Code Here

            @SuppressWarnings("unchecked")
            List<String> serviceNames = Service.getServiceNames();

            if (serviceNames != null) {
                for (String serviceName : serviceNames) {
                    Service s = null;

                    try {
                        s = new Service(serviceName);

                        ServiceConfig sc = s.getConfig();
                        ServiceInfo si = new ServiceInfo(sc.getName(), sc.getDisplayName(), sc.getDescription(), sc
                            .getPath(), sc.getDependencies());
                        services.add(si);
                    } catch (Win32Exception e) {
                        ; // Ignore these, it means Sigar was rejected by Windows for the particular Service.
                    } finally {
                        if (null != s) {
                            s.close();
                        }
                    }
                }
            }
        } catch (Exception e) {
View Full Code Here

    public void stop() {
    }

    private Service getIISService() throws Win32Exception {
        if (service == null) {
            service = new Service(WINDOWS_SERVICE_NAME);
        }
        return service;
    }
View Full Code Here

        return result;
    }

    private Win32ServiceControlDelegate getControlDelegate(Long timeout) throws Win32Exception {
        Service iisService = getIISService();
        String serviceName = iisService.getConfig().getName();
        List<String> serviceDependencies = Arrays.asList(iisService.getConfig().getDependencies());
        long serviceTimeout = (timeout == null ? SERVICE_CONTROL_TIMEOUT : timeout);
        return new Win32ServiceControlDelegate(serviceName, serviceDependencies, null, serviceTimeout);
    }
View Full Code Here

            this.reverseDependents = new ArrayList<String>(dependents);
            Collections.reverse(this.dependents);
        }
        this.timeout = timeout;

        service = new Service(serviceName);
    }
View Full Code Here

            return;

        log.debug("Starting list of services for Service [" + serviceName + "], services [" + services + "]");
        for (String relatedServiceName : services) {
            try {
                Service relatedService = new Service(relatedServiceName);
                int relatedServiceStatus = relatedService.getStatus();
                if (relatedServiceStatus == Service.SERVICE_STOPPED
                    || relatedServiceStatus == Service.SERVICE_STOP_PENDING) {
                    log.debug("Starting Service [" + relatedServiceName + "]");
                    relatedService.start(this.timeout);
                    log.debug("Service started [" + relatedServiceName + "]");
                    relatedService.close();
                }
            } catch (Exception e) {
                log.warn("Unable to start [" + relatedServiceName + "] from the list [" + services
                    + "]. Will continue with the rest. Cause:" + e);
            }
View Full Code Here

TOP

Related Classes of org.bigbluebutton.voiceconf.red5.Service

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.