public abstract class AbstractServerApi<T> extends Object implements Api<T>
Handles incoming requests related to api routes
| Constructor and Description |
|---|
AbstractServerApi() |
| Modifier and Type | Method and Description |
|---|---|
void |
callMethod(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) |
abstract void |
closeConnection(T ctx,
CloseConnectionRequest request,
Observer<com.google.protobuf.Empty> observer)
Close a client connection
|
abstract void |
dumpThreads(T ctx,
com.google.protobuf.Empty request,
Observer<HttpBody> observer)
Get a text-dump with thread information
|
com.google.protobuf.Descriptors.ServiceDescriptor |
getDescriptorForType() |
com.google.protobuf.Message |
getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
com.google.protobuf.Message |
getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method) |
abstract void |
getServerInfo(T ctx,
com.google.protobuf.Empty request,
Observer<GetServerInfoResponse> observer)
Get general server info
|
abstract void |
getThread(T ctx,
GetThreadRequest request,
Observer<ThreadInfo> observer)
Get info on a single thread
|
abstract void |
listClientConnections(T ctx,
com.google.protobuf.Empty request,
Observer<ListClientConnectionsResponse> observer)
List client connections
|
abstract void |
listRoutes(T ctx,
com.google.protobuf.Empty request,
Observer<ListRoutesResponse> observer)
List routes
|
abstract void |
listThreads(T ctx,
ListThreadsRequest request,
Observer<ListThreadsResponse> observer)
List threads
|
abstract void |
listTopics(T ctx,
com.google.protobuf.Empty request,
Observer<ListTopicsResponse> observer)
List topics
|
public abstract void getServerInfo(T ctx, com.google.protobuf.Empty request, Observer<GetServerInfoResponse> observer)
Get general server info
public abstract void listRoutes(T ctx, com.google.protobuf.Empty request, Observer<ListRoutesResponse> observer)
List routes
public abstract void listTopics(T ctx, com.google.protobuf.Empty request, Observer<ListTopicsResponse> observer)
List topics
public abstract void listThreads(T ctx, ListThreadsRequest request, Observer<ListThreadsResponse> observer)
List threads
public abstract void getThread(T ctx, GetThreadRequest request, Observer<ThreadInfo> observer)
Get info on a single thread
public abstract void dumpThreads(T ctx, com.google.protobuf.Empty request, Observer<HttpBody> observer)
Get a text-dump with thread information
public abstract void listClientConnections(T ctx, com.google.protobuf.Empty request, Observer<ListClientConnectionsResponse> observer)
List client connections
public abstract void closeConnection(T ctx, CloseConnectionRequest request, Observer<com.google.protobuf.Empty> observer)
Close a client connection
public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
getDescriptorForType in interface Api<T>public final com.google.protobuf.Message getRequestPrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getRequestPrototype in interface Api<T>public final com.google.protobuf.Message getResponsePrototype(com.google.protobuf.Descriptors.MethodDescriptor method)
getResponsePrototype in interface Api<T>public final void callMethod(com.google.protobuf.Descriptors.MethodDescriptor method,
T ctx,
com.google.protobuf.Message request,
Observer<com.google.protobuf.Message> future)
callMethod in interface Api<T>Copyright © 2022 Space Applications Services. All rights reserved.