Package org.yamcs.timeline
Class CommandItemProvider
java.lang.Object
org.yamcs.timeline.CommandItemProvider
- All Implemented Interfaces:
ItemProvider
Implements the "commands" timeline source providing items derived from the command history.
The filtering criteria which can be applied is based on the command name patterns (regular expressions matching command names)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItem
(TimelineItem item) Add an item and return the added item.deleteItem
(UUID uuid) Delete the item with the given uuid and return the deleted item.deleteTimelineGroup
(UUID uuid) void
getItems
(int limit, String next, RetrievalFilter filter, ItemReceiver consumer) updateItem
(TimelineItem item) Update an item and return the updated item.void
validateFilters
(List<ItemFilter> filters) Checks that the source can filter based on the criteria specifiedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.timeline.ItemProvider
addItemLog, getItemLog
-
Field Details
-
CRIT_KEY_CMD_NAME_PATTERN
- See Also:
-
-
Constructor Details
-
CommandItemProvider
-
-
Method Details
-
getItem
- Specified by:
getItem
in interfaceItemProvider
-
getItems
- Specified by:
getItems
in interfaceItemProvider
-
validateFilters
Description copied from interface:ItemProvider
Checks that the source can filter based on the criteria specified- Specified by:
validateFilters
in interfaceItemProvider
- Throws:
BadRequestException
-
addItem
Description copied from interface:ItemProvider
Add an item and return the added item.The returned value should have defaults (if any) filled in, also if the item has a relative time, the start time of the returned value will be computed from the relative time and the start of
TimelineItem.relativeItemUuid
- Specified by:
addItem
in interfaceItemProvider
-
updateItem
Description copied from interface:ItemProvider
Update an item and return the updated item.The item parameter should have the uuid set and at least the start time or relative time
- Specified by:
updateItem
in interfaceItemProvider
- Returns:
- the updated item
-
deleteItem
Description copied from interface:ItemProvider
Delete the item with the given uuid and return the deleted item.If the item does not exist, return null
- Specified by:
deleteItem
in interfaceItemProvider
-
deleteTimelineGroup
- Specified by:
deleteTimelineGroup
in interfaceItemProvider
-
getCapabilities
- Specified by:
getCapabilities
in interfaceItemProvider
-