public class InstallContext extends Object
| Constructor and Description |
|---|
InstallContext(File installDir,
boolean updateMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRedeployReason(String message)
Adds a change description as a reason for redeploying an installation
|
void |
addRestartReason(File target)
Adds a modified or deleted file as a reason for restarting an installation
|
void |
addRestartReason(String message)
Adds a change description as a reason for restarting an installation
|
io.fabric8.utils.FileChangeInfo |
createChangeInfo(File destFile) |
io.fabric8.utils.FileChangeInfo |
createChangeInfo(File destFile,
Long cachedChecksum) |
File |
getInstallDir() |
List<String> |
getRedeployReasons() |
List<String> |
getRestartReasons() |
boolean |
isRedeployRequired() |
boolean |
isRestartRequired() |
boolean |
isUpdateMode() |
void |
onDeploymentFileWrite(String location,
File target,
io.fabric8.utils.FileChangeInfo oldChangeInfo,
boolean isSharedLibrary)
Deploy a file; if its changed then lets force an update of the deployment checksums for this container
|
io.fabric8.utils.FileChangeInfo |
onFileWrite(File target,
io.fabric8.utils.FileChangeInfo oldChangeInfo)
After a file has been updated perform a check to see if the file really has changed
to determine if we really need to restart an existing process
|
public InstallContext(File installDir, boolean updateMode)
public void addRestartReason(String message)
public void addRestartReason(File target)
public void addRedeployReason(String message)
public File getInstallDir()
public boolean isUpdateMode()
public boolean isRestartRequired()
public boolean isRedeployRequired()
public io.fabric8.utils.FileChangeInfo onFileWrite(File target, io.fabric8.utils.FileChangeInfo oldChangeInfo) throws IOException
IOExceptionpublic void onDeploymentFileWrite(String location, File target, io.fabric8.utils.FileChangeInfo oldChangeInfo, boolean isSharedLibrary) throws IOException
IOExceptionpublic io.fabric8.utils.FileChangeInfo createChangeInfo(File destFile) throws IOException
IOExceptionpublic io.fabric8.utils.FileChangeInfo createChangeInfo(File destFile, Long cachedChecksum) throws IOException
IOExceptionCopyright © 2014 Red Hat. All Rights Reserved.