public class Target
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Target(java.lang.String name,
java.lang.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.
|
java.util.SortedSet |
getListing(java.lang.String path)
Get the metadata listing for a directory
|
java.lang.String |
getMetaDataDirectory()
Get the meta data directory.
|
java.lang.String |
getName()
Get the target name.
|
boolean |
isBusy() |
FileDescriptor |
lookupMetadataFile(java.lang.String path,
java.lang.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(java.lang.String rootDir,
boolean autoFix)
Validate the metadata
1) Checks whether files and directories have been deleted from the destination filesystem.
|
public Target(java.lang.String name,
java.lang.String metadataDirectory)
name - root - metadata - public boolean validateMetaData(java.lang.String rootDir,
boolean autoFix)
fixit - if true then the validator will attempt to fix the problempublic java.lang.String getName()
public java.lang.String getMetaDataDirectory()
public FileDescriptor lookupMetadataFile(java.lang.String path, java.lang.String fileName)
path - public java.util.SortedSet getListing(java.lang.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 - 2010 Alfresco Software, Inc. All Rights Reserved.