Class AbstractServerApi<T>

  • All Implemented Interfaces:
    Api<T>
    Direct Known Subclasses:
    ServerApiClient

    public abstract class AbstractServerApi<T>
    extends Object
    implements Api<T>
      Handles incoming requests related to api routes
     
    • Constructor Detail

      • AbstractServerApi

        public AbstractServerApi()
    • Method Detail

      • getServerInfo

        public abstract void getServerInfo​(T ctx,
                                           com.google.protobuf.Empty request,
                                           Observer<GetServerInfoResponse> observer)
          Get general server info
         
      • listRoutes

        public abstract void listRoutes​(T ctx,
                                        com.google.protobuf.Empty request,
                                        Observer<ListRoutesResponse> observer)
          List routes
         
      • listTopics

        public abstract void listTopics​(T ctx,
                                        com.google.protobuf.Empty request,
                                        Observer<ListTopicsResponse> observer)
          List topics
         
      • dumpThreads

        public abstract void dumpThreads​(T ctx,
                                         com.google.protobuf.Empty request,
                                         Observer<HttpBody> observer)
          Get a text-dump with thread information
         
      • getHttpTraffic

        public abstract void getHttpTraffic​(T ctx,
                                            com.google.protobuf.Empty request,
                                            Observer<HttpTraffic> observer)
          Get HTTP traffic
         
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface Api<T>
      • getRequestPrototype

        public final com.google.protobuf.Message getRequestPrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getRequestPrototype in interface Api<T>
      • getResponsePrototype

        public final com.google.protobuf.Message getResponsePrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getResponsePrototype in interface Api<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 interface Api<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 interface Api<T>