Package org.yamcs.protobuf
Class AbstractTimeApi<T>
- java.lang.Object
-
- org.yamcs.protobuf.AbstractTimeApi<T>
-
- All Implemented Interfaces:
Api<T>
- Direct Known Subclasses:
TimeApiClient
public abstract class AbstractTimeApi<T> extends Object implements Api<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractTimeApi()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcallMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, com.google.protobuf.Message request, Observer<com.google.protobuf.Message> future)Observer<com.google.protobuf.Message>callMethod(com.google.protobuf.Descriptors.MethodDescriptor method, T ctx, Observer<com.google.protobuf.Message> future)com.google.protobuf.Descriptors.ServiceDescriptorgetDescriptorForType()abstract voidgetLeapSeconds(T ctx, com.google.protobuf.Empty request, Observer<LeapSecondsTable> observer)Get UTC leap secondscom.google.protobuf.MessagegetRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)com.google.protobuf.MessagegetResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)abstract voidsetTime(T ctx, SetTimeRequest request, Observer<com.google.protobuf.Empty> observer)Set (simulation) time of an instanceabstract voidsubscribeTime(T ctx, SubscribeTimeRequest request, Observer<com.google.protobuf.Timestamp> observer)Receive time updates
-
-
-
Method Detail
-
getLeapSeconds
public abstract void getLeapSeconds(T ctx, com.google.protobuf.Empty request, Observer<LeapSecondsTable> observer)
Get UTC leap seconds
-
setTime
public abstract void setTime(T ctx, SetTimeRequest request, Observer<com.google.protobuf.Empty> observer)
Set (simulation) time of an instance
-
subscribeTime
public abstract void subscribeTime(T ctx, SubscribeTimeRequest request, Observer<com.google.protobuf.Timestamp> observer)
Receive time updates
-
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>
-
-