/glassfish-3.1.2/common/simple-glassfish-api/src/main/java/org/glassfish/embeddable/ |
H A D | CommandRunner.java | 44 * GlassFish has a very sophisticated command line interface (CLI) viz., 52 * <p/>A command runner is obtained by calling 55 * <p/>A command runner is a per-lookup type object, which means each time 56 * {@link GlassFish#getCommandRunner()} is called, it returns a new instance of command runner. 65 * Execute an administrative command in {@link GlassFish} using the supplied 66 * command arguments. Refer to GlassFish Administration Guide to know about the commands supported 89 * @param command command to be executed. 90 * @param args command arguments. 91 * @return {@link CommandResult} which encapsulates exit status, command outpu 93 run(String command, String... args) argument [all...] |
/glassfish-3.1.2/cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/ |
H A D | DeleteNodeSshCommand.java | 51 * Remote AdminCommand to create a config node. This command is run only on DAS. 88 final protected void setTypeSpecificOperands(List<String> command, ParameterMap map) { argument 89 command.add("--sshport"); 90 command.add(map.getOne(NodeUtils.PARAM_REMOTEPORT)); 92 command.add("--sshuser"); 93 command.add(map.getOne(NodeUtils.PARAM_REMOTEUSER)); 98 command.add("--sshkeyfile"); 99 command.add(key);
|
H A D | CreateInstanceCommand.java | 67 * Remote AdminCommand to create an instance. This command is run only on DAS. 265 * this command is running). 353 ArrayList<String> command = new ArrayList<String>(); 358 command.add("--host"); 359 command.add(dasHost); 362 command.add("--port"); 363 command.add(dasPort); 365 command.add("_create-instance-filesystem"); 368 command.add("--nodedir"); 369 command 478 makeCommandHuman(List<String> command) argument [all...] |
H A D | StartInstanceCommand.java | 77 @I18n("start.instance.command") 221 ArrayList<String> command = new ArrayList<String>(); 225 command.add("--host"); 226 command.add(dasHost); 227 command.add("--port"); 228 command.add(dasPort); 232 command.add("start-local-instance"); 234 command.add("--node"); 235 command.add(noderef); 238 command 303 makeCommandHuman(List<String> command) argument [all...] |
H A D | DeleteInstanceCommand.java | 59 * Remote AdminCommand to delete an instance. This command is run only on DAS. 200 ArrayList<String> command = new ArrayList<String>(); 204 command.add("--host"); 205 command.add(dasHost); 206 command.add("--port"); 207 command.add(dasPort); 210 command.add("_delete-instance-filesystem"); 213 command.add("--nodedir"); 214 command.add(nodedir); //XXX escape spaces? 217 command 250 makeCommandHuman(List<String> command) argument [all...] |
/glassfish-3.1.2/cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/dcom/ |
H A D | DeleteNodeDcom.java | 77 final protected void setTypeSpecificOperands(List<String> command, ParameterMap map) {
argument 78 command.add("--windowsuser");
79 command.add(map.getOne(NodeUtils.PARAM_REMOTEUSER));
80 command.add("--windowsdomain");
81 command.add(map.getOne(NodeUtils.PARAM_WINDOWS_DOMAIN));
|
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/admin/ |
H A D | PublicAdminAdapter.java | 67 protected boolean validatePrivacy(AdminCommand command) { argument 68 Visibility visibility = command.getClass().getAnnotation(Visibility.class);
|
H A D | PrivateAdminAdapter.java | 64 protected boolean validatePrivacy(AdminCommand command) { argument 65 Visibility visibility = command.getClass().getAnnotation(Visibility.class);
|
H A D | InserverCommandRunnerHelper.java | 79 public ActionReport runCommand(final String command, argument 83 final AdminCommand adminCommand = commandRunner.getCommand(command, report, logger); 89 adminStrings.getLocalString("adapter.command.notfound", 90 "Command {0} not found", command); 91 // cound't find command, not a big deal 97 CommandRunner.CommandInvocation inv = commandRunner.getCommandInvocation(command, report);
|
H A D | CommandRunnerImpl.java | 86 * Encapsulates the logic needed to execute a server-side command (for example, 88 * command. 130 * Retuns the command model for a command name. 132 * @param commandName command name 134 * @return model for this command (list of parameters,etc...), 135 * or null if command is not found 138 AdminCommand command = null; 140 command = habitat.getComponent(AdminCommand.class, commandName); 145 return command 235 injectParameters(final CommandModel model, final AdminCommand command, final InjectionResolver<Param> injector, final AdminCommandContext context) argument 329 doCommand( final CommandModel model, final AdminCommand command, final AdminCommandContext context) argument 404 getUsageText(AdminCommand command, CommandModel model) argument 502 getHelp(AdminCommand command, ActionReport report) argument 534 getMetadata(AdminCommand command, CommandModel model, ActionReport report) argument 737 skipValidation(AdminCommand command) argument 780 getModel(AdminCommand command) argument 792 doCommand(ExecutionContext inv, AdminCommand command) argument 1290 execute(AdminCommand command) argument [all...] |
H A D | ListCommandsCommand.java | 62 * Simple admin command to list all existing commands. 78 * Executes the command with the command parameters passed as Properties 97 for (Inhabitant<?> command : habitat.getInhabitantsByContract(AdminCommand.class.getName())) { 98 for (String name : Inhabitants.getNamesFor(command, AdminCommand.class.getName())) { 99 //see 6161 -- I thought we should ensure that a command found in habitat should 102 if (debugCommand(command)) { //it's a debug command, add only if debug is set 114 private static boolean debugCommand(Inhabitant command) { argument 115 return !Inhabitants.getNamesFor(command, "mod [all...] |
/glassfish-3.1.2/ant-tasks/src/main/java/org/glassfish/ant/tasks/ |
H A D | AdminTask.java | 52 String installDir, command, commandStr; field in class:AdminTask 66 public void setCommand(String command) { argument 67 this.command = command; 71 return command; 75 command += " --" + name + "=" + value; 79 command += " " + value; 109 execute(this.command); 113 log ("Running command " + commandExec); 144 log("asadmin command exite [all...] |
/glassfish-3.1.2/web/admin/src/main/java/org/glassfish/web/admin/cli/ |
H A D | CreateHttpListener.java | 132 * Executes the command with the command parameters passed as Properties where the keys are the paramter names and 327 final CreateTransport command = (CreateTransport) runner 329 command.transportName = listenerId; 330 command.acceptorThreads = acceptorThreads; 331 command.target = target; 332 command.execute(context); 340 final CreateProtocol command = (CreateProtocol) runner 342 command.protocolName = listenerId; 343 command [all...] |
/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/admin/ |
H A D | ClusterExecutor.java | 57 * <p>Execute the passed command on targeted remote instances. The list of remote 64 * @param commandName the name of the command to execute 65 * @param command the command to execute 66 * @param context the original command context 67 * @param parameters the parameters passed to the original local command 68 * @return the exit status of overall command replication 70 public ActionReport.ExitCode execute(String commandName, AdminCommand command, AdminCommandContext context, argument
|
H A D | ExecuteOn.java | 50 * Annotation to qualify when an action like a command is targeted to be run 76 * "target" command parameter to 86 * of this command cannot be executed due to the server being offline. 95 * of this command fails. 112 public ActionReport.ExitCode execute(String commandName, AdminCommand command, AdminCommandContext context, ParameterMap parameters) { argument 113 return delegate.execute(commandName, command, context, parameters);
|
/glassfish-3.1.2/core/bootstrap/src/main/java/com/sun/enterprise/glassfish/bootstrap/ |
H A D | GlassFishMain.java | 122 String command; 124 while ((command = readCommand(reader)) != null) { 126 System.out.println("command = " + command); 127 if ("start".equalsIgnoreCase(command)) { 131 } else if ("stop".equalsIgnoreCase(command)) { 137 } else if (command.startsWith("deploy")) { 143 String[] tokens = command.split("\\s"); 152 } else if (command.startsWith("undeploy")) { 158 String name = command [all...] |
H A D | UberMain.java | 89 String command = split[0].trim(); 99 cr.run(command) : cr.run(command, commandParams);
|
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/ |
H A D | ProcessEnvironment.java | 103 /** command to be invoked */ 104 protected String command = null; field in class:ProcessEnvironment 118 * working directory, command, etc. 132 * working directory, command, etc. 202 sb.append(nullsToBlanks(command)); 215 * Gets derived command string 216 * @return command string 219 return command; 224 * Sets the desired command string 225 * @param command strin 228 setCommand(String command) argument [all...] |
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/ |
H A D | SSIProcessor.java | 116 public void addCommand(String name, SSICommand command) { argument 117 commands.put(name, command); 144 StringBuilder command = new StringBuilder(); 153 command.setLength(0); //clear the command string 165 String strCmd = parseCmd(command); 168 "SSIProcessor.process -- processing command: " 171 String[] paramNames = parseParamNames(command, strCmd 173 String[] paramValues = parseParamValues(command, 183 errorMessage = "Unknown command 356 charCmp(String buf, int index, String command) argument [all...] |
/glassfish-3.1.2/load-balancer/admin/src/main/java/org/glassfish/loadbalancer/admin/cli/ |
H A D | CreateHTTPLoadBalancerCommand.java | 72 * This method supports the create-http-lb CLI command. It creates a lb-config, cluster-ref, health-checker by using 231 final CreateHTTPLBRefCommand command = (CreateHTTPLBRefCommand)runner 233 command.target = target; 234 //command.lbname = load_balancer_name; 235 command.config = lbConfigName; 236 command.lbpolicy = lbpolicy; 237 command.lbpolicymodule = lbpolicymodule; 238 command.healthcheckerurl = healthcheckerurl; 239 command.healthcheckerinterval = healthcheckerinterval; 240 command [all...] |
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ |
H A D | MultimodeCommand.java | 54 * A scaled-down implementation of multi-mode command. 83 * command. The validate method supplies missing options from 161 * @return the exit code of the last command executed 171 * command an empty program options. 199 String command = args[0]; 200 if (command.length() == 0) 205 if (command.equals("exit") || command.equals("quit")) 212 * Every command gets its own copy of program options 214 * command lin [all...] |
H A D | AsadminMain.java | 70 private static String command; field in class:AsadminMain 237 command = args[0]; 244 strings.get("CommandSuccessful", command)); 249 strings.get("CommandSuccessfulWithWarnings", command)); 255 strings.get("CommandUnSuccessful", command)); 260 strings.get("CommandUnSuccessful", command)); 265 strings.get("CommandUnSuccessful", command)); 281 * non-option, which is the command name. 301 command = argv[0]; 305 cmd = CLICommand.getCommand(habitat, command); [all...] |
/glassfish-3.1.2/admin/cli-optional/src/main/java/com/sun/enterprise/admin/cli/optional/ |
H A D | ChangeMasterPasswordCommand.java | 61 * The change-master-password command. 62 * This is a command which can operate on both the DAS and the node 70 * The DAS must be down to run this command. change-master-password supports the --savemasterpassword option. 72 * and the node name. The instances must be down to run this command on a node 77 * If the domain and node have the same name it will execute the command for the domain. Incase 78 * you want the command to be executed for a node when the domain and node name is same 115 CLICommand command = null; 122 command = CLICommand.getCommand(habitat, 124 return command.execute(argv); 128 command [all...] |
/glassfish-3.1.2/registration/registration-impl/src/main/java/com/sun/enterprise/registration/impl/ |
H A D | SysnetTransferManager.java | 86 * @return the number of tags transferred; -1 if the stclient command is not available 151 * Creates and runs a command that invokes stclient to add a service tag 164 * This class reocrds the path to the tool and the "command prefix" needed 167 * command shell to run the command and exits the shell and process when 168 * the single command completes. 187 * Reports whether this stclient command info instance handles the 190 * @return true if this command info handles the OS; false otherwise 198 * Builds the list of client command info objects for the platforms on which 253 * Encapsulates all details related to building and running an stclient command tha 271 private List<String> command; field in class:SysnetTransferManager.STClientCommand [all...] |
/glassfish-3.1.2/orb/orb-connector/src/test/java/org/glassfish/orb/admin/cli/ |
H A D | CreateIiopListenerTest.java | 126 CreateIiopListener command = habitat.getComponent(CreateIiopListener.class); 127 cr.getCommandInvocation("create-iiop-listener", context.getActionReport()).parameters(parameters).execute(command); 157 CreateIiopListener command = habitat.getComponent(CreateIiopListener.class); 158 cr.getCommandInvocation("create-iiop-listener", context.getActionReport()).parameters(parameters).execute(command); 232 CreateIiopListener command = habitat.getComponent(CreateIiopListener.class); 233 cr.getCommandInvocation("create-iiop-listener", context.getActionReport()).parameters(parameters).execute(command); 253 cr.getCommandInvocation("create-iiop-listener", context.getActionReport()).parameters(parameters).execute(command); 270 CreateIiopListener command = habitat.getComponent(CreateIiopListener.class); 271 cr.getCommandInvocation("create-iiop-listener", context.getActionReport()).parameters(parameters).execute(command); 286 CreateIiopListener command [all...] |