Package org.yamcs.protobuf
Class AbstractTimelineApi<T>
java.lang.Object
org.yamcs.protobuf.AbstractTimelineApi<T>
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
TimelineApi
,TimelineApiClient
@Generated(value="org.yamcs.maven.ServiceGenerator",
date="2024-12-10T15:41:02.544118219Z")
public abstract class AbstractTimelineApi<T>
extends Object
implements Api<T>
Methods related to the Timeline Service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addBand
(T ctx, AddBandRequest request, Observer<TimelineBand> observer) Add a bandabstract void
addItemLog
(T ctx, AddItemLogRequest request, Observer<LogEntry> observer) add an entry to the item log table The timestamp from the messages is used if specified; if not specified, the current mission time will be usedabstract void
addView
(T ctx, AddViewRequest request, Observer<TimelineView> observer) Add a viewfinal void
callMethod
(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future) final Observer<com.google.protobuf.Message>
callMethod
(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future) abstract void
createItem
(T ctx, CreateItemRequest request, Observer<TimelineItem> observer) Create an itemabstract void
deleteBand
(T ctx, DeleteBandRequest request, Observer<TimelineBand> observer) Delete a bandabstract void
deleteItem
(T ctx, DeleteItemRequest request, Observer<TimelineItem> observer) Delete an itemabstract void
deleteTimelineGroup
(T ctx, DeleteTimelineGroupRequest request, Observer<TimelineItem> observer) Delete a groupabstract void
deleteView
(T ctx, DeleteViewRequest request, Observer<TimelineView> observer) Delete a viewabstract void
getBand
(T ctx, GetBandRequest request, Observer<TimelineBand> observer) Get a bandfinal com.google.protobuf.Descriptors.ServiceDescriptor
abstract void
getItem
(T ctx, GetItemRequest request, Observer<TimelineItem> observer) Get an itemabstract void
getItemLog
(T ctx, GetItemLogRequest request, Observer<TimelineItemLog> observer) Get an item logfinal com.google.protobuf.Message
getRequestPrototype
(com.google.protobuf.Descriptors.MethodDescriptor method) final com.google.protobuf.Message
getResponsePrototype
(com.google.protobuf.Descriptors.MethodDescriptor method) abstract void
getView
(T ctx, GetViewRequest request, Observer<TimelineView> observer) Get a viewabstract void
listBands
(T ctx, ListBandsRequest request, Observer<ListBandsResponse> observer) List all bandsabstract void
listItems
(T ctx, ListItemsRequest request, Observer<ListItemsResponse> observer) List itemsabstract void
listSources
(T ctx, ListSourcesRequest request, Observer<ListSourcesResponse> observer) List timeline sources Usually there is a source named 'rdb' which provides items from an internal RocksDB database.abstract void
listTags
(T ctx, ListTimelineTagsRequest request, Observer<ListTimelineTagsResponse> observer) List all tags available for the 'rdb' source.abstract void
listViews
(T ctx, ListViewsRequest request, Observer<ListViewsResponse> observer) List all viewsabstract void
updateBand
(T ctx, UpdateBandRequest request, Observer<TimelineBand> observer) Update a bandabstract void
updateItem
(T ctx, UpdateItemRequest request, Observer<TimelineItem> observer) Update an itemabstract void
updateView
(T ctx, UpdateViewRequest request, Observer<TimelineView> observer) Update a view
-
Constructor Details
-
AbstractTimelineApi
public AbstractTimelineApi()
-
-
Method Details
-
createItem
Create an item
-
getItem
Get an item
-
updateItem
Update an item
-
listItems
public abstract void listItems(T ctx, ListItemsRequest request, Observer<ListItemsResponse> observer) List items
-
deleteItem
Delete an item
-
getItemLog
public abstract void getItemLog(T ctx, GetItemLogRequest request, Observer<TimelineItemLog> observer) Get an item log
-
addItemLog
add an entry to the item log table The timestamp from the messages is used if specified; if not specified, the current mission time will be used
-
deleteTimelineGroup
public abstract void deleteTimelineGroup(T ctx, DeleteTimelineGroupRequest request, Observer<TimelineItem> observer) Delete a group
-
listSources
public abstract void listSources(T ctx, ListSourcesRequest request, Observer<ListSourcesResponse> observer) List timeline sources Usually there is a source named 'rdb' which provides items from an internal RocksDB database. Other external sources may be created by adding plugins (e.g. a shift planner)
-
listTags
public abstract void listTags(T ctx, ListTimelineTagsRequest request, Observer<ListTimelineTagsResponse> observer) List all tags available for the 'rdb' source. Note that currently the 'rdb' source does not discard unused tags (e.g. if all item using one tag have been deleted, the tag will still be returned by this call)
-
addBand
Add a band
-
getBand
Get a band
-
listBands
public abstract void listBands(T ctx, ListBandsRequest request, Observer<ListBandsResponse> observer) List all bands
-
updateBand
Update a band
-
deleteBand
Delete a band
-
addView
Add a view
-
getView
Get a view
-
listViews
public abstract void listViews(T ctx, ListViewsRequest request, Observer<ListViewsResponse> observer) List all views
-
updateView
Update a view
-
deleteView
Delete a view
-
getDescriptorForType
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfaceApi<T>
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) - Specified by:
getRequestPrototype
in interfaceApi<T>
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) - Specified by:
getResponsePrototype
in interfaceApi<T>
-
callMethod
public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future) - Specified by:
callMethod
in interfaceApi<T>
-
callMethod
public final Observer<com.google.protobuf.Message> callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future) - Specified by:
callMethod
in interfaceApi<T>
-