Package org.apache.stratos.adc.mgt.dao

Examples of org.apache.stratos.adc.mgt.dao.PortMapping


      if (log.isDebugEnabled()) {
        log.debug("Executing query: " + sql);
      }
      resultSet = statement.executeQuery();
      while (resultSet.next()) {
        PortMapping portMapping = new PortMapping();
        portMapping.setPrimaryPort(resultSet.getString("PRIMARY_PORT"));
        portMapping.setProxyPort(resultSet.getString("PROXY_PORT"));
        portMapping.setType(resultSet.getString("TYPE"));
        portMappingList.add(portMapping);
      }
    } catch (Exception s) {
      String msg = "Error while sql connection :" + s.getMessage();
      log.error(msg, s);
View Full Code Here


    private static List<PortMapping> createPortMappings(CartridgeInfo cartridgeInfo) {
        List<PortMapping> portMappings = new ArrayList<PortMapping>();

        if (cartridgeInfo.getPortMappings() != null) {
            for (org.apache.stratos.cloud.controller.util.xsd.PortMapping portMapping : cartridgeInfo.getPortMappings()) {
                PortMapping portMap = new PortMapping();
                portMap.setPrimaryPort(portMapping.getPort());
                portMap.setProxyPort(portMapping.getProxyPort());
                portMap.setType(portMapping.getProtocol());
                portMappings.add(portMap);
            }
        }
        return portMappings;
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.adc.mgt.dao.PortMapping

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.