public ListNodesHelper(Logger _logger, Servers servers, Nodes nodes, String type, boolean long_opt, boolean terse) { this.listType = type; this.long_opt = long_opt; this.terse = terse; this.servers = servers; nodeList=nodes.getNode(); infos = new LinkedList<NodeInfo>(); }
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); } }
String installDir = nodes.getDefaultLocalNode().getInstallDirUnixStyle() + "/glassfish"; if (!StringUtils.ok(installDir)) { throw new IllegalArgumentException(Strings.get("create.node.ssh.no.installdir"));
public static boolean nodeCreationAllowed(Nodes nodes) { return ! Boolean.parseBoolean(nodes.getFreeze()); } }
if (! nodes.nodeCreationAllowed()) { throw new TransactionFailure(localStrings.getLocalString( "nodeCreationNotAllowed",
public ListNodesHelper(Logger _logger, Servers servers, Nodes nodes, String type, boolean long_opt, boolean terse) { logger = _logger; this.listType = type; this.long_opt = long_opt; this.terse = terse; this.servers = servers; nodeList=nodes.getNode(); infos = new LinkedList<NodeInfo>(); }
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); } }
String installDir = nodes.getDefaultLocalNode().getInstallDirUnixStyle() + "/glassfish"; if (!StringUtils.ok(installDir)) { throw new IllegalArgumentException(Strings.get("create.node.ssh.no.installdir"));
public static Node getNode(Nodes nodes, String name) { if (name == null || nodes == null) { return null; } for (Node node : nodes.getNode()) { if (node.getName().equals(name)) { return node; } } return null; }
@Override public Object run(Nodes param) throws PropertyVetoException, TransactionFailure { Node newNode = param.createChild(Node.class); newNode.setName(node); if(installdir != null && !"".equals(installdir)) param.getNode().add(newNode); return newNode;
String installDir = nodes.getDefaultLocalNode().getInstallDirUnixStyle() + "/glassfish"; if (!StringUtils.ok(installDir)) { throw new IllegalArgumentException(Strings.get("create.node.ssh.no.installdir"));
public static Node getNode(Nodes nodes, String name) { if (name == null || nodes == null) { return null; } for (Node node : nodes.getNode()) { if (node.getName().equals(name)) { return node; } } return null; }
public Object run(Nodes param) throws PropertyVetoException, TransactionFailure { Node newNode = param.createChild(Node.class); newNode.setName(node); if(installdir != null && installdir != "") param.getNode().add(newNode); return newNode;
int exit = -1; List<String> fullcommand = new ArrayList<String>(); String installDir = nodes.getDefaultLocalNode().getInstallDirUnixStyle() + "/glassfish";
public static Node getNodeNamed(Domain d, String name) { if (d.getNodes() == null || name == null) { return null; } List<Node> nodes = d.getNodes().getNode(); for (Node n : nodes) { if (name.equals(n.getName().trim())) { return n; } } return null; }
Node node = nodes.createChild(Node.class); nodes.getNode().add(node);
public static Node getNodeNamed(Domain d, String name) { if (d.getNodes() == null || name == null) { return null; } List<Node> nodes = d.getNodes().getNode(); for (Node n : nodes) { if (name.equals(n.getName().trim())) { return n; } } return null; }
Node node = nodes.createChild(Node.class); nodes.getNode().add(node);
private List<Server> getServersForNode() { if (whichTarget == null) // FindBugs can't figure out that our caller already checked. throw new NullPointerException("impossible!"); boolean foundNode = false; Nodes nodes = domain.getNodes(); if (nodes != null) { List<Node> nodeList = nodes.getNode(); if (nodeList != null) { for (Node node : nodeList) { if (whichTarget.equals(node.getName())) { foundNode = true; break; } } } } if (!foundNode) { return null; } else { return domain.getInstancesOnNode(whichTarget); } }
private List<Cluster> getClustersForNode() { boolean foundNode = false; Nodes nodes = domain.getNodes(); if (nodes != null) { List<Node> nodeList = nodes.getNode(); if (nodeList != null) { for (Node node : nodeList) { if (whichTarget.equals(node.getName())) { foundNode = true; break; } } } } if (!foundNode) return null; else return domain.getClustersOnNode(whichTarget); }