|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.deployers.SynapseArtifactDeploymentStore
public final class SynapseArtifactDeploymentStore
Keeps track of the artifacts deployed with files inside the synapse repository
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.
AbstractSynapseArtifactDeployer
,
MultiXMLConfigurationBuilder
Constructor Summary | |
---|---|
SynapseArtifactDeploymentStore()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynapseArtifactDeploymentStore()
Method Detail |
---|
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 existence
true
if it is available, false
if notpublic String getArtifactNameForFile(String fileName)
filename
fileName
- name of the file which maps to the artifact
filename
public void removeArtifactWithFileName(String fileName)
filename
mapping from the holder
fileName
- 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 checked
true
if it is at the updating state, false
otherwisepublic String getUpdatingArtifactWithFileName(String fileName)
fileName
- name of the file from which the artifact is being updated
public 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 checked
true
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 checked
true
if the artifact is being backed up, false
otherwisepublic void removeBackedUpArtifact(String fileName)
fileName
- name of the file of the artifact to be removedpublic static String getNormalizedAbsolutePath(String fileName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |