Class ServerApi

java.lang.Object
org.yamcs.protobuf.AbstractServerApi<Context>
org.yamcs.http.api.ServerApi
All Implemented Interfaces:
org.yamcs.api.Api<Context>

public class ServerApi extends org.yamcs.protobuf.AbstractServerApi<Context>
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerApi(HttpServer httpServer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dumpThreads(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.api.HttpBody> observer)
     
    void
    getHttpTraffic(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.HttpTraffic> observer)
     
    void
    getServerInfo(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.GetServerInfoResponse> observer)
     
    void
    getSystemInfo(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.SystemInfo> observer)
     
    void
    getThread(Context ctx, org.yamcs.protobuf.GetThreadRequest request, org.yamcs.api.Observer<org.yamcs.protobuf.ThreadInfo> observer)
     
    void
    listRoutes(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.ListRoutesResponse> observer)
     
    void
    listThreads(Context ctx, org.yamcs.protobuf.ListThreadsRequest request, org.yamcs.api.Observer<org.yamcs.protobuf.ListThreadsResponse> observer)
     
    void
    listTopics(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.ListTopicsResponse> observer)
     
    void
    subscribeHttpTraffic(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.HttpTraffic> observer)
     
    void
    subscribeSystemInfo(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.SystemInfo> observer)
     
    static org.yamcs.protobuf.GetServerInfoResponse.CommandOptionInfo
     

    Methods inherited from class org.yamcs.protobuf.AbstractServerApi

    callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerApi

      public ServerApi(HttpServer httpServer)
  • Method Details

    • subscribeSystemInfo

      public void subscribeSystemInfo(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.SystemInfo> observer)
      Specified by:
      subscribeSystemInfo in class org.yamcs.protobuf.AbstractServerApi<Context>
    • getSystemInfo

      public void getSystemInfo(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.SystemInfo> observer)
      Specified by:
      getSystemInfo in class org.yamcs.protobuf.AbstractServerApi<Context>
    • getServerInfo

      public void getServerInfo(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.GetServerInfoResponse> observer)
      Specified by:
      getServerInfo in class org.yamcs.protobuf.AbstractServerApi<Context>
    • toCommandOptionInfo

      public static org.yamcs.protobuf.GetServerInfoResponse.CommandOptionInfo toCommandOptionInfo(CommandOption option)
    • listRoutes

      public void listRoutes(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.ListRoutesResponse> observer)
      Specified by:
      listRoutes in class org.yamcs.protobuf.AbstractServerApi<Context>
    • listTopics

      public void listTopics(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.ListTopicsResponse> observer)
      Specified by:
      listTopics in class org.yamcs.protobuf.AbstractServerApi<Context>
    • getHttpTraffic

      public void getHttpTraffic(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.HttpTraffic> observer)
      Specified by:
      getHttpTraffic in class org.yamcs.protobuf.AbstractServerApi<Context>
    • subscribeHttpTraffic

      public void subscribeHttpTraffic(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.HttpTraffic> observer)
      Specified by:
      subscribeHttpTraffic in class org.yamcs.protobuf.AbstractServerApi<Context>
    • listThreads

      public void listThreads(Context ctx, org.yamcs.protobuf.ListThreadsRequest request, org.yamcs.api.Observer<org.yamcs.protobuf.ListThreadsResponse> observer)
      Specified by:
      listThreads in class org.yamcs.protobuf.AbstractServerApi<Context>
    • dumpThreads

      public void dumpThreads(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.api.HttpBody> observer)
      Specified by:
      dumpThreads in class org.yamcs.protobuf.AbstractServerApi<Context>
    • getThread

      public void getThread(Context ctx, org.yamcs.protobuf.GetThreadRequest request, org.yamcs.api.Observer<org.yamcs.protobuf.ThreadInfo> observer)
      Specified by:
      getThread in class org.yamcs.protobuf.AbstractServerApi<Context>