Examples of HostProxy


Examples of lcmc.drbd.domain.DrbdXml.HostProxy

        Value hostInsidePort = null;
        Value hostOutsidePort = null;
        final boolean infoPanelOk = infoPanel != null;
        final Set<Host> configuredProxyHosts = getConfiguredProxyHosts();
        for (final Host host : getHosts()) {
            final HostProxy hostProxy = dxml.getHostProxy(host.getName(), getName());
            final Host proxyHost;
            final Value insideIp;
            final Value outsideIp;
            final Value insidePort;
            final Value outsidePort;
            if (hostProxy != null) {
                insideIp = hostProxy.getInsideIp();
                outsideIp = hostProxy.getOutsideIp();
                insidePort = hostProxy.getInsidePort();
                outsidePort = hostProxy.getOutsidePort();
                proxyHost = getCluster().getProxyHostByName(hostProxy.getProxyHostName());
            } else {
                insideIp = new StringValue();
                outsideIp = new StringValue();
                insidePort = new StringValue();
                outsidePort = new StringValue();
View Full Code Here

Examples of lcmc.drbd.domain.DrbdXml.HostProxy

                                            1, 1);          /* xPad, yPad */
            optionsPanel.add(sectionPanel);
        }

        for (final Host host : getHosts()) {
            final HostProxy hostProxy = dxml.getHostProxy(host.getName(), getName());
            Value insideIpSaved = null;
            Value outsideIpSaved = null;
            final Host proxyHost;
            if (hostProxy != null) {
                insideIpSaved = hostProxy.getInsideIp();
                outsideIpSaved = hostProxy.getOutsideIp();
                proxyHost = getCluster().getProxyHostByName(hostProxy.getProxyHostName());
            } else {
                proxyHost = host;
            }
            final Widget iIpWi = newInsideIpComboBoxHash.get(proxyHost);
            iIpWi.setValueAndWait(insideIpSaved);
View Full Code Here

Examples of lcmc.drbd.domain.DrbdXml.HostProxy

                changed = true;
            }
        }

        for (final Host host : getHosts()) {
            final HostProxy hostProxy = dxml.getHostProxy(host.getName(), getName());
            final Host proxyHost;
            if (hostProxy != null) {
                proxyHost = getCluster().getProxyHostByName(hostProxy.getProxyHostName());
            } else {
                proxyHost = host;
            }
            final Widget wi = outsideIpComboBoxHash.get(proxyHost);
            if (wi == null) {
View Full Code Here

Examples of pt.opensoft.host.HostProxy

      throw new HostUnavailableSystemException(e.getMessage());
    }
  }

  protected String process (Resource r1, Resource r2, Object backingBean, FacesRequest request) throws Exception {
    HostProxy proxy = r1 != null ? ((HostProxyResource)r1).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc = r2 != null ? ((JDBCResource) r2).getDBConnect() : null;
    return process(proxy, dbc, backingBean, request);
  }
View Full Code Here

Examples of pt.opensoft.host.HostProxy

  }

  protected abstract String process (HostProxy proxy, DBConnect dbc, Object backingBean, FacesRequest request) throws Exception;

  protected String validate (Resource r1, Resource r2, Object backingBean, FacesRequest request) throws Exception{
    HostProxy proxy = ((HostProxyResource)r1).getHostProxy();
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc = ((JDBCResource) r2).getDBConnect();
    return validate(proxy, dbc, backingBean, request);
  }
View Full Code Here

Examples of pt.opensoft.host.HostProxy

      throw new HostUnavailableSystemException(e.getMessage());
    }
  }

  protected Response process (Resource r1, Resource r2, Resource r3, Request request) throws Exception {
    HostProxy proxy = r1 != null ? ((HostProxyResource)r1).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc1 = r2 != null ? ((JDBCResource) r2).getDBConnect() : null;
    DBConnect dbc2 = r3 != null ? ((JDBCResource) r3).getDBConnect() : null;
   
    return process(proxy, dbc1, dbc2, request);
  }
View Full Code Here

Examples of pt.opensoft.host.HostProxy

  }

  protected abstract Response process (HostProxy proxy, DBConnect dbc1, DBConnect dbc2, Request request) throws Exception;

  protected InvalidRequest validate (Resource r1, Resource r2, Resource r3, Request request) throws Exception {
    HostProxy proxy = ((HostProxyResource)r1).getHostProxy();
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc1 = ((JDBCResource) r2).getDBConnect();
    DBConnect dbc2 = ((JDBCResource) r3).getDBConnect();
    return validate(proxy, dbc1, dbc2, request);
  }
View Full Code Here

Examples of pt.opensoft.host.HostProxy

  }

  protected abstract InvalidRequest validate (HostProxy proxy, DBConnect dbc1, DBConnect dbc2, Request request) throws Exception;

  protected Response render (Resource r1, Resource r2, Resource r3, Request request, InvalidRequest invalid) throws Exception {
    HostProxy proxy = r1 != null ? ((HostProxyResource)r1).getHostProxy() : null;
    if (proxy != null) proxy.setLogger(logger);
    DBConnect dbc1 = r2 != null ? ((JDBCResource) r2).getDBConnect() : null;
    DBConnect dbc2 = r3 != null ? ((JDBCResource) r3).getDBConnect() : null;
    return render(proxy, dbc1, dbc2, request, invalid);
  }
View Full Code Here

Examples of pt.opensoft.host.HostProxy

  public JSFHostTransaction(String app, String name, String resourceName, long resourceTimeout) {
    super(app, name, resourceName, resourceTimeout);
  }

  protected String process(Resource resource, Object backingBean, FacesRequest request) throws Exception {
    HostProxy proxy = ((HostProxyResource)resource).getHostProxy();
    return process(proxy, backingBean, request);
  }
View Full Code Here

Examples of pt.opensoft.host.HostProxy

  protected abstract String process(HostProxy dbc, Object backingBean, FacesRequest request)
      throws Exception;

  protected String validate(Resource resource, Object backingBean, FacesRequest request) throws Exception {
    HostProxy proxy = ((HostProxyResource)resource).getHostProxy();
        if (proxy != null) proxy.setLogger(logger);
    return validate(proxy, backingBean, request);
  }
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.