org.wso2.carbon.registry.dump
Class RegistryToFileSystemHandler

java.lang.Object
  extended by org.wso2.carbon.registry.dump.RegistryToFileSystemHandler

public class RegistryToFileSystemHandler
extends Object

This class performs operations to dump a registry path to file system. This includes copying files, storing meta data, identifying modified files when updating etc.


Constructor Summary
RegistryToFileSystemHandler(Registry registry)
           
 
Method Summary
 void dumpToFilesystem(String registryPath, String startingDir)
          Dumps a registry path into a given directory in the file system
 void dumpToFilesystem(String registryPath, String startingDir, String metaDir)
          Dumps a registry path into a given directory in the file system
 void update(String registryPath, String startingDir, String metaStartingDir)
          Updates an already checked out directory if there are updated files in the registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryToFileSystemHandler

public RegistryToFileSystemHandler(Registry registry)
Method Detail

dumpToFilesystem

public void dumpToFilesystem(String registryPath,
                             String startingDir)
                      throws Exception
Dumps a registry path into a given directory in the file system

Parameters:
registryPath - - registry collection path
startingDir - - directory to store files
Throws:
Exception - - on error

dumpToFilesystem

public void dumpToFilesystem(String registryPath,
                             String startingDir,
                             String metaDir)
                      throws Exception
Dumps a registry path into a given directory in the file system

Parameters:
registryPath - - registry collection path
startingDir - - directory to store files
metaDir - - directory to store meta info. if this null, startingDir is used for meta
Throws:
Exception - - on error

update

public void update(String registryPath,
                   String startingDir,
                   String metaStartingDir)
            throws Exception
Updates an already checked out directory if there are updated files in the registry

Parameters:
registryPath - - registry path to update
startingDir - - dir to update
metaStartingDir - - dir to find meta info
Throws:
Exception - - on error


Copyright © 2010. All Rights Reserved.