Searched defs:command (Results 1 - 25 of 52) sorted by relevance

123

/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/admin/
H A DClusterExecutor.java57 * <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 DCommandRunner.java68 * Retuns the command model for a command name
70 * @param name command name
72 * @return model for this command (list of parameters,etc...), null if command
78 * Obtain and return the command implementation defined by the passed commandName
80 * @param commandName command name as typed by users
81 * @param report report used to communicate command status back to the user
83 * @return command registered under commandName or null if not found.
88 * Obtain a new command invocatio
147 execute(AdminCommand command) argument
[all...]
H A DExecuteOn.java50 * 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/common/simple-glassfish-api/src/main/java/org/glassfish/embeddable/
H A DCommandRunner.java44 * 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/core/kernel/src/main/java/com/sun/enterprise/v3/admin/
H A DInserverCommandRunnerHelper.java79 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 DPrivateAdminAdapter.java64 protected boolean validatePrivacy(AdminCommand command) { argument
65 Visibility visibility = command.getClass().getAnnotation(Visibility.class);
H A DPublicAdminAdapter.java67 protected boolean validatePrivacy(AdminCommand command) { argument
68 Visibility visibility = command.getClass().getAnnotation(Visibility.class);
H A DListCommandsCommand.java62 * 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/cluster/admin/src/main/java/com/sun/enterprise/v3/admin/cluster/
H A DDeleteNodeSshCommand.java51 * 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 DGlassFishClusterExecutor.java106 * <p>Execute the passed command on targeted remote instances. The list of remote
113 * @param commandName the command to execute
114 * @param context the original command context
115 * @param parameters the parameters passed to the original local command
119 public ActionReport.ExitCode execute(String commandName, AdminCommand command, AdminCommandContext context, ParameterMap parameters) { argument
123 CommandModelProvider c = (CommandModelProvider) command;
126 model = new CommandModelImpl(command.getClass());
157 "WARNING: The command was not replicated to all cluster instances because the" +
187 "WARNING: The command was not replicated to all cluster instances because the"
199 "Did not find any suitable instances for target {0}; command execute
[all...]
H A DClusterCommandHelper.java73 * asadmin command in the DAS for each instance in a cluster. For example
101 * Loop through all instances in a cluster and execute a command for
104 * @param command The string of the command to run. The instance
105 * name will be used as the operand for the command.
106 * @param map A map of parameters to use for the command. May be
107 * null if no parameters. When the command is
111 * to run the command against.
113 * command.
119 String command,
118 runCommand( String command, ParameterMap map, String clusterName, AdminCommandContext context, boolean verbose) argument
[all...]
H A DDeleteInstanceCommand.java59 * 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 DDeleteNodeDcom.java77 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/common/common-util/src/main/java/com/sun/enterprise/universal/process/
H A DLocalAdminCommand.java50 * Very simple -- run an Asadmin command.
56 public LocalAdminCommand(String command, String... args) { argument
59 cmds.add(command);
75 pm.execute(); // blocks until command is complete
/glassfish-3.1.2/connectors/admin/src/test/java/org/glassfish/connectors/admin/cli/
H A DCreateCustomResourceTest.java72 private CreateCustomResource command = null; field in class:CreateCustomResourceTest
89 command = habitat.getComponent(CreateCustomResource.class);
90 assertTrue(command != null);
131 //Call CommandRunnerImpl.doCommand(..) to execute the command
132 cr.getCommandInvocation("create-custom-resource", context.getActionReport()).parameters(parameters).execute(command);
186 //Call CommandRunnerImpl.doCommand(..) to execute the command
187 cr.getCommandInvocation("create-custom-resource", context.getActionReport()).parameters(parameters).execute(command);
206 //Try to create a duplicate resource dupRes. Get a new instance of the command.
241 //Call CommandRunnerImpl.doCommand(..) to execute the command
242 cr.getCommandInvocation("create-custom-resource", context.getActionReport()).parameters(parameters).execute(command);
[all...]
/glassfish-3.1.2/deployment/admin/src/main/java/org/glassfish/deployment/admin/
H A DDeploymentCommandUtils.java71 * Replicates an enable or disable command to all instances in the cluster
74 * @param commandName name of the command to replicate to cluster instances
79 * @param context command context passed to the running enable or disable command
80 * @param command command object
90 final AdminCommand command) throws IllegalArgumentException, IllegalAccessException {
92 * If the target is a cluster instance, the DAS will broadcast the command
97 final ParameterMapExtractor extractor = new ParameterMapExtractor(command);
83 replicateEnableDisableToContainingCluster( final String commandName, final Domain domain, final String target, final String appName, final Habitat habitat, final AdminCommandContext context, final AdminCommand command) argument
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/generator/
H A DCommandResourceMetaData.java50 public String command; field in class:CommandResourceMetaData
68 metaData.command = currentRow[1];
145 //{config-bean, command, method, resource-path, command-action, command-params...}
215 {"Domain", "_gms-announce-after-start-cluster-command", "POST", "_gms-announce-after-start-cluster-command", "_gms-announce-after-start-cluster-command"},
216 {"Domain", "_gms-announce-after-stop-cluster-command", "POST", "_gms-announce-after-stop-cluster-command", "_gm
[all...]
/glassfish-3.1.2/core/kernel/src/test/java/com/sun/enterprise/v3/admin/
H A DCreateProfilerTest.java77 private CreateProfiler command = null; field in class:CreateProfilerTest
101 // Get an instance of the CreateProfiler command
102 command = habitat.getComponent(CreateProfiler.class);
103 assertTrue(command!=null);
133 // Set the options and operand to pass to the command
141 //Call CommandRunnerImpl.doCommand(..) to execute the command
142 cr.getCommandInvocation("create-profiler", context.getActionReport()).parameters(parameters).execute(command);
188 //Call CommandRunnerImpl.doCommand(..) to execute the command
189 cr.getCommandInvocation("create-profiler", context.getActionReport()).parameters(parameters).execute(command);
222 //Call CommandRunnerImpl.doCommand(..) to execute the command
[all...]
/glassfish-3.1.2/deployment/autodeploy/src/main/java/org/glassfish/deployment/autodeploy/
H A DAutoOperation.java92 private AdminCommand command; field in class:AutoOperation
103 * @param props command-line options to be passed to the relevant AdminCommand (deploy or undeploy)
104 * @param commandName name of the command to execute
105 * @param command the AdminCommand descendant to execute
108 AutoOperation init(File file, Properties props, String commandName, AdminCommand command) { argument
112 this.command = command;
118 * outcome of the command as given in the status.
145 inv.parameters(p).execute(command);
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/embeddable/
H A DCommandExecutorImpl.java86 public CommandResult run(String command, String... args){ argument
88 ActionReport actionReport = executeCommand(command, args);
95 ParameterMap getParameters(String command, String[] args) throws CommandException { argument
96 CommandModel commandModel = commandRunner.getModel(command, logger);
97 if (command == null) {
98 throw new CommandException("No command called " + command);
112 // if command has a "terse" option, set it in options
116 // Read the passwords from the password file and set it in command options.
140 /* package */ ActionReport executeCommand(String command, Strin argument
[all...]
/glassfish-3.1.2/cluster/ssh/src/main/java/org/glassfish/cluster/ssh/connect/
H A DNodeRunnerDcom.java102 logger.info(Strings.get("remote.command.summary", humanreadable, out));
107 "remote.command.error", ex.getMessage(), humanreadable), ex);
118 private static String commandListToString(List<String> command) { argument
121 for (String s : command) {
H A DNodeRunnerSsh.java114 // will locate the command (.exe or .bat) for us
120 trace("Running command on " + node.getNodeHost() + ": " +
164 private String commandListToString(List<String> command) { argument
167 for (String s : command) {
/glassfish-3.1.2/common/amx-core/src/main/java/org/glassfish/admin/amx/base/
H A DRuntimeRoot.java124 Execute a REST command. Do not include a leading "/".
127 public String executeREST(@Param(name = "command") final String command); argument
134 included; simply append the command string and call {@link #executeREST}.
/glassfish-3.1.2/jdbc/admin/src/test/java/org/glassfish/jdbc/admin/cli/
H A DCreateJdbcResourceTest.java77 private CreateJdbcResource command = null; field in class:CreateJdbcResourceTest
101 // Get an instance of the CreateJdbcResource command
102 command = habitat.getComponent(CreateJdbcResource.class);
103 assertTrue(command!=null);
105 // Set the options and operand to pass to the command
160 //Call CommandRunnerImpl.doCommand(..) to execute the command
161 cr.getCommandInvocation("create-jdbc-resource", context.getActionReport()).parameters(parameters).execute(command);
214 //Call CommandRunnerImpl.doCommand(..) to execute the command
215 cr.getCommandInvocation("create-jdbc-resource", context.getActionReport()).parameters(parameters).execute(command);
252 //Call CommandRunnerImpl.doCommand(..) to execute the command
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/ssi/
H A DSSIProcessor.java116 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...]

Completed in 4007 milliseconds

123