Package xal.smf.impl.qualify
Class QualifierFactory
java.lang.Object
xal.smf.impl.qualify.QualifierFactory
Factory to create qualifiers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeQualifier
getSoftTypeQualifier
(String softType) Get a qualifier for testing whether a node's software type matches the specified software typestatic TypeQualifier
getStatusQualifier
(boolean statusFilter) Get a qualifier for testing a node for the specified statusprotected static void
populate status qualifiersstatic TypeQualifier
qualifierForQualifiers
(boolean nodeStatus, TypeQualifier... qualifiers) Get a qualifier that matches for any of the specified qualifiers and the specified node status.static TypeQualifier
qualifierWithStatusAndType
(boolean nodeStatus, String type) Get an qualifier for the specified node status and type.static TypeQualifier
qualifierWithStatusAndTypes
(boolean nodeStatus, String... kinds) Get a qualifier that matches for any of the specified node types and the specified node status.
-
Field Details
-
goodStatusQualifier
-
badStatusQualifier
-
-
Constructor Details
-
QualifierFactory
protected QualifierFactory()Protected constructor
-
-
Method Details
-
getStatusQualifier
Get a qualifier for testing a node for the specified status- Parameters:
statusFilter
- the status against which to qualify nodes- Returns:
- the status qualifier
-
getSoftTypeQualifier
Get a qualifier for testing whether a node's software type matches the specified software type- Parameters:
softType
- software type for comparison
-
qualifierWithStatusAndType
Get an qualifier for the specified node status and type.- Parameters:
nodeStatus
- the node statustype
- the node type- Returns:
- a qualifier restricted to both the status and type specified
-
qualifierWithStatusAndTypes
Get a qualifier that matches for any of the specified node types and the specified node status.- Parameters:
nodeStatus
- the status of the nodes to matchkinds
- the array of node types- Returns:
- a qualifier that matches for any of the given node types
-
qualifierForQualifiers
Get a qualifier that matches for any of the specified qualifiers and the specified node status.- Parameters:
nodeStatus
- the status of the nodes to matchqualifiers
- the array of node qualifiers- Returns:
- a qualifier that matches for any of the given qualifiers
-
populateStatusQualifiers
protected static void populateStatusQualifiers()populate status qualifiers
-