Interface MetaDataService
public interface MetaDataService
-
Method Summary
Modifier and TypeMethodDescriptionGets a HierarchySet containing all available Hierarchy objectsgetFundamentalsInTimeWindowWithNameLikePattern(Timestamp startTime, Timestamp endTime, String pattern) Gets a variableSet containing all fundamentals which can be found in the given time window with a name which matched the patterngetHierarchiesForVariable(Variable variable) Gets a set of all hierarchies which the given variable can be found withingetHierarchyChildNodes(Hierarchy parentHier) Gets a HierarchySet containing all available Hierarchy objects which are children of the given Hierarchy.getHierarchyForNodePath(String nodePath) Gets a Hierarchy node which has the given node path.getJapcDefinitionFor(VariableList variableList) Gets a collection of japc configuration for the given variable listgetJapcParameterDefinitionForDeviceAndPropertyName(String deviceName, String propertyName) Gets an JapcParameterDefinition object representing a JAPC parameter with a device name and property name which match the given Strings.getPropertyNamesForDeviceName(String deviceName) Gets a HierarchySet containing all Hierarchy objects which are parents of the ROOT hierarchygetVariablesOfDataTypeAttachedToHierarchy(Hierarchy hier, VariableDataType dataType) Gets a set of variables which are in the specified hierarchy and of the specified datatypegetVariablesOfDataTypeInVariableList(VariableList variableList, VariableDataType dataType) Get a set of variables with a given datatype which can found in a variableListgetVariablesOfDataTypeWithNameLikePattern(String pattern, VariableDataType dataType) Get set of variables of the given datatype with a name which matches the given patterngetVariablesOfDataTypeWithNameLikePatternAttachedToHierarchy(Hierarchy hier, String pattern, VariableDataType dataType) Get a set of variables which are in the specified hierarchy and of the specified datatype and have a name which matches the given patterngetVariablesOfDataTypeWithNameLikePatternInVariableList(VariableList variableList, String pattern, VariableDataType dataType) Get set of variables of the given datatype with a name which matches the given pattern which can be found in the given variable list.getVariablesWithNameInListofStrings(List<String> variableNames) Get a set of variables whose names are in the list of strings givengetVectorElements(Variable variable) getVectorElementsInTimeWindow(Variable variable, Timestamp minStamp, Timestamp maxStamp)
-
Method Details
-
getVariablesOfDataTypeAttachedToHierarchy
Gets a set of variables which are in the specified hierarchy and of the specified datatype- Parameters:
hier- - Hierarchy to match the variables to. Methods used to extract Hierarchies can be found in this servicedataType- - VariableDataType to match the variables to. This is represented by an enum which can be found at VariableDataType- Returns:
- VariableSet - Collection of variables returned
-
getVariablesOfDataTypeWithNameLikePatternAttachedToHierarchy
VariableSet getVariablesOfDataTypeWithNameLikePatternAttachedToHierarchy(Hierarchy hier, String pattern, VariableDataType dataType) Get a set of variables which are in the specified hierarchy and of the specified datatype and have a name which matches the given pattern- Parameters:
hier- - Hierarchy to match the variables to. Methods used to extract Hierarchies can be found in this servicepattern- - String pattern to match the variable name against % = wildcard.dataType- - VariableDataType to match the variables to. This is represented by an enum which can be found at VariableDataType- Returns:
- VariableSet - Collection of variables returned
-
getVariablesOfDataTypeInVariableList
VariableSet getVariablesOfDataTypeInVariableList(VariableList variableList, VariableDataType dataType) Get a set of variables with a given datatype which can found in a variableList- Parameters:
variableList- - VariableList object which can be extracted using cern.accsoft.backport.extr.domain.client.QuerySnapshotDataServicedataType- - VariableDataType to match the variables to. This is represented by an enum which can be found at VariableDataType- Returns:
- VariableSet - Collection of variables returned
-
getFundamentalsInTimeWindowWithNameLikePattern
VariableSet getFundamentalsInTimeWindowWithNameLikePattern(Timestamp startTime, Timestamp endTime, String pattern) Gets a variableSet containing all fundamentals which can be found in the given time window with a name which matched the pattern- Parameters:
startTime- - Start of the required time window represented by a Java Timestamp object which can be created by Timestamp startTime = Timestamp.valueOf("2012-01-01 12:00:00"); Note this should represent the local time.endTime- - End of the required time window represented by a Java Timestamp object. NOTE the format must be the JDBC escape format: yyyy-mm-dd hh:mm:sspattern- - String pattern to match the variable name against % = wildcard.- Returns:
- VariableSet - Collection of variables returned
-
getVariablesOfDataTypeWithNameLikePattern
Get set of variables of the given datatype with a name which matches the given pattern- Parameters:
pattern- - String pattern to match the variable name against % = wildcard.dataType- - VariableDataType to match the variables to. This is represented by an enum which can be found at VariableDataType- Returns:
- VariableSet - Collection of variables returned
-
getVariablesWithNameInListofStrings
Get a set of variables whose names are in the list of strings given- Parameters:
variableNames- - List of strings to use to find variables- Returns:
- VariableSet - Collection of variables returned
-
getVectorElements
- Parameters:
variable-- Returns:
-
getVectorElementsInTimeWindow
VectornumericElementsSet getVectorElementsInTimeWindow(Variable variable, Timestamp minStamp, Timestamp maxStamp) - Parameters:
variable-minStamp-maxStamp-- Returns:
-
getAllHierarchies
HierarchySet getAllHierarchies()Gets a HierarchySet containing all available Hierarchy objects- Returns:
- HierarchySet - Collection of hierarchies
-
getHierarchyChildNodes
Gets a HierarchySet containing all available Hierarchy objects which are children of the given Hierarchy.- Parameters:
parentHier- - Hierarchy object representing the parent hierarchy for which to get children. This can be extracted using this service.- Returns:
- HierarchySet - Collection of hierarchies
-
getHierarchyForNodePath
Gets a Hierarchy node which has the given node path. The elements of the node path should be separated by '->' For example, to find a hierarchy node corresponding to 'Beam Intensity Monitors' attached to the node 'Primary Beam' of the Top Level node 'CNGS', use a nodePath value of 'CNGS->Primary Beam->Beam Intensity Monitors'. To get a Hierarchy node corresponding to the Top Level node 'CNGS', just use a nodePath value of 'CNGS'. NOTE: The quotes ' should not be included in the nodePath string.- Parameters:
nodePath- - String node path to get hierarchy for- Returns:
- Hierarchy - Single hierarchy object
-
getTopLevelHierarchies
HierarchySet getTopLevelHierarchies()Gets a HierarchySet containing all Hierarchy objects which are parents of the ROOT hierarchy- Returns:
- HierarchySet - Collection of hierarchies
-
getHierarchiesForVariable
Gets a set of all hierarchies which the given variable can be found within- Parameters:
variable- - Variable object to get hierarchies for can be extracted using this service- Returns:
- HierarchySet - Collection of hierarchies
-
getJapcParameterDefinitionForDeviceAndPropertyName
JapcParameterDefinition getJapcParameterDefinitionForDeviceAndPropertyName(String deviceName, String propertyName) Gets an JapcParameterDefinition object representing a JAPC parameter with a device name and property name which match the given Strings. This object is required to retrieve AcquiredParameterValue objects from the database using the AcquiredParameterValuesServiceImpl- Parameters:
deviceName- - the device name for which to retrieve a JAPC parameter.propertyName- - the property name for which to retrieve a JAPC parameter.- Returns:
- - JapcParameterDefinition (the JAPC parameter representation - required in order to retrieve AcquiredParameterValues using the AcquiredParameterValuesServiceImpl)
-
getVariablesOfDataTypeWithNameLikePatternInVariableList
VariableSet getVariablesOfDataTypeWithNameLikePatternInVariableList(VariableList variableList, String pattern, VariableDataType dataType) Get set of variables of the given datatype with a name which matches the given pattern which can be found in the given variable list.- Parameters:
variableList- - VariableList object which can be extracted using cern.accsoft.backport.extr.domain.client.QuerySnapshotDataServicepattern- - String pattern to match the variable name against % = wildcard.dataType- - VariableDataType to match the variables to. This is represented by an enum which can be found at VariableDataType- Returns:
- VariableSet - Collection of variables returned
-
getAllDeviceNames
-
getPropertyNamesForDeviceName
-
getJapcDefinitionFor
Gets a collection of japc configuration for the given variable list- Parameters:
variableList- - the given variable list- Returns:
- a collection of japc configuration objects
-