Examples of QueueConf


Examples of com.thenetcircle.comsumerdispatcher.config.QueueConf

        String port = getNodeValue(String.format(DistributionTreeConstants.QSERVERS_NAME_PORT, serverName));
        String pw = getNodeValue(String.format(DistributionTreeConstants.QSERVERS_NAME_PW, serverName));
        String user = getNodeValue(String.format(DistributionTreeConstants.QSERVERS_NAME_USER, serverName));
        String vhost = getNodeValue(String.format(DistributionTreeConstants.QSERVERS_NAME_VHOST, serverName));
       
        QueueConf qc = new QueueConf(serverName, host, Integer.valueOf(port), user, pw, vhost);
        servers.put(serverName, qc);
      } catch (Exception e) {
        _logger.error(e, e);
        continue;
      }
View Full Code Here

Examples of com.thenetcircle.comsumerdispatcher.config.QueueConf

              String encoding = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_REQENCODING, domain, queueJobNodeName));
              String queueName = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_QBINDS_QUEUE, domain, queueJobNodeName));
              String exchange = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_QBINDS_EXCHANGE, domain, queueJobNodeName));
              String type = getNodeValue(String.format(DistributionTreeConstants.CD_ROOT_DOMAIN_QUEUEONSERVER_QBINDS_TYPE, domain, queueJobNodeName));
             
              QueueConf qc = DispatcherConfig.getInstance().getServers().get(mqserver);
              JobExecutor je = new JobExecutor();
              try {
                je.setCount(Integer.valueOf(count));
              } catch (Exception e) {
                je.setCount(1);
View Full Code Here

Examples of com.thenetcircle.comsumerdispatcher.config.QueueConf

  public void populateQueueServers(ZooKeeper zk) throws KeeperException, InterruptedException {
    createNode(zk, DistributionTreeConstants.QSERVERS, "queue servers");
   
    Map<String, QueueConf> servers = DispatcherConfig.getInstance().getServers();
    for(String serverName : servers.keySet()) {
      QueueConf qc = servers.get(serverName);
      createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME, serverName), serverName);
      createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_HOST, serverName), qc.getHost());
      createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_PORT, serverName), String.valueOf(qc.getPort()));
      createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_PW, serverName), qc.getPassword());
      createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_USER, serverName), qc.getUserName());
      createNode(zk, String.format(DistributionTreeConstants.QSERVERS_NAME_VHOST, serverName), qc.getVhost());
     
      String logStr = String.format(">>>>>>>>>>>>>>>>>>>>>>>[Distribution data population] populated queue server data: name:%s,host:%s,post:%s,vhost:%s", serverName, qc.getHost(), String.valueOf(qc.getPort()), qc.getVhost());
      _logger.info(logStr);
    }
  }
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.