private boolean userManagedNodeType() { if(theNode.isLocal()) return false; if(theNode.getType().equals("SSH")) return false; return true; } }
public int runAdminCommandOnNode(Node node, StringBuilder output, boolean waitForReaderThreads, List<String> args, AdminCommandContext context) throws SSHCommandExecutionException, ProcessManagerException, UnsupportedOperationException, IllegalArgumentException { if (node == null) { throw new IllegalArgumentException("Node is null"); } final List<String> stdinLines = new ArrayList<String>(); stdinLines.add(AsadminInput.versionSpecifier()); stdinLines.add(AUTH_TOKEN_STDIN_LINE_PREFIX + authTokenManager.createToken(context.getSubject())); args.add(0, "--interactive=false"); // No prompting! if (node.isLocal()) { return runAdminCommandOnLocalNode(node, output, waitForReaderThreads, args, stdinLines); } else { return runAdminCommandOnRemoteNode(node, output, args, stdinLines); } }
Node node = nodes.getNode( nodeName ) ; if (node != null) { if (node.isLocal()) { try { hostName = InetAddress.getLocalHost().getHostName() ;
InstanceDirUtils insDU = new InstanceDirUtils(node, serverContext); if (node.isLocal()){ try { pidFile = new File (insDU.getLocalInstanceDir(instance.getName()) , "config/pid");
installDir = theNode.getInstallDir(); if (theNode.isLocal()){ validateInstanceDirUnique(report, context); if (report.getActionExitCode() != ActionReport.ExitCode.SUCCESS if (theNode.isLocal() && installDir == null) { ci = cr.getCommandInvocation("_update-node", report, context.getSubject()); map = new ParameterMap();
if (theNode.isLocal() && installDir ==null){ ci = cr.getCommandInvocation("_update-node", report); map = new ParameterMap();