public final class JpaClusterSpecs
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JpaClusterSpecs()
Private constructor for utility class.
|
Modifier and Type | Method and Description |
---|---|
static org.springframework.data.jpa.domain.Specification<ClusterEntity> |
find(java.lang.String name,
java.util.Set<ClusterStatus> statuses,
java.util.Set<java.lang.String> tags,
java.util.Date minUpdateTime,
java.util.Date maxUpdateTime)
Generate a specification given the parameters.
|
static org.springframework.data.jpa.domain.Specification<ClusterEntity> |
findByClusterAndCommandCriteria(ClusterCriteria clusterCriteria,
java.util.Set<java.lang.String> commandCriteria)
Get all the clusters given the specified parameters.
|
static org.springframework.data.jpa.domain.Specification<ClusterEntity> |
findClustersForCommand(java.lang.String commandId,
java.util.Set<ClusterStatus> statuses)
Get all the clusters given the specified parameters.
|
protected JpaClusterSpecs()
public static org.springframework.data.jpa.domain.Specification<ClusterEntity> find(java.lang.String name, java.util.Set<ClusterStatus> statuses, java.util.Set<java.lang.String> tags, java.util.Date minUpdateTime, java.util.Date maxUpdateTime)
name
- The name of the cluster to findstatuses
- The statuses of the clusters to findtags
- The tags of the clusters to findminUpdateTime
- The minimum updated time of the clusters to findmaxUpdateTime
- The maximum updated time of the clusters to findpublic static org.springframework.data.jpa.domain.Specification<ClusterEntity> findByClusterAndCommandCriteria(ClusterCriteria clusterCriteria, java.util.Set<java.lang.String> commandCriteria)
clusterCriteria
- The cluster criteriacommandCriteria
- The command Criteriapublic static org.springframework.data.jpa.domain.Specification<ClusterEntity> findClustersForCommand(java.lang.String commandId, java.util.Set<ClusterStatus> statuses)
commandId
- The id of the command that is registered with this clusterstatuses
- The status of the cluster