public class HostComponentDesiredStateDAO extends Object
| Constructor and Description |
|---|
HostComponentDesiredStateDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(HostComponentDesiredStateEntity hostComponentDesiredStateEntity) |
List<HostComponentDesiredStateEntity> |
findAll() |
List<HostComponentDesiredStateEntity> |
findByHostsAndCluster(Collection<Long> hostIds,
Long clusterId) |
HostComponentDesiredStateEntity |
findById(long id) |
List<HostComponentDesiredStateEntity> |
findByIndex(Long clusterId,
String serviceName,
String componentName)
Retrieve the single Host Component Desired State for the given unique cluster, service, component, and host.
|
HostComponentDesiredStateEntity |
findByIndex(Long clusterId,
String serviceName,
String componentName,
Long hostId)
Retrieve the single Host Component Desired State for the given unique cluster, service, component, and host.
|
HostComponentDesiredStateEntity |
findByServiceComponentAndHost(String serviceName,
String componentName,
String hostName)
Retrieve the single Host Component Desired State for the given unique service, component, and host.
|
HostComponentDesiredStateEntity |
merge(HostComponentDesiredStateEntity hostComponentDesiredStateEntity) |
void |
refresh(HostComponentDesiredStateEntity hostComponentDesiredStateEntity) |
void |
remove(HostComponentDesiredStateEntity hostComponentDesiredStateEntity) |
void |
removeId(long id) |
public HostComponentDesiredStateEntity findById(long id)
public List<HostComponentDesiredStateEntity> findAll()
public HostComponentDesiredStateEntity findByServiceComponentAndHost(String serviceName, String componentName, String hostName)
serviceName - Service NamecomponentName - Component NamehostName - Host Namepublic HostComponentDesiredStateEntity findByIndex(Long clusterId, String serviceName, String componentName, Long hostId)
clusterId - Cluster IDserviceName - Service NamecomponentName - Component NamehostId - Host IDpublic List<HostComponentDesiredStateEntity> findByIndex(Long clusterId, String serviceName, String componentName)
clusterId - Cluster IDserviceName - Service NamecomponentName - Component Namepublic List<HostComponentDesiredStateEntity> findByHostsAndCluster(Collection<Long> hostIds, Long clusterId)
public void refresh(HostComponentDesiredStateEntity hostComponentDesiredStateEntity)
public void create(HostComponentDesiredStateEntity hostComponentDesiredStateEntity)
public HostComponentDesiredStateEntity merge(HostComponentDesiredStateEntity hostComponentDesiredStateEntity)
public void remove(HostComponentDesiredStateEntity hostComponentDesiredStateEntity)
public void removeId(long id)
Copyright © 2022 Apache Software Foundation. All rights reserved.