public class Target extends Object implements Serializable
| Constructor and Description |
|---|
Target(String name,
String metadataDirectory)
Make one up.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cloneMetaData(Deployment deployment)
Clone and update all the metadata files for the commit phase of a deployment.
|
void |
commitMetaData(Deployment deployment)
Commit cloned metadata.
|
SortedSet<FileDescriptor> |
getListing(String path)
Get the metadata listing for a directory
|
String |
getMetaDataDirectory()
Get the meta data directory.
|
String |
getName()
Get the target name.
|
boolean |
isBusy() |
FileDescriptor |
lookupMetadataFile(String path,
String fileName)
Looks up the metadata for the specified file.
|
void |
rollbackMetaData()
Roll back metadata changes.
|
void |
setBusy(boolean busy)
set that this target is busy
|
boolean |
validateMetaData(String rootDir,
boolean autoFix)
Validate the metadata
1) Checks whether files and directories have been deleted from the destination filesystem.
|
public boolean validateMetaData(String rootDir, boolean autoFix)
fixit - if true then the validator will attempt to fix the problempublic String getName()
public String getMetaDataDirectory()
public FileDescriptor lookupMetadataFile(String path, String fileName)
path - public SortedSet<FileDescriptor> getListing(String path)
path - DeploymentException - - the directory does not existpublic void cloneMetaData(Deployment deployment)
deployment - the deploymentpublic void rollbackMetaData()
public void commitMetaData(Deployment deployment)
public void setBusy(boolean busy)
public boolean isBusy()
Copyright © 2005–2014 Alfresco Software. All rights reserved.