|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.util.updater.DeployDifferences
public class DeployDifferences
Manages information about deployment files such as which files have been added, deleted, etc. The calls to these methods don't necessarily come at a time when a file has actually been added, deleted, etc - these are only called when it has been determined that a file is going to be added, deleted, etc. In other words, don't use this as a realtime listener of events happening during a live deployment; instead, use this as a final report of what happened after a deployment has been completed.
| Constructor Summary | |
|---|---|
DeployDifferences()
|
|
| Method Summary | |
|---|---|
void |
addAddedFile(String path)
|
void |
addAddedFiles(Collection<String> paths)
|
void |
addBackedUpFile(String originalPath,
String backupPath)
|
void |
addChangedFile(String path)
|
void |
addChangedFiles(Collection<String> paths)
|
void |
addDeletedFile(String path)
|
void |
addDeletedFiles(Collection<String> paths)
|
void |
addError(String path,
String errorMsg)
|
void |
addIgnoredFile(String path)
|
void |
addIgnoredFiles(Collection<String> paths)
|
void |
addRealizedFile(String path,
String content)
|
void |
addRestoredFile(String restoredPath,
String backupPath)
|
boolean |
containsAddedFile(String path)
|
boolean |
containsChangedFile(String path)
|
boolean |
containsDeletedFile(String path)
|
boolean |
containsIgnoredFile(String path)
|
String |
convertPath(String path)
Converts the path to the form that will be stored internally. |
Set<String> |
getAddedFiles()
Returns the set of files that have been added. |
Map<String,String> |
getBackedUpFiles()
Returns the set of files that have been backed up. |
Set<String> |
getChangedFiles()
Returns the set of files that have been changed. |
Set<String> |
getDeletedFiles()
Returns the set of files that have been deleted. |
Map<String,String> |
getErrors()
Returns the set of files that caused an error during processing. |
Set<String> |
getIgnoredFiles()
Returns the set of files that have been ignored. |
Map<String,String> |
getRealizedFiles()
Returns the set of files that have been realized. |
Map<String,String> |
getRestoredFiles()
Returns the set of files that have been restored from a backup copy. |
void |
removeAddedFile(String path)
|
void |
removeChangedFile(String path)
|
void |
removeDeletedFile(String path)
|
void |
removeIgnoredFile(String path)
|
void |
setCleaned(boolean cleaned)
|
String |
toString()
|
boolean |
wasCleaned()
Returns true if the delpoyment's destination directory was
wiped of all files/directories before the new deployment files were
copied to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeployDifferences()
| Method Detail |
|---|
public void addIgnoredFile(String path)
public void addIgnoredFiles(Collection<String> paths)
public void removeIgnoredFile(String path)
public boolean containsIgnoredFile(String path)
public void addDeletedFile(String path)
public void addDeletedFiles(Collection<String> paths)
public void removeDeletedFile(String path)
public boolean containsDeletedFile(String path)
public void addAddedFile(String path)
public void addAddedFiles(Collection<String> paths)
public void removeAddedFile(String path)
public boolean containsAddedFile(String path)
public void addChangedFile(String path)
public void addChangedFiles(Collection<String> paths)
public void removeChangedFile(String path)
public boolean containsChangedFile(String path)
public void addBackedUpFile(String originalPath,
String backupPath)
public void addRestoredFile(String restoredPath,
String backupPath)
public void addRealizedFile(String path,
String content)
public void addError(String path,
String errorMsg)
public void setCleaned(boolean cleaned)
public Set<String> getIgnoredFiles()
public Set<String> getDeletedFiles()
public Set<String> getAddedFiles()
public Set<String> getChangedFiles()
public Map<String,String> getBackedUpFiles()
public Map<String,String> getRestoredFiles()
public Map<String,String> getRealizedFiles()
public Map<String,String> getErrors()
public boolean wasCleaned()
true if the delpoyment's destination directory was
wiped of all files/directories before the new deployment files were
copied to it. This means any ignored files or directories that were
in the deployment's destination directory will have been deleted.
public String toString()
toString in class Objectpublic String convertPath(String path)
path - a filepath to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||