newNode.setName(node); if(installdir != null && !"".equals(installdir)) newNode.setInstallDir(installdir); if (nodedir != null && !"".equals(nodedir)) newNode.setNodeDir(nodedir);
private void createDefaultNode(Domain d, Nodes nodes) throws TransactionFailure, PropertyVetoException { Property domainProp = d.getProperty("administrative.domain.name"); String domainName = domainProp.getValue(); Node node = nodes.createChild(Node.class); node.setName("localhost" + "-" + domainName); node.setType("CONFIG"); node.setNodeHost("localhost"); node.setInstallDir("${com.sun.aas.productRoot}"); nodes.getNode().add(node); } }
private void createDefaultNode(Domain d, Nodes nodes) throws TransactionFailure, PropertyVetoException { Property domainProp = d.getProperty("administrative.domain.name"); String domainName = domainProp.getValue(); Node node = nodes.createChild(Node.class); node.setName("localhost" + "-" + domainName); node.setType("CONFIG"); node.setNodeHost("localhost"); node.setInstallDir("${com.sun.aas.productRoot}"); nodes.getNode().add(node); } }
newNode.setName(node); if(installdir != null && installdir != "") newNode.setInstallDir(installdir); if (nodedir != null && nodedir !="") newNode.setNodeDir(nodedir);
if (name.equals("client-hostname")) { node.setInstallDir("${com.sun.aas.productRoot}");
if (name.equals("client-hostname")) { node.setInstallDir("${com.sun.aas.productRoot}");
instance.setNodeDir(null); if ( !StringUtils.ok(installdir)) instance.setInstallDir(null); if (!StringUtils.ok(nodehost)) instance.setNodeHost(null);
instance.setNodeDir(null); if (!StringUtils.ok(installdir)) instance.setInstallDir(null); if (!StringUtils.ok(nodehost)) instance.setNodeHost(null);
writeableNode.setNodeHost(nodehost); if (installdir != null) writeableNode.setInstallDir(installdir); if (type != null) writeableNode.setType(type);
writeableNode.setNodeHost(nodehost); if (installdir != null) writeableNode.setInstallDir(installdir); if (type != null) writeableNode.setType(type);