Class DeploymentSynchronizerAdmin
java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.deployment.synchronizer.services.DeploymentSynchronizerAdmin
public class DeploymentSynchronizerAdmin
extends org.wso2.carbon.core.AbstractAdmin
Admin service for managing the deployment synchronizer component and synchronizers engaged
on the Carbon repository.
-
Field Summary
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckout()voidcommit()voidvoidlonglonggetParamsByRepositoryType(String repositoryType) String[]Get all available ArtifactRepositoriesbooleanvoidMethods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
Constructor Details
-
DeploymentSynchronizerAdmin
public DeploymentSynchronizerAdmin()
-
-
Method Details
-
enableSynchronizerForCarbonRepository
public void enableSynchronizerForCarbonRepository(DeploymentSynchronizerConfiguration config) throws DeploymentSynchronizerException - Throws:
DeploymentSynchronizerException
-
disableSynchronizerForCarbonRepository
- Throws:
DeploymentSynchronizerException
-
updateSynchronizerForCarbonRepository
public void updateSynchronizerForCarbonRepository(DeploymentSynchronizerConfiguration config) throws DeploymentSynchronizerException - Throws:
DeploymentSynchronizerException
-
getLastCommitTime
public long getLastCommitTime() -
getLastCheckoutTime
public long getLastCheckoutTime() -
checkout
- Throws:
DeploymentSynchronizerException
-
commit
- Throws:
DeploymentSynchronizerException
-
synchronizerEnabledForCarbonRepository
public boolean synchronizerEnabledForCarbonRepository() -
getSynchronizerConfigurationForCarbonRepository
public DeploymentSynchronizerConfiguration getSynchronizerConfigurationForCarbonRepository() throws DeploymentSynchronizerException- Throws:
DeploymentSynchronizerException
-
getParamsByRepositoryType
-
getRepositoryTypes
Get all available ArtifactRepositories- Returns:
- Available ArtifactRepositories
-