Class 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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeConnection​(Context ctx, org.yamcs.protobuf.CloseConnectionRequest request, org.yamcs.api.Observer<com.google.protobuf.Empty> observer)  
      void dumpThreads​(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.api.HttpBody> observer)  
      void getServerInfo​(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.GetServerInfoResponse> observer)  
      void getThread​(Context ctx, org.yamcs.protobuf.GetThreadRequest request, org.yamcs.api.Observer<org.yamcs.protobuf.ThreadInfo> observer)  
      void listClientConnections​(Context ctx, com.google.protobuf.Empty request, org.yamcs.api.Observer<org.yamcs.protobuf.ListClientConnectionsResponse> 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)  
      static org.yamcs.protobuf.GetServerInfoResponse.CommandOptionInfo toCommandOptionInfo​(CommandOption option)  
      • Methods inherited from class org.yamcs.protobuf.AbstractServerApi

        callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
    • Constructor Detail

      • ServerApi

        public ServerApi​(HttpServer httpServer)
    • Method Detail

      • 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>
      • listClientConnections

        public void listClientConnections​(Context ctx,
                                          com.google.protobuf.Empty request,
                                          org.yamcs.api.Observer<org.yamcs.protobuf.ListClientConnectionsResponse> observer)
        Specified by:
        listClientConnections 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>
      • closeConnection

        public void closeConnection​(Context ctx,
                                    org.yamcs.protobuf.CloseConnectionRequest request,
                                    org.yamcs.api.Observer<com.google.protobuf.Empty> observer)
        Specified by:
        closeConnection in class org.yamcs.protobuf.AbstractServerApi<Context>