public final class SynapseArtifactDeploymentStore extends Object
For hot deployment to properly work we need to, keep track fo not only the artifacts
deployed by deployers but also the artifacts deployed from files at the startup as well. Otherwise
it is not possible to track the hot update cases. This is introduced as a singleton
for the startup to report back for the deployed artifacts at startup apart from the deployers.
Constructor and Description |
---|
SynapseArtifactDeploymentStore() |
Modifier and Type | Method and Description |
---|---|
void |
addArtifact(String fileName,
String artifactName)
Adds artifacts indexed with the respective filename
|
void |
addBackedUpArtifact(String fileName)
Adds an artifact to the backedUp artifacts
|
void |
addRestoredArtifact(String fileName)
Adds an artifact which is being restored
|
void |
addUpdatingArtifact(String fileName,
String artifactName)
Adds an updating artifact for the given instance
|
boolean |
containsFileName(String fileName)
Checks whether there is an artifact indexed with the given
filename |
String |
getArtifactNameForFile(String fileName)
Retrieves the artifact name indexed with the given
filename |
static String |
getNormalizedAbsolutePath(String fileName) |
String |
getUpdatingArtifactWithFileName(String fileName)
Retrieves the artifact name corresponds to the given updating artifact file name
|
boolean |
isBackedUpArtifact(String fileName)
Checks whether the given artifact is being backed up
|
boolean |
isRestoredFile(String fileName)
Checks whether the given artifact is being restored
|
boolean |
isUpdatingArtifact(String fileName)
Checks whether the given artifact is at the updating state in the given instance
|
void |
removeArtifactWithFileName(String fileName)
Removes the indexed artifacts to the
filename mapping from the holder |
void |
removeBackedUpArtifact(String fileName)
Removes a backedUp artifact
|
void |
removeRestoredFile(String fileName)
Removes a restored artifact
|
void |
removeUpdatingArtifact(String fileName)
Removes an updating artifact
|
public void addArtifact(String fileName, String artifactName)
fileName
- name of the file from which the artifact being added is loadedartifactName
- name of the artifact being addedpublic boolean containsFileName(String fileName)
filename
fileName
- artifact filename to be checked for the existencetrue
if it is available, false
if notpublic String getArtifactNameForFile(String fileName)
filename
fileName
- name of the file which maps to the artifactfilename
public void removeArtifactWithFileName(String fileName)
filename
mapping from the holderfileName
- name of the file of which the artifact required to be removedpublic void addUpdatingArtifact(String fileName, String artifactName)
fileName
- name of the file from which the artifact has been loadedartifactName
- name of the actual artifact being updatedpublic boolean isUpdatingArtifact(String fileName)
fileName
- name of the file which describes the artifact to be checkedtrue
if it is at the updating state, false
otherwisepublic String getUpdatingArtifactWithFileName(String fileName)
fileName
- name of the file from which the artifact is being updatedpublic void removeUpdatingArtifact(String fileName)
fileName
- name of the file of the artifact to be removed from the updating artifactspublic void addRestoredArtifact(String fileName)
fileName
- name of the file of the artifact which is being restoredpublic boolean isRestoredFile(String fileName)
fileName
- name of the file to be checkedtrue
if the provided filename describes a restoring artifact,
false
otherwisepublic void removeRestoredFile(String fileName)
fileName
- name of the file of the artifact to be removedpublic void addBackedUpArtifact(String fileName)
fileName
- name of the file of the artifact to be added into the backedUp artifactspublic boolean isBackedUpArtifact(String fileName)
fileName
- name of the file of the artifact to be checkedtrue
if the artifact is being backed up, false
otherwisepublic void removeBackedUpArtifact(String fileName)
fileName
- name of the file of the artifact to be removedCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.