| Modifier and Type | Field and Description |
|---|---|
protected ParameterMap |
CLICommand.options
The options parsed from the command line.
|
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
Parser.getOptions()
Returns a Map with all the options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ProgramOptions.updateOptions(ParameterMap newOptions)
Update the program options based on the specified
options from the command line.
|
| Constructor and Description |
|---|
ProgramOptions(ParameterMap options,
Environment env)
Initialize the programoptions based on parameters parsed
from the command line, with defaults supplied by the
environment.
|
| Modifier and Type | Field and Description |
|---|---|
protected ParameterMap |
RemoteCLICommand.reExecutedOptions |
| Modifier and Type | Field and Description |
|---|---|
protected ParameterMap |
RemoteRestAdminCommand.options |
protected ParameterMap |
RemoteAdminCommand.options |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
ParamsWithPayload.getParameters() |
| Modifier and Type | Method and Description |
|---|---|
String |
RemoteRestAdminCommand.executeCommand(ParameterMap opts)
Run the command using the specified arguments.
|
String |
RemoteAdminCommand.executeCommand(ParameterMap opts)
Run the command using the specified arguments.
|
| Constructor and Description |
|---|
ParamsWithPayload(RestPayloadImpl.Inbound payloadInbound,
ParameterMap parameters,
ActionReport actionReport) |
ParamsWithPayload(RestPayloadImpl.Outbound payloadOutbound,
ParameterMap parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
MultipartProprietaryWriter.writeTo(Payload.Outbound payload,
ParameterMap parameters,
ActionReport ar,
OutputStream os,
MultipartProprietaryWriter.ContentTypeWriter contentTypeWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
InstanceStateService.addFailedCommandToInstance(String instance,
String cmd,
ParameterMap params) |
void |
InstanceStateServiceImpl.addFailedCommandToInstance(String instance,
String cmd,
ParameterMap params) |
static ActionReport.ExitCode |
ClusterOperationUtil.replicateCommand(String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
FailurePolicy neverStartedPolicy,
Collection<String> targetNames,
AdminCommandContext context,
ParameterMap parameters,
org.glassfish.hk2.api.ServiceLocator habitat) |
static ActionReport.ExitCode |
ClusterOperationUtil.replicateCommand(String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
FailurePolicy neverStartedPolicy,
Collection<String> targetNames,
AdminCommandContext context,
ParameterMap parameters,
org.glassfish.hk2.api.ServiceLocator habitat,
File intermediateDownloadDir)
Replicates a given command on the given list of targets, optionally gathering
downloaded result payloads from the instance commands into a directory.
|
static ActionReport.ExitCode |
ClusterOperationUtil.replicateCommand(String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
FailurePolicy neverStartedPolicy,
List<Server> instancesForReplication,
AdminCommandContext context,
ParameterMap parameters,
org.glassfish.hk2.api.ServiceLocator habitat) |
static ActionReport.ExitCode |
ClusterOperationUtil.replicateCommand(String commandName,
FailurePolicy failPolicy,
FailurePolicy offlinePolicy,
FailurePolicy neverStartedPolicy,
List<Server> instancesForReplication,
AdminCommandContext context,
ParameterMap parameters,
org.glassfish.hk2.api.ServiceLocator habitat,
File intermediateDownloadDir)
Replicates a given command on the given list of targets, optionally gathering
downloaded result payloads from the instance commands into a directory.
|
| Constructor and Description |
|---|
InstanceCommandExecutor(org.glassfish.hk2.api.ServiceLocator habitat,
String name,
FailurePolicy fail,
FailurePolicy offline,
Server server,
String host,
int port,
Logger logger,
ParameterMap p,
ActionReport r,
InstanceCommandResult res) |
InstanceRestCommandExecutor(org.glassfish.hk2.api.ServiceLocator habitat,
String name,
FailurePolicy fail,
FailurePolicy offline,
Server server,
String host,
int port,
Logger logger,
ParameterMap p,
ActionReport r,
InstanceCommandResult res) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
AdminCommandInstanceImpl.getParameters() |
| Modifier and Type | Method and Description |
|---|---|
Job |
JobCreatorService.createJob(String id,
String scope,
String name,
Subject subject,
boolean isManagedJob,
ParameterMap parameters)
This will create a new job with the name of command and a new unused id for the job
|
ActionReport.ExitCode |
SupplementalCommandExecutorImpl.execute(Collection<SupplementalCommandExecutor.SupplementalCommand> supplementals,
Supplemental.Timing time,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.MultiMap<String,File> optionFileMap) |
ActionReport |
InserverCommandRunnerHelper.runCommand(String command,
ParameterMap parameters,
ActionReport report,
Subject subject) |
| Constructor and Description |
|---|
AdminCommandInstanceImpl(String id,
String name,
String commandScope,
Subject sub,
boolean managedJob,
ParameterMap parameters) |
AdminCommandInstanceImpl(String name,
String scope,
Subject sub,
boolean managedJob,
ParameterMap parameters) |
| Modifier and Type | Method and Description |
|---|---|
ActionReport.ExitCode |
GlassFishClusterExecutor.execute(String commandName,
AdminCommand command,
AdminCommandContext context,
ParameterMap parameters)
Execute the passed command on targeted remote instances.
|
protected void |
CreateNodeSshCommand.populateParameters(ParameterMap pmap) |
protected abstract void |
CreateRemoteNodeCommand.populateParameters(ParameterMap pmap) |
ActionReport |
ClusterCommandHelper.runCommand(String command,
ParameterMap map,
String targetName,
AdminCommandContext context,
boolean verbose)
Loop through all instances in a cluster and execute a command for each one.
|
ActionReport |
ClusterCommandHelper.runCommand(String command,
ParameterMap map,
String targetName,
AdminCommandContext context,
boolean verbose,
boolean rolling)
Loop through all instances in a cluster and execute a command for each one.
|
protected abstract void |
DeleteNodeRemoteCommand.setTypeSpecificOperands(List<String> command,
ParameterMap map) |
protected void |
DeleteNodeSshCommand.setTypeSpecificOperands(List<String> command,
ParameterMap commandParameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
CreateNodeDcom.populateParameters(ParameterMap pmap) |
protected void |
DeleteNodeDcom.setTypeSpecificOperands(List<String> command,
ParameterMap map) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
ApplicationLifecycle.prepareInstanceDeployParamMap(DeploymentContext dc) |
| Modifier and Type | Method and Description |
|---|---|
void |
AsadminRecorderService.recordAsadminCommand(String commandName,
ParameterMap parameters)
Records a given asadmin command
|
| Modifier and Type | Method and Description |
|---|---|
void |
AdminAuditService.recordAsadminCommand(String command,
ParameterMap parameters,
Subject subject) |
| Modifier and Type | Method and Description |
|---|---|
String |
SetHazelcastConfiguration.getTarget(ParameterMap pm) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
RestExtension.post(Object data) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
CompositeUtil.addToParameterMap(ParameterMap parameters,
String basePath,
Class<?> configBean,
Object source,
Subject subject) |
ParameterMap |
CompositeResource.CommandInvoker.getParams() |
protected ParameterMap |
CompositeResource.parameterMap() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response |
CompositeResource.accepted(String command,
ParameterMap parameters,
URI childUri) |
ParameterMap |
CompositeUtil.addToParameterMap(ParameterMap parameters,
String basePath,
Class<?> configBean,
Object source,
Subject subject) |
protected ActionReporter |
CompositeResource.executeCommand(String command,
ParameterMap parameters,
javax.ws.rs.core.Response.Status status,
boolean includeFailureMessage,
boolean throwOnWarning)
Execute an
AdminCommand with the specified parameters. |
ActionReporter |
CompositeUtil.executeCommand(Subject subject,
String command,
ParameterMap parameters,
javax.ws.rs.core.Response.Status status,
boolean includeFailureMessage,
boolean throwOnWarning,
boolean managed)
Execute an
AdminCommand with the specified parameters. |
protected ActionReporter |
CompositeResource.executeDeleteCommand(String command,
ParameterMap parameters)
Execute a delete
AdminCommand with the specified parameters. |
ActionReporter |
CompositeUtil.executeDeleteCommand(Subject subject,
String command,
ParameterMap parameters)
Execute a delete
AdminCommand with the specified parameters. |
protected ActionReporter |
CompositeResource.executeDeleteCommandManaged(String command,
ParameterMap parameters)
Execute a delete
AdminCommand with the specified parameters. |
ActionReporter |
CompositeUtil.executeDeleteCommandManaged(Subject subject,
String command,
ParameterMap parameters)
Execute a delete
AdminCommand with the specified parameters. |
protected ActionReporter |
CompositeResource.executeReadCommand(String command,
ParameterMap parameters)
Execute a read-only
AdminCommand with no parameters. |
ActionReporter |
CompositeUtil.executeReadCommand(Subject subject,
String command,
ParameterMap parameters)
Execute a read-only
AdminCommand with no parameters. |
org.glassfish.jersey.media.sse.EventOutput |
CompositeUtil.executeSseCommand(Subject subject,
String command,
ParameterMap parameters)
Execute an
AdminCommand with the specified parameters and
return EventOutput suitable for SSE. |
protected org.glassfish.jersey.media.sse.EventOutput |
CompositeResource.executeSseCommand(Subject subject,
String command,
ParameterMap parameters)
Execute an
AdminCommand with the specified parameters and
return EventOutput suitable for SSE. |
protected org.glassfish.jersey.media.sse.EventOutput |
CompositeResource.executeSseCommand(Subject subject,
String command,
ParameterMap parameters,
ResponseBodyBuilder builder)
Execute an
AdminCommand via SSE, but provide an ActionReportProcessor that allows
the calling resource, via an EntityBuilder instance, to return a ResponseBody that
extra information such as the newly create entity, as well as any messages returned by the subsystem. |
org.glassfish.jersey.media.sse.EventOutput |
CompositeUtil.executeSseCommand(Subject subject,
String command,
ParameterMap parameters,
SseCommandHelper.ActionReportProcessor processor)
Execute an
AdminCommand with the specified parameters and
return EventOutput suitable for SSE. |
protected org.glassfish.jersey.media.sse.EventOutput |
CompositeResource.executeSseCommand(Subject subject,
String command,
ParameterMap parameters,
SseCommandHelper.ActionReportProcessor processor)
Execute an
AdminCommand with the specified parameters and
return EventOutput suitable for SSE. |
protected ActionReporter |
CompositeResource.executeWriteCommand(String command,
ParameterMap parameters)
Execute a writing
AdminCommand with the specified parameters. |
ActionReporter |
CompositeUtil.executeWriteCommand(Subject subject,
String command,
ParameterMap parameters)
Execute a writing
AdminCommand with the specified parameters. |
protected ActionReporter |
CompositeResource.executeWriteCommandManaged(String command,
ParameterMap parameters)
Execute a writing
AdminCommand with the specified parameters. |
ActionReporter |
CompositeUtil.executeWriteCommandManaged(Subject subject,
String command,
ParameterMap parameters)
Execute a writing
AdminCommand with the specified parameters as managed job. |
protected URI |
CompositeResource.launchDetachedCommand(String command,
ParameterMap parameters) |
protected javax.ws.rs.core.Response |
LegacyCompositeResource.legacyAccepted(String command,
ParameterMap parameters) |
protected javax.ws.rs.core.Response |
LegacyCompositeResource.legacyAccepted(String command,
ParameterMap parameters,
URI childUri) |
void |
CompositeResource.CommandInvoker.setParams(ParameterMap val) |
| Constructor and Description |
|---|
CommandInvoker(String command,
ParameterMap params,
String successMessage) |
CreateCommandInvoker(String command,
ParameterMap params,
String successMessage,
String newItemName) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
ParameterMapFormReader.readFrom(Class<ParameterMap> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream in) |
ParameterMap |
JsonParameterMapProvider.readFrom(Class<ParameterMap> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
ParameterMapFormReader.readFrom(Class<ParameterMap> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream in) |
ParameterMap |
JsonParameterMapProvider.readFrom(Class<ParameterMap> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
TemplateExecCommand.addQueryString(javax.ws.rs.core.MultivaluedMap<String,String> qs,
ParameterMap data) |
protected void |
TemplateExecCommand.adjustParameters(ParameterMap data) |
protected CommandResult |
TemplateExecCommand.executeCommand(ParameterMap data) |
protected javax.ws.rs.core.Response |
TemplateExecCommand.executeCommandAsSse(ParameterMap data) |
protected javax.ws.rs.core.Response |
TemplateExecCommand.executeCommandLegacyFormat(ParameterMap data) |
javax.ws.rs.core.Response |
TemplateCommandDeleteResource.hack(ParameterMap data) |
protected void |
TemplateExecCommand.processCommandParams(ParameterMap data) |
CommandResult |
TemplateCommandDeleteResource.processDelete(ParameterMap data) |
javax.ws.rs.core.Response |
TemplateCommandDeleteResource.processDeleteLegacyFormat(ParameterMap data) |
javax.ws.rs.core.Response |
TemplateCommandDeleteResource.processDeleteSse(ParameterMap data) |
CommandResult |
TemplateCommandPostResource.processPost(ParameterMap data) |
javax.ws.rs.core.Response |
TemplateCommandPostResource.processPostLegacyFormat(ParameterMap data) |
javax.ws.rs.core.Response |
TemplateCommandPostResource.processSsePost(ParameterMap data) |
protected void |
TemplateExecCommand.purgeEmptyEntries(ParameterMap data) |
protected boolean |
TemplateExecCommand.renameParameter(ParameterMap data,
String parameterToRename,
String newName) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
CommandResource.execCommandSimpInMultOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data) |
javax.ws.rs.core.Response |
CommandResource.execCommandSimpInSimpOut(String command,
String indent,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data) |
javax.ws.rs.core.Response |
CommandResource.execCommandSimpInSseOut(String command,
String modelETag,
javax.ws.rs.core.Cookie jSessionId,
ParameterMap data) |
| Modifier and Type | Method and Description |
|---|---|
protected ParameterMap |
JobResource.getParameters() |
protected ParameterMap |
JobsResource.getParameters() |
| Modifier and Type | Method and Description |
|---|---|
static ParameterMap |
Util.parameterMap()
Convenience wrapper around ParameterMap constructor to make it easier to use its fluent API
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ResourceUtil.addCommandLog(RestActionReporter ar,
String commandName,
ParameterMap parameters) |
static String |
ResourceUtil.getParameterList(ParameterMap parameters) |
static RestActionReporter |
ResourceUtil.runCommand(String commandName,
ParameterMap parameters,
Subject subject)
Executes the specified __asadmin command.
|
static RestActionReporter |
ResourceUtil.runCommand(String commandName,
ParameterMap parameters,
Subject subject,
boolean managedJob)
Executes the specified __asadmin command.
|
static org.glassfish.jersey.media.sse.EventOutput |
ResourceUtil.runCommandWithSse(String commandName,
ParameterMap parameters,
Subject subject,
SseCommandHelper.ActionReportProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
Job.getParameters() |
ParameterMap |
ParameterMap.insert(String k,
String v)
Fluent API for adding parameters to the map.
|
| Modifier and Type | Method and Description |
|---|---|
Job |
JobCreator.createJob(String id,
String scope,
String name,
Subject subject,
boolean isManagedJob,
ParameterMap parameters) |
ActionReport.ExitCode |
SupplementalCommandExecutor.execute(Collection<SupplementalCommandExecutor.SupplementalCommand> supplementals,
Supplemental.Timing time,
AdminCommandContext context,
ParameterMap parameters,
org.jvnet.hk2.component.MultiMap<String,File> optionFileMap) |
ActionReport.ExitCode |
ClusterExecutor.execute(String commandName,
AdminCommand command,
AdminCommandContext context,
ParameterMap parameters)
Execute the passed command on targeted remote instances.
|
ActionReport.ExitCode |
TargetBasedExecutor.execute(String commandName,
AdminCommand command,
AdminCommandContext context,
ParameterMap parameters) |
List<String> |
ParameterBridge.get(ParameterMap map,
String resourceName)
Returns the parameter values as expected by the injection code when a dependency
injection annotated field or method (for instance, annotated with @Param
or @Inject) needs to be resolved.
|
List<String> |
ParameterBridge.NoMapper.get(ParameterMap map,
String resourceName) |
String |
ParameterBridge.getOne(ParameterMap map,
String resourceName)
Returns the parameter value as expected by the injection code when a dependency
injection annotated field or method (for instance, annotated with @Param
or @Inject) needs to be resolved.
|
String |
ParameterBridge.NoMapper.getOne(ParameterMap map,
String resourceName) |
CommandRunner.CommandInvocation |
CommandRunner.CommandInvocation.parameters(ParameterMap params)
Sets the command parameters as a ParameterMap.
|
| Constructor and Description |
|---|
ParameterMap(ParameterMap base)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ListBatchJobExecutionsProxy.fillParameterMap(ParameterMap parameterMap) |
protected void |
AbstractListCommandProxy.fillParameterMap(ParameterMap parameterMap) |
protected void |
ListBatchJobStepsProxy.fillParameterMap(ParameterMap parameterMap) |
protected void |
ListBatchJobsProxy.fillParameterMap(ParameterMap parameterMap) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
ParameterMapExtractor.extract()
Creates a ParameterMap from the @Param fields defined on the
injected objects provided in the constructor call.
|
ParameterMap |
ParameterMapExtractor.extract(Collection<String> parameterNamesToExclude)
Creates a ParameterMap from the @Param fields defined on the
injected objects provided in the constructor call, excluding selected parameters.
|
| Constructor and Description |
|---|
MapInjectionResolver(CommandModel model,
ParameterMap parameters) |
MapInjectionResolver(CommandModel model,
ParameterMap parameters,
org.jvnet.hk2.component.MultiMap<String,File> optionNameToUploadedFileMap) |
| Modifier and Type | Method and Description |
|---|---|
String |
UndeployCommand.getTarget(ParameterMap parameters) |
String |
EnableCommand.getTarget(ParameterMap parameters) |
String |
DisableCommand.getTarget(ParameterMap parameters) |
static String |
DeploymentCommandUtils.getTarget(ParameterMap parameters,
OpsParams.Origin origin,
Deployment deployment) |
| Modifier and Type | Method and Description |
|---|---|
ActionReport.ExitCode |
UndoableCommand.prepare(AdminCommandContext context,
ParameterMap parameters)
Checks whether the command execution has a chance of success before the execution is
attempted.
|
void |
UndoableCommand.undo(AdminCommandContext context,
ParameterMap parameters,
List<Server> instances)
Undo a previously successful execution of the command implementation.
|
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
Deployment.prepareInstanceDeployParamMap(DeploymentContext dc) |
| Modifier and Type | Method and Description |
|---|---|
String |
DeploymentTargetResolver.getTarget(ParameterMap parameters) |
| Modifier and Type | Method and Description |
|---|---|
ParameterMap |
CommandParameters.getOptions() |
Copyright © 2019. All rights reserved.