java.lang.Object
org.yamcs.protobuf.AbstractTimelineApi<T>
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
TimelineApiClient
Methods related to the Timeline Service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddBand(T ctx, AddBandRequest request, Observer<TimelineBand> observer) Add a band.abstract voidaddView(T ctx, AddViewRequest request, Observer<TimelineView> observer) Add a viewfinal voidcallMethod(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 voidcreateItem(T ctx, CreateItemRequest request, Observer<TimelineItem> observer) Create an itemabstract voiddeleteBand(T ctx, DeleteBandRequest request, Observer<TimelineBand> observer) Delete a bandabstract voiddeleteItem(T ctx, DeleteItemRequest request, Observer<TimelineItem> observer) Delete an itemabstract voiddeleteTimelineGroup(T ctx, DeleteTimelineGroupRequest request, Observer<TimelineItem> observer) Delete a groupabstract voiddeleteView(T ctx, DeleteViewRequest request, Observer<TimelineView> observer) Delete a viewabstract voidgetBand(T ctx, GetBandRequest request, Observer<TimelineBand> observer) Get a bandfinal com.google.protobuf.Descriptors.ServiceDescriptorabstract voidgetItem(T ctx, GetItemRequest request, Observer<TimelineItem> observer) Get an itemfinal com.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) final com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) abstract voidgetView(T ctx, GetViewRequest request, Observer<TimelineView> observer) Get a viewabstract voidlistBands(T ctx, ListBandsRequest request, Observer<ListBandsResponse> observer) List all bandsabstract voidlistItems(T ctx, ListItemsRequest request, Observer<ListItemsResponse> observer) List itemsabstract voidlistSources(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 voidlistTags(T ctx, ListTimelineTagsRequest request, Observer<ListTimelineTagsResponse> observer) List all tags available for a 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)abstract voidlistViews(T ctx, ListViewsRequest request, Observer<ListViewsResponse> observer) List all viewsabstract voidupdateBand(T ctx, UpdateBandRequest request, Observer<TimelineBand> observer) Update a bandabstract voidupdateItem(T ctx, UpdateItemRequest request, Observer<TimelineItem> observer) Update an itemabstract voidupdateView(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
-
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 a 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. The band must not have the id set.
-
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:
getDescriptorForTypein interfaceApi<T>
-
getRequestPrototype
public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) - Specified by:
getRequestPrototypein interfaceApi<T>
-
getResponsePrototype
public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) - Specified by:
getResponsePrototypein 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:
callMethodin 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:
callMethodin interfaceApi<T>
-