public abstract class PatchOperationTarget extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
PatchOperationTarget.LocalPatchOperationTarget |
protected static class |
PatchOperationTarget.RemotePatchOperationTarget |
Constructor and Description |
---|
PatchOperationTarget() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.jboss.dmr.ModelNode |
applyPatch(File file,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder) |
static PatchOperationTarget |
createHost(String hostName,
ModelControllerClient client)
Create a host target.
|
static PatchOperationTarget |
createLocal(File jbossHome,
List<File> moduleRoots,
List<File> bundlesRoots)
Create a local target.
|
static PatchOperationTarget |
createStandalone(ModelControllerClient controllerClient)
Create a standalone target.
|
static void |
formatFailedResponse(PatchingException e,
org.jboss.dmr.ModelNode failureDescription) |
protected abstract org.jboss.dmr.ModelNode |
history() |
protected abstract org.jboss.dmr.ModelNode |
info() |
protected abstract org.jboss.dmr.ModelNode |
rollback(String patchId,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean rollbackTo,
boolean restoreConfiguration) |
protected abstract org.jboss.dmr.ModelNode |
rollbackLast(org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean restoreConfiguration) |
public static final PatchOperationTarget createLocal(File jbossHome, List<File> moduleRoots, List<File> bundlesRoots) throws IOException
jbossHome
- the jboss homemoduleRoots
- the module rootsbundlesRoots
- the bundle rootsIOException
public static final PatchOperationTarget createStandalone(ModelControllerClient controllerClient)
controllerClient
- the connected controller client to a standalone instance.public static final PatchOperationTarget createHost(String hostName, ModelControllerClient client)
hostName
- the host nameclient
- the connected controller client to the master host.protected abstract org.jboss.dmr.ModelNode info() throws IOException
IOException
protected abstract org.jboss.dmr.ModelNode history() throws IOException
IOException
protected abstract org.jboss.dmr.ModelNode applyPatch(File file, org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder) throws IOException
IOException
protected abstract org.jboss.dmr.ModelNode rollback(String patchId, org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder, boolean rollbackTo, boolean restoreConfiguration) throws IOException
IOException
protected abstract org.jboss.dmr.ModelNode rollbackLast(org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder, boolean restoreConfiguration) throws IOException
IOException
public static void formatFailedResponse(PatchingException e, org.jboss.dmr.ModelNode failureDescription)
Copyright © 2013 JBoss by Red Hat. All rights reserved.