private void validateParameter(ClusterIpInfo clusterIpInfo,String postOperation) throws Exception {
  boolean bValid=true;
  String errmsg="";
  if (!postOperation.equals("poweroff") && !postOperation.equals("reboot")) {
    bValid=false;
    errmsg="post operation is invalid.";
  }
  errmsg=clusterIpInfo.validate(nodeCount);
  if (!errmsg.isEmpty()) {
    bValid=false;
  }
  if (!bValid) {
    throw new IllegalStateException(errmsg);
  }
}

private void validateParameter ( ClusterIpInfo clusterIpInfo , String postOperation ) throws Exception { boolean bValid = true ; String errmsg = "" ; if ( ! postOperation . equals ( "poweroff" ) && ! postOperation . equals ( "reboot" ) ) { bValid = false ; errmsg = "post operation is invalid." ; } errmsg = clusterIpInfo . validate ( nodeCount ) ; if ( ! errmsg . isEmpty ( ) ) { bValid = false ; } if ( ! bValid ) { throw new IllegalStateException ( errmsg ) ; } }
valide cluster ip reconfig param
