|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.deployment.synchronizer.registry.RegistryBasedArtifactRepository
public class RegistryBasedArtifactRepository
Use this class in conjunction with the DeploymentSynchronizer to synchronize a file system repository against a repository stored in the registry.
| Constructor Summary | |
|---|---|
RegistryBasedArtifactRepository()
|
|
RegistryBasedArtifactRepository(org.wso2.carbon.registry.core.session.UserRegistry registry,
String registryPath,
String basePath)
|
|
| Method Summary | |
|---|---|
boolean |
checkout(int tenantId,
String filePath)
Checkout all or updated artifacts from the remote repository to the local file system |
boolean |
checkout(int tenantId,
String filePath,
int depth)
Checkout artifacts from the remote repository with given depth to the local file system |
void |
cleanupAutoCheckout()
Clean up any actions taken during initializing auto checkout |
void |
cleanupTenantContext(int tenantId)
Cleanup the cached tenant context for the tenant specified by tenantId |
boolean |
commit(int tenantId,
String filePath)
Commit the artifacts in the local repository to the remote repository |
boolean |
equals(Object o)
|
List<RepositoryConfigParameter> |
getParameters()
Get the list of configuration parameters specific for each Repository. |
String |
getRepositoryType()
Get the Repository Type of the Synchronizer |
int |
hashCode()
|
void |
init(int tenantId)
Initializes the remote artifact repository and prepare to synchronize the local repository against it. |
void |
initAutoCheckout(boolean useEventing)
Setup the remote repository for auto checkouts |
boolean |
update(int tenantId,
String rootPath,
String filePath,
int depth)
Invoke the update operation on the specified file in the repository, with given depth |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistryBasedArtifactRepository()
public RegistryBasedArtifactRepository(org.wso2.carbon.registry.core.session.UserRegistry registry,
String registryPath,
String basePath)
| Method Detail |
|---|
public void init(int tenantId)
throws DeploymentSynchronizerException
ArtifactRepository
init in interface ArtifactRepositorytenantId - ID of the tenant to which the synchronizer/repository belongs
DeploymentSynchronizerException - If an error occurs while initializing the repository
public boolean commit(int tenantId,
String filePath)
throws DeploymentSynchronizerException
ArtifactRepository
commit in interface ArtifactRepositorytenantId - tenant IdfilePath - File path of the local repository
DeploymentSynchronizerException - on error
public boolean checkout(int tenantId,
String filePath)
throws DeploymentSynchronizerException
ArtifactRepository
checkout in interface ArtifactRepositorytenantId - tenant IdfilePath - File path of the local repository
DeploymentSynchronizerException - on error
public void initAutoCheckout(boolean useEventing)
throws DeploymentSynchronizerException
ArtifactRepository
initAutoCheckout in interface ArtifactRepositoryuseEventing - If eventing based auto checkout has been requested
DeploymentSynchronizerException - on errorpublic void cleanupAutoCheckout()
ArtifactRepository
cleanupAutoCheckout in interface ArtifactRepositorypublic String getRepositoryType()
ArtifactRepository
getRepositoryType in interface ArtifactRepositorypublic List<RepositoryConfigParameter> getParameters()
ArtifactRepository
getParameters in interface ArtifactRepository
public boolean checkout(int tenantId,
String filePath,
int depth)
throws DeploymentSynchronizerException
ArtifactRepository
checkout in interface ArtifactRepositorytenantId - tenant IdfilePath - File path of the local repositorydepth - - given depth to get the update
DeploymentSynchronizerException - on error
public boolean update(int tenantId,
String rootPath,
String filePath,
int depth)
throws DeploymentSynchronizerException
ArtifactRepository
update in interface ArtifactRepositorytenantId - tenant IdrootPath - - root path of the repository of which the dep-sychronizer is registeredfilePath - - location of the file in the repositorydepth - Depth given to update, (eg 0 - empty, 3 - infinite)
DeploymentSynchronizerException - on errorpublic void cleanupTenantContext(int tenantId)
ArtifactRepository
cleanupTenantContext in interface ArtifactRepositorytenantId - tenant Idpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||