|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.deployment.synchronizer.git.GitBasedArtifactRepository
public class GitBasedArtifactRepository
Git based artifact repository
| Constructor Summary | |
|---|---|
GitBasedArtifactRepository()
|
|
| Method Summary | |
|---|---|
boolean |
checkout(int tenantId,
String localRepoPath)
Method inherited from ArtifactRepository for initializing checkout |
boolean |
checkout(int tenantId,
String filePath,
int depth)
Partial checkout with defined depth. |
void |
cleanupAutoCheckout()
|
void |
cleanupTenantContext(int tenantId)
removed tenant's information from the cache |
boolean |
commit(int tenantId,
String localRepoPath)
Commits any changes in the local repository to the relevant remote repository |
List<org.wso2.carbon.deployment.synchronizer.util.RepositoryConfigParameter> |
getParameters()
|
String |
getRepositoryType()
Return the repository type |
void |
init(int tenantId)
Called at tenant load to do initialization related to the tenant |
void |
initAutoCheckout(boolean b)
|
boolean |
update(int tenantId,
String rootPath,
String filePath,
int depth)
Partial update with defined depth.Currently not supported in GIT. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GitBasedArtifactRepository()
| Method Detail |
|---|
public void init(int tenantId)
throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
init in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorytenantId - id of the tenant
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException - in case of an error
public boolean commit(int tenantId,
String localRepoPath)
throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
commit in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorylocalRepoPath - tenant's local repository path
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException - in case of an error
public boolean checkout(int tenantId,
String localRepoPath)
throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
checkout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorylocalRepoPath - local repository path of the tenant
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException - if an error occurs
public void initAutoCheckout(boolean b)
throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
initAutoCheckout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositoryorg.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerExceptionpublic void cleanupAutoCheckout()
cleanupAutoCheckout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorypublic String getRepositoryType()
getRepositoryType in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorypublic List<org.wso2.carbon.deployment.synchronizer.util.RepositoryConfigParameter> getParameters()
getParameters in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
public boolean checkout(int tenantId,
String filePath,
int depth)
throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
checkout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorytenantId - tenant idfilePath - local repository pathdepth - depth to checkout (0 - 3)
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException - if an error occurs
public boolean update(int tenantId,
String rootPath,
String filePath,
int depth)
throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
update in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorytenantId - tenant IdrootPath - root path to the local repositoryfilePath - path to sub directory to updatedepth - depth to update (0 - 3)
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException - if an error occurspublic void cleanupTenantContext(int tenantId)
cleanupTenantContext in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepositorytenantId - tenant Id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||