public class DeploymentSynchronizerServiceImpl extends Object implements DeploymentSynchronizerService, org.wso2.carbon.core.deployment.DeploymentSynchronizer
Constructor and Description |
---|
DeploymentSynchronizerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkout(String filePath)
Invoke the checkout operation on the specified repository
|
boolean |
checkout(String filePath,
int depth)
Deprecated.
|
boolean |
commit(int tenantId) |
boolean |
commit(String filePath)
Invoke the commit operation on the specified repository
|
boolean |
commit(String rootPath,
String filePath)
Invoke the commit operation on the specified repository at rootPath, with the given
filePath to commit.
|
long |
getLastCheckoutTime(String filePath)
Gets the time at which the checkout operation was last invoked on the given repository
|
long |
getLastCommitTime(String filePath)
Gets the time at which the commit operation was last invoked on the given repository
|
boolean |
isAutoCheckoutOn(String filePath)
Check whether auto checkout has been engaged on the specified repository
|
boolean |
isAutoCommitOn(String filePath)
Check whether auto commit has been engaged on the specified repository
|
boolean |
synchronizerExists(String filePath)
Checks whether a deployment synchronizer has been engaged on the specified path
|
boolean |
update(int tenantId) |
boolean |
update(String rootPath,
String filePath,
int depth)
Deprecated.
|
public boolean synchronizerExists(String filePath)
DeploymentSynchronizerService
synchronizerExists
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
synchronizerExists
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systempublic boolean isAutoCommitOn(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
isAutoCommitOn
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
isAutoCommitOn
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does
not exist for the specified pathpublic boolean isAutoCheckoutOn(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
isAutoCheckoutOn
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
isAutoCheckoutOn
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does not exist
for the specified pathpublic long getLastCommitTime(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
getLastCommitTime
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
getLastCommitTime
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does not exist
for the specified pathpublic long getLastCheckoutTime(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
getLastCheckoutTime
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
getLastCheckoutTime
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does not exist
for the specified pathpublic boolean update(int tenantId)
update
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
public boolean commit(int tenantId)
commit
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
public boolean checkout(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
checkout
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
checkout
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does not exist
for the specified path@Deprecated public boolean checkout(String filePath, int depth) throws DeploymentSynchronizerException
checkout(String)
method.checkout
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
checkout
in interface DeploymentSynchronizerService
DeploymentSynchronizerException
@Deprecated public boolean update(String rootPath, String filePath, int depth) throws DeploymentSynchronizerException
checkout(String)
method.update
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
update
in interface DeploymentSynchronizerService
DeploymentSynchronizerException
public boolean commit(String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
commit
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
commit
in interface DeploymentSynchronizerService
filePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does not exist
for the specified pathpublic boolean commit(String rootPath, String filePath) throws DeploymentSynchronizerException
DeploymentSynchronizerService
commit
in interface org.wso2.carbon.core.deployment.DeploymentSynchronizer
commit
in interface DeploymentSynchronizerService
rootPath
- repo path at which the dep synch is registeredfilePath
- Location of the repository in file systemDeploymentSynchronizerException
- if a deployment synchronizer does not exist
for the specified pathCopyright © 2020 WSO2. All rights reserved.