public class HostComponentStateDAO extends Object
Constructor and Description |
---|
HostComponentStateDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(HostComponentStateEntity hostComponentStateEntity) |
List<HostComponentStateEntity> |
findAll() |
List<HostComponentStateEntity> |
findByHost(String hostName)
Retrieve all of the Host Component States for the given host.
|
HostComponentStateEntity |
findById(long id) |
HostComponentStateEntity |
findByIndex(Long clusterId,
String serviceName,
String componentName,
Long hostId)
Retrieve the single Host Component State for the given unique cluster,
service, component, and host.
|
List<HostComponentStateEntity> |
findByService(String serviceName)
Retrieve all of the Host Component States for the given service.
|
List<HostComponentStateEntity> |
findByServiceAndComponent(String serviceName,
String componentName)
Retrieve all of the Host Component States for the given service and component.
|
List<HostComponentStateEntity> |
findByServiceAndComponentAndNotVersion(String serviceName,
String componentName,
String version) |
HostComponentStateEntity |
findByServiceComponentAndHost(String serviceName,
String componentName,
String hostName)
Retrieve the single Host Component State for the given unique service, component, and host.
|
HostComponentStateEntity |
merge(HostComponentStateEntity hostComponentStateEntity)
Merges the managed entity
|
void |
refresh(HostComponentStateEntity hostComponentStateEntity) |
void |
remove(HostComponentStateEntity hostComponentStateEntity) |
public HostComponentStateEntity findById(long id)
public List<HostComponentStateEntity> findAll()
public List<HostComponentStateEntity> findByHost(String hostName)
hostName
- HOst namepublic List<HostComponentStateEntity> findByService(String serviceName)
serviceName
- Service Namepublic List<HostComponentStateEntity> findByServiceAndComponent(String serviceName, String componentName)
serviceName
- Service NamecomponentName
- Component Namepublic HostComponentStateEntity findByServiceComponentAndHost(String serviceName, String componentName, String hostName)
serviceName
- Service NamecomponentName
- Component NamehostName
- Host Namepublic HostComponentStateEntity findByIndex(Long clusterId, String serviceName, String componentName, Long hostId)
clusterId
- Cluster IDserviceName
- Service NamecomponentName
- Component NamehostId
- Host IDpublic void refresh(HostComponentStateEntity hostComponentStateEntity)
public void create(HostComponentStateEntity hostComponentStateEntity)
public HostComponentStateEntity merge(HostComponentStateEntity hostComponentStateEntity)
hostComponentStateEntity
- public void remove(HostComponentStateEntity hostComponentStateEntity)
public List<HostComponentStateEntity> findByServiceAndComponentAndNotVersion(String serviceName, String componentName, String version)
serviceName
- componentName
- version
- Copyright © 2022 Apache Software Foundation. All rights reserved.