public class ServiceConfigDAO extends Object
| Constructor and Description |
|---|
ServiceConfigDAO() |
public ServiceConfigEntity find(Long serviceConfigId)
public ServiceConfigEntity findByServiceAndVersion(String serviceName, Long version)
public List<ServiceConfigEntity> findByService(Long clusterId, String serviceName)
public List<ServiceConfigEntity> getLastServiceConfigVersionsForGroups(Collection<Long> configGroupIds)
public ServiceConfigEntity getLastServiceConfigVersionsForGroup(Long configGroupId)
public List<Long> getServiceConfigVersionsByConfig(Long clusterId, String configType, Long configVersion)
public List<ServiceConfigEntity> getLastServiceConfigs(Long clusterId)
public List<ServiceConfigEntity> getLastServiceConfigsForService(Long clusterId, String serviceName)
clusterId - the cluster (not null).serviceName - Name of the service whose latest service config versions needs to be retrieved .public ServiceConfigEntity getLastServiceConfigForServiceDefaultGroup(Long clusterId, String serviceName)
clusterId - the cluster (not null).serviceName - Name of the service whose latest service config versions needs to be retrieved .public List<ServiceConfigEntity> getServiceConfigsForServiceAndStack(Long clusterId, StackId stackId, String serviceName)
clusterId - the cluster (not null).stackId - the stack (not null).public List<ServiceConfigEntity> getLatestServiceConfigs(Long clusterId, StackId stackId)
clusterId - the cluster (not null).stackId - the stack (not null).public ServiceConfigEntity getLastServiceConfig(Long clusterId, String serviceName)
public ServiceConfigEntity findMaxVersion(Long clusterId, String serviceName)
public List<ServiceConfigEntity> getServiceConfigs(Long clusterId)
clusterId - Cluster Idpublic List<ServiceConfigEntity> findAll()
public Long findNextServiceConfigVersion(long clusterId, String serviceName)
ServiceConfigEntity.clusterId - the cluster that the service is a part of.serviceName - the name of the service (not null).public void removeHostFromServiceConfigs(Long hostId)
public void create(ServiceConfigEntity serviceConfigEntity)
public ServiceConfigEntity merge(ServiceConfigEntity serviceConfigEntity)
public void remove(ServiceConfigEntity serviceConfigEntity)
Copyright © 2022 Apache Software Foundation. All rights reserved.