Class StudioClusterUtils
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.cluster.StudioClusterUtils
-
public class StudioClusterUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description StudioClusterUtils()
-
Method Summary
-
-
-
Method Detail
-
getClusterConfiguration
public org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> getClusterConfiguration()
-
getClusterNodeLocalAddress
public String getClusterNodeLocalAddress()
-
getClusterNodes
public List<ClusterMember> getClusterNodes(String localAddress)
-
removeRemote
public void removeRemote(org.eclipse.jgit.api.Git git, String remoteName) throws org.eclipse.jgit.api.errors.GitAPIException
- Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
getLockOwnerId
public String getLockOwnerId()
-
cloneGlobalRepository
public boolean cloneGlobalRepository(List<ClusterMember> clusterNodes) throws org.craftercms.commons.crypto.CryptoException, ServiceLayerException, InvalidRemoteRepositoryCredentialsException, RemoteRepositoryNotFoundException, IOException
- Throws:
org.craftercms.commons.crypto.CryptoException
ServiceLayerException
InvalidRemoteRepositoryCredentialsException
RemoteRepositoryNotFoundException
IOException
-
getClusterMemberFromConfiguration
public ClusterMember getClusterMemberFromConfiguration() throws org.craftercms.commons.crypto.CryptoException
- Throws:
org.craftercms.commons.crypto.CryptoException
-
getLockTTL
public int getLockTTL()
-
getEncryptor
public org.craftercms.commons.crypto.TextEncryptor getEncryptor()
-
setEncryptor
public void setEncryptor(org.craftercms.commons.crypto.TextEncryptor encryptor)
-
getClusterDao
public ClusterDAO getClusterDao()
-
setClusterDao
public void setClusterDao(ClusterDAO clusterDao)
-
getStudioConfiguration
public StudioConfiguration getStudioConfiguration()
-
setStudioConfiguration
public void setStudioConfiguration(StudioConfiguration studioConfiguration)
-
getRetryingRepositoryOperationFacade
public RetryingRepositoryOperationFacade getRetryingRepositoryOperationFacade()
-
setRetryingRepositoryOperationFacade
public void setRetryingRepositoryOperationFacade(RetryingRepositoryOperationFacade retryingRepositoryOperationFacade)
-
getGeneralLockService
public GeneralLockService getGeneralLockService()
-
setGeneralLockService
public void setGeneralLockService(GeneralLockService generalLockService)
-
setHelper
public void setHelper(GitRepositoryHelper helper)
-
-