public class DeploymentOverlayHandler extends BatchModeCommandHandler
accessRequirement, headers, params, requiredAddress
helpArg
Constructor and Description |
---|
DeploymentOverlayHandler(CommandContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.dmr.ModelNode |
add(CommandContext ctx,
boolean stream) |
protected void |
addAddRedeployLinksSteps(CommandContext ctx,
org.jboss.dmr.ModelNode steps,
String overlay,
String serverGroup,
String[] links,
boolean regexp) |
protected void |
addRedeployStep(org.jboss.dmr.ModelNode steps,
String deployment,
String serverGroup) |
protected void |
addRedeploySteps(org.jboss.dmr.ModelNode steps,
String serverGroup,
String linkName,
org.jboss.dmr.ModelNode link,
List<String> remainingDeployments) |
protected void |
addRemoveRedeployLinksSteps(ModelControllerClient client,
org.jboss.dmr.ModelNode steps,
String overlay,
String sgName,
List<String> specifiedLinks,
boolean removeLinks,
byte redeploy) |
protected void |
assertNotPresent(ArgumentWithoutValue arg,
ParsedCommandLine args) |
protected org.jboss.dmr.ModelNode |
buildRequestWithoutHeaders(CommandContext ctx) |
protected void |
doHandle(CommandContext ctx) |
protected List<String> |
filterLinks(org.jboss.dmr.ModelNode linkResources) |
protected String[] |
getLinks(ArgumentWithValue linksArg,
ParsedCommandLine args) |
protected List<String> |
getServerGroupsToLink(CommandContext ctx) |
boolean |
isBatchMode(CommandContext ctx)
Whether the command supports batch mode or not.
|
protected org.jboss.dmr.ModelNode |
link(CommandContext ctx) |
protected void |
listContent(CommandContext ctx) |
protected void |
listLinks(CommandContext ctx) |
protected List<String> |
loadContentFor(ModelControllerClient client,
String overlay) |
protected org.jboss.dmr.ModelNode |
loadLinkResources(ModelControllerClient client,
String overlay,
String serverGroup) |
protected List<String> |
loadLinks(ModelControllerClient client,
String overlay,
String serverGroup) |
protected org.jboss.dmr.ModelNode |
redeployAffected(CommandContext ctx) |
protected org.jboss.dmr.ModelNode |
remove(CommandContext ctx) |
protected AccessRequirement |
setupAccessRequirement(CommandContext ctx) |
protected org.jboss.dmr.ModelNode |
upload(CommandContext ctx,
boolean stream) |
addArgument, addHeaders, addRequiredPath, addRequiredPath, buildRequest, buildRequestWOValidation, cliEvent, displayResponseHeaders, getRequiredAddress, getRequiredType, handleAttachedFile, handleResponse, handleResponse, isAddressValid, isAvailable, isDependsOnProfile, setParams
handle, printHelp, printList
getArgument, getArguments, hasArgument, hasArgument, recognizeArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgument, getArguments, handle, hasArgument, hasArgument
public DeploymentOverlayHandler(CommandContext ctx)
protected AccessRequirement setupAccessRequirement(CommandContext ctx)
setupAccessRequirement
in class BaseOperationCommand
public boolean isBatchMode(CommandContext ctx)
CommandHandler
isBatchMode
in interface CommandHandler
isBatchMode
in class BatchModeCommandHandler
ctx
- the current contextprotected void doHandle(CommandContext ctx) throws CommandLineException
doHandle
in class BaseOperationCommand
CommandLineException
protected org.jboss.dmr.ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException
buildRequestWithoutHeaders
in class BaseOperationCommand
CommandFormatException
protected org.jboss.dmr.ModelNode redeployAffected(CommandContext ctx) throws CommandLineException
CommandLineException
protected void listLinks(CommandContext ctx) throws CommandLineException
CommandLineException
protected void listContent(CommandContext ctx) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode remove(CommandContext ctx) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode add(CommandContext ctx, boolean stream) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode link(CommandContext ctx) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode upload(CommandContext ctx, boolean stream) throws CommandLineException
CommandLineException
protected List<String> loadContentFor(ModelControllerClient client, String overlay) throws CommandLineException
CommandLineException
protected List<String> loadLinks(ModelControllerClient client, String overlay, String serverGroup) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode loadLinkResources(ModelControllerClient client, String overlay, String serverGroup) throws CommandLineException
CommandLineException
protected void addRedeployStep(org.jboss.dmr.ModelNode steps, String deployment, String serverGroup)
protected String[] getLinks(ArgumentWithValue linksArg, ParsedCommandLine args) throws CommandFormatException
CommandFormatException
protected List<String> getServerGroupsToLink(CommandContext ctx) throws CommandFormatException
CommandFormatException
protected void addAddRedeployLinksSteps(CommandContext ctx, org.jboss.dmr.ModelNode steps, String overlay, String serverGroup, String[] links, boolean regexp) throws CommandLineException
CommandLineException
protected void addRemoveRedeployLinksSteps(ModelControllerClient client, org.jboss.dmr.ModelNode steps, String overlay, String sgName, List<String> specifiedLinks, boolean removeLinks, byte redeploy) throws CommandLineException
CommandLineException
protected void addRedeploySteps(org.jboss.dmr.ModelNode steps, String serverGroup, String linkName, org.jboss.dmr.ModelNode link, List<String> remainingDeployments)
protected void assertNotPresent(ArgumentWithoutValue arg, ParsedCommandLine args) throws CommandFormatException
CommandFormatException
Copyright © 2023 JBoss by Red Hat. All rights reserved.