コード例 #1
1
  public void execute(Long farmNo, Long loadBalancerNo) {
    Map<String, String> parameters = new LinkedHashMap<String, String>();
    parameters.put("FarmNo", farmNo.toString());
    parameters.put("LoadBalancerNo", loadBalancerNo.toString());

    requester.execute("/StartLoadBalancer", parameters);
  }
コード例 #2
0
  public void execute(Long farmNo, Long loadBalancerNo, Integer loadBalancerPort) {
    Map<String, String> parameters = new LinkedHashMap<String, String>();
    parameters.put("FarmNo", farmNo.toString());
    parameters.put("LoadBalancerNo", loadBalancerNo.toString());
    parameters.put("LoadBalancerPort", loadBalancerPort.toString());

    requester.execute("/DeleteLoadBalancerListener", parameters);
  }
コード例 #3
0
  public void execute(EditLoadBalancerParameter parameter) {
    Map<String, String> parameters = new LinkedHashMap<String, String>();
    parameters.put("FarmNo", parameter.getFarmNo().toString());
    parameters.put("LoadBalancerNo", parameter.getLoadBalancerNo().toString());
    parameters.put("ComponentNo", parameter.getComponentNo().toString());
    parameters.put("SecurityGroups", parameter.getSecurityGroups());

    if (parameter.getComment() != null) {
      parameters.put("Comment", parameter.getComment());
    }

    if (parameter.getSubnet() != null) {
      parameters.put("Subnet", parameter.getSubnet());
    }

    if (parameter.getIsInternal() != null) {
      parameters.put("IsInternal", parameter.getIsInternal().toString());
    }

    requester.execute("/EditLoadBalancer", parameters);
  }
コード例 #4
0
  public void execute(EditComponentParameter parameter) {
    Map<String, String> parameters = new LinkedHashMap<String, String>();
    parameters.put("ComponentNo", parameter.getComponentNo().toString());
    parameters.put("DiskSize", parameter.getDiskSize().toString());

    if (parameter.getComment() != null) {
      parameters.put("Comment", parameter.getComment());
    }

    if (parameter.getCustomParam1() != null) {
      parameters.put("CustomParam1", parameter.getCustomParam1());
    }

    if (parameter.getCustomParam2() != null) {
      parameters.put("CustomParam2", parameter.getCustomParam2());
    }

    if (parameter.getCustomParam3() != null) {
      parameters.put("CustomParam3", parameter.getCustomParam3());
    }

    requester.execute("/EditComponent", parameters);
  }