public final class DeploymentSynchronizationManager extends Object
Modifier and Type | Method and Description |
---|---|
DeploymentSynchronizer |
createSynchronizer(int tenantId,
ArtifactRepository artifactRepository,
String filePath)
Creates a new DeploymentSynchronizer instance using the provided parameters.
|
DeploymentSynchronizer |
deleteSynchronizer(int tenantId) |
DeploymentSynchronizer |
deleteSynchronizer(String filePath)
Deletes the DeploymentSynchronizer for the specified file path.
|
static DeploymentSynchronizationManager |
getInstance() |
DeploymentSynchronizer |
getSynchronizer(int tenantId) |
DeploymentSynchronizer |
getSynchronizer(String filePath) |
Map<String,DeploymentSynchronizer> |
getSynchronizers() |
void |
init(org.wso2.carbon.base.ServerConfiguration serverConfig)
Initialize the RepositoryManager instance.
|
void |
shutdown()
Cleanup and shutdown the RepositoryManager instance.
|
public static DeploymentSynchronizationManager getInstance()
public void init(org.wso2.carbon.base.ServerConfiguration serverConfig)
serverConfig
- Active Carbon ServerConfigurationpublic void shutdown()
public DeploymentSynchronizer createSynchronizer(int tenantId, ArtifactRepository artifactRepository, String filePath)
artifactRepository
- ArtifactRepository representing the remote repositoryfilePath
- File path in the local file systempublic DeploymentSynchronizer getSynchronizer(String filePath)
public DeploymentSynchronizer getSynchronizer(int tenantId)
public Map<String,DeploymentSynchronizer> getSynchronizers()
public DeploymentSynchronizer deleteSynchronizer(String filePath)
filePath
- File path on which the repository is createdpublic DeploymentSynchronizer deleteSynchronizer(int tenantId)
Copyright © 2021 WSO2. All rights reserved.