|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils
public class CarbonRepositoryUtils
Utility methods for creating and managing DeploymentSynchronizer instances for Carbon repositories
| Constructor Summary | |
|---|---|
CarbonRepositoryUtils()
|
|
| Method Summary | |
|---|---|
static DeploymentSynchronizerConfiguration |
getActiveSynchronizerConfiguration(int tenantId)
Loads the deployment synchronizer configuration. |
static String |
getCarbonRepositoryFilePath(org.apache.axis2.context.ConfigurationContext cfgCtx)
Returns the Carbon/Axis2 repository path for the given ConfigurationContext |
static DeploymentSynchronizerConfiguration |
getDefaultDeploymentSyncConfiguration()
|
static DeploymentSynchronizerConfiguration |
getDeploymentSyncConfigurationFromConf()
Load the deployment synchronizer configuration from the global ServerConfiguration of Carbon. |
static DeploymentSynchronizerConfiguration |
getDeploymentSyncConfigurationFromRegistry(int tenantId)
Loads the deployment synchronizer configuration from the configuration registry of the specified tenant. |
static boolean |
isSynchronizerEnabled(int tenantId)
Checks whether deployment synchronizer is enabled for the Carbon repository of the specified tenant. |
static DeploymentSynchronizer |
newCarbonRepositorySynchronizer(int tenantId)
Create and initialize a new DeploymentSynchronizer for the Carbon repository of the specified tenant. |
static void |
persistConfiguration(DeploymentSynchronizerConfiguration config,
int tenantId)
Save the given DeploymentSynchronizerConfiguration to the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CarbonRepositoryUtils()
| Method Detail |
|---|
public static DeploymentSynchronizer newCarbonRepositorySynchronizer(int tenantId)
throws DeploymentSynchronizerException
tenantId - ID of the tenant
DeploymentSynchronizerException - If an error occurs while initializing the synchronizer
public static DeploymentSynchronizerConfiguration getActiveSynchronizerConfiguration(int tenantId)
throws DeploymentSynchronizerException
tenantId - Tenant ID
DeploymentSynchronizerException - if an error occurs while accessing the registry
public static DeploymentSynchronizerConfiguration getDeploymentSyncConfigurationFromConf()
throws DeploymentSynchronizerException
DeploymentSynchronizerException - on error
public static DeploymentSynchronizerConfiguration getDefaultDeploymentSyncConfiguration()
throws DeploymentSynchronizerException
DeploymentSynchronizerExceptionpublic static String getCarbonRepositoryFilePath(org.apache.axis2.context.ConfigurationContext cfgCtx)
cfgCtx - A ConfigurationContext instance owned by super tenant or some other tenant
public static boolean isSynchronizerEnabled(int tenantId)
throws DeploymentSynchronizerException
tenantId - Tenant ID
DeploymentSynchronizerException - if an error occurs while loading configuration from the registry
public static DeploymentSynchronizerConfiguration getDeploymentSyncConfigurationFromRegistry(int tenantId)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
tenantId - Tenant ID
org.wso2.carbon.registry.core.exceptions.RegistryException - if the registry cannot be accessed
public static void persistConfiguration(DeploymentSynchronizerConfiguration config,
int tenantId)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
config - The configuration to be savedtenantId - Tenant ID to select the configuration registry
org.wso2.carbon.registry.core.exceptions.RegistryException - if an error occurs while accessing the registry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||