Package org.openhab.binding.xbmc.rpc

Examples of org.openhab.binding.xbmc.rpc.XbmcConnector.open()


    connector = new XbmcConnector(xbmcHost, eventPublisher);
    connectors.put(xbmcInstance, connector);
   
    // attempt to open the connection straight away
    try {
      connector.open();
    } catch (Exception e) {
      logger.error("Connection failed for '{}' on {}", xbmcInstance, xbmcHost.getHostname());
    }

    return connector;
View Full Code Here


        connector.updatePlayerStatus(true);
      } else {
        // broken connection so attempt to reconnect
        logger.debug("Broken connection found for '{}', attempting to reconnect...", entry.getKey());
        try {
          connector.open();
        } catch (Exception e) {
          logger.debug("Reconnect failed for '{}', will retry in {}s", entry.getKey(), refreshInterval / 1000);
        }
      }
    }
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.