Search in sources :

Example 11 with NamespaceZkClusterMapping

use of com.vip.saturn.job.console.mybatis.entity.NamespaceZkClusterMapping in project Saturn by vipshop.

the class NamespaceZkClusterMapping4SqlServiceImpl method remove.

@Transactional
@Override
public Integer remove(String namespace, String lastUpdatedBy) {
    NamespaceZkClusterMapping namespaceZkClusterMapping = namespaceZkClusterMappingRepository.selectByNamespace(namespace);
    namespaceZkClusterMapping.setIsDeleted(1);
    namespaceZkClusterMapping.setLastUpdatedBy(lastUpdatedBy);
    return namespaceZkClusterMappingRepository.updateById(namespaceZkClusterMapping);
}
Also used : NamespaceZkClusterMapping(com.vip.saturn.job.console.mybatis.entity.NamespaceZkClusterMapping) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

NamespaceZkClusterMapping (com.vip.saturn.job.console.mybatis.entity.NamespaceZkClusterMapping)11 RegistryCenterConfiguration (com.vip.saturn.job.console.domain.RegistryCenterConfiguration)4 Transactional (org.springframework.transaction.annotation.Transactional)4 SaturnJobConsoleException (com.vip.saturn.job.console.exception.SaturnJobConsoleException)3 SaturnJobConsoleHttpException (com.vip.saturn.job.console.exception.SaturnJobConsoleHttpException)2 NamespaceInfo (com.vip.saturn.job.console.mybatis.entity.NamespaceInfo)2 ArrayList (java.util.ArrayList)2 NamespaceDomainInfo (com.vip.saturn.job.console.domain.NamespaceDomainInfo)1 NamespaceZkClusterMappingVo (com.vip.saturn.job.console.domain.NamespaceZkClusterMappingVo)1 ZkCluster (com.vip.saturn.job.console.domain.ZkCluster)1 CuratorRepository (com.vip.saturn.job.console.repository.zookeeper.CuratorRepository)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Date (java.util.Date)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 CuratorFramework (org.apache.curator.framework.CuratorFramework)1