public class DeployDifferences extends Object
| Constructor and Description |
|---|
DeployDifferences() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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 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.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.