|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.deployment.impl.server.Target
public class Target
This class manages the metadata for a Target in the FSR.
Constructor Summary | |
---|---|
Target(java.lang.String name,
java.lang.String metadataDirectory)
Make one up. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Target(java.lang.String name, java.lang.String metadataDirectory)
name
- root
- metadata
- Method Detail |
---|
public boolean validateMetaData(java.lang.String rootDir, boolean autoFix)
fixit
- if true then the validator will attempt to fix the problem
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |