Class DeploymentSynchronizerServiceImpl
java.lang.Object
org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl
- All Implemented Interfaces:
org.wso2.carbon.core.deployment.DeploymentSynchronizer,DeploymentSynchronizerService
public class DeploymentSynchronizerServiceImpl
extends Object
implements DeploymentSynchronizerService, org.wso2.carbon.core.deployment.DeploymentSynchronizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanInvoke the checkout operation on the specified repositorybooleanDeprecated.booleancommit(int tenantId) booleanInvoke the commit operation on the specified repositorybooleanInvoke the commit operation on the specified repository at rootPath, with the given filePath to commit.longgetLastCheckoutTime(String filePath) Gets the time at which the checkout operation was last invoked on the given repositorylonggetLastCommitTime(String filePath) Gets the time at which the commit operation was last invoked on the given repositorybooleanisAutoCheckoutOn(String filePath) Check whether auto checkout has been engaged on the specified repositorybooleanisAutoCommitOn(String filePath) Check whether auto commit has been engaged on the specified repositorybooleansynchronizerExists(String filePath) Checks whether a deployment synchronizer has been engaged on the specified pathbooleanupdate(int tenantId) booleanDeprecated.
-
Constructor Details
-
DeploymentSynchronizerServiceImpl
public DeploymentSynchronizerServiceImpl()
-
-
Method Details
-
synchronizerExists
Description copied from interface:DeploymentSynchronizerServiceChecks whether a deployment synchronizer has been engaged on the specified path- Specified by:
synchronizerExistsin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
synchronizerExistsin interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- true if a DeploymentSynchronizer instance has been created on the specified path
-
isAutoCommitOn
Description copied from interface:DeploymentSynchronizerServiceCheck whether auto commit has been engaged on the specified repository- Specified by:
isAutoCommitOnin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
isAutoCommitOnin interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- true if auto commit is enabled on repository and false otherwise
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-
isAutoCheckoutOn
Description copied from interface:DeploymentSynchronizerServiceCheck whether auto checkout has been engaged on the specified repository- Specified by:
isAutoCheckoutOnin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
isAutoCheckoutOnin interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- true if auto checkout is enabled on repository and false otherwise
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-
getLastCommitTime
Description copied from interface:DeploymentSynchronizerServiceGets the time at which the commit operation was last invoked on the given repository- Specified by:
getLastCommitTimein interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
getLastCommitTimein interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- a long timestamp value
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-
getLastCheckoutTime
Description copied from interface:DeploymentSynchronizerServiceGets the time at which the checkout operation was last invoked on the given repository- Specified by:
getLastCheckoutTimein interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
getLastCheckoutTimein interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- a long timestamp value
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-
update
public boolean update(int tenantId) - Specified by:
updatein interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer
-
commit
public boolean commit(int tenantId) - Specified by:
commitin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer
-
checkout
Description copied from interface:DeploymentSynchronizerServiceInvoke the checkout operation on the specified repository- Specified by:
checkoutin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
checkoutin interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- true if files were checked out or updated, false otherwise
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-
checkout
@Deprecated public boolean checkout(String filePath, int depth) throws DeploymentSynchronizerException Deprecated.This method is deprecated. This was introduced to enable partial update. That feature has been removed. Users should usecheckout(String)method.- Specified by:
checkoutin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
checkoutin interfaceDeploymentSynchronizerService- Throws:
DeploymentSynchronizerException
-
update
@Deprecated public boolean update(String rootPath, String filePath, int depth) throws DeploymentSynchronizerException Deprecated.This method is deprecated. This was introduced to enable partial update. That feature has been removed. Users should usecheckout(String)method.- Specified by:
updatein interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
updatein interfaceDeploymentSynchronizerService- Throws:
DeploymentSynchronizerException
-
commit
Description copied from interface:DeploymentSynchronizerServiceInvoke the commit operation on the specified repository- Specified by:
commitin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
commitin interfaceDeploymentSynchronizerService- Parameters:
filePath- Location of the repository in file system- Returns:
- true if file changes were committed, false otherwise
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-
commit
Description copied from interface:DeploymentSynchronizerServiceInvoke the commit operation on the specified repository at rootPath, with the given filePath to commit. This will only commit the filePath in the given repository.- Specified by:
commitin interfaceorg.wso2.carbon.core.deployment.DeploymentSynchronizer- Specified by:
commitin interfaceDeploymentSynchronizerService- Parameters:
rootPath- repo path at which the dep synch is registeredfilePath- Location of the repository in file system- Returns:
- rue if file changes were committed, false otherwise
- Throws:
DeploymentSynchronizerException- if a deployment synchronizer does not exist for the specified path
-