Package org.yamcs.timeline
Class TimelineItemDb
java.lang.Object
org.yamcs.timeline.TimelineItemDb
- All Implemented Interfaces:
ItemProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final TupleDefinition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItem
(TimelineItem item) Add an item and return the added item.void
addItemListener
(ItemListener itemListener) addItemLog
(String id, LogEntry entry) Adds an entry to the log tabledeleteItem
(UUID uuid) Delete the item with the given uuid and return the deleted item.deleteTimelineGroup
(UUID uuid) getItemLog
(String id) Returns the item log or null if the item does not existvoid
getItems
(int limit, String token, RetrievalFilter filter, ItemReceiver consumer) getTags()
void
removeItemListener
(ItemListener itemListener) 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 specified
-
Field Details
-
TIMELINE_DEF
-
CNAME_START
- See Also:
-
CNAME_DURATION
- See Also:
-
CNAME_ID
- See Also:
-
CNAME_NAME
- See Also:
-
CNAME_TYPE
- See Also:
-
CNAME_STATUS
- See Also:
-
CNAME_TAGS
- See Also:
-
CNAME_GROUP_ID
- See Also:
-
CNAME_RELTIME_ID
- See Also:
-
CNAME_RELTIME_START
- See Also:
-
CNAME_DESCRIPTION
- See Also:
-
CNAME_FAILURE_REASON
- See Also:
-
CNAME_ACTIVITY_DEFINITION
- See Also:
-
CNAME_RUNS
- See Also:
-
CRIT_KEY_TAG
- See Also:
-
-
Constructor Details
-
TimelineItemDb
- Throws:
InitException
-
-
Method Details
-
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
-
getItem
- Specified by:
getItem
in interfaceItemProvider
-
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
-
getItems
- Specified by:
getItems
in interfaceItemProvider
-
addItemListener
-
removeItemListener
-
getTags
-
getCapabilities
- Specified by:
getCapabilities
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
-
getItemLog
Description copied from interface:ItemProvider
Returns the item log or null if the item does not exist- Specified by:
getItemLog
in interfaceItemProvider
-
addItemLog
Description copied from interface:ItemProvider
Adds an entry to the log table- Specified by:
addItemLog
in interfaceItemProvider
-