
org.yamcs.protobuf.DatabaseApiClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
package org.yamcs.protobuf;
import com.google.protobuf.Empty;
import org.yamcs.api.MethodHandler;
import org.yamcs.api.Observer;
@javax.annotation.processing.Generated(value = "org.yamcs.maven.ServiceGenerator", date = "2025-02-13T11:12:59.912789409Z")
public class DatabaseApiClient extends AbstractDatabaseApi {
private final MethodHandler handler;
public DatabaseApiClient(MethodHandler handler) {
this.handler = handler;
}
/**
*
* List databases
*
*/
@Override
public final void listDatabases(Void ctx, Empty request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(0),
request,
ListDatabasesResponse.getDefaultInstance(),
observer);
}
/**
*
* Get database
*
*/
@Override
public final void getDatabase(Void ctx, GetDatabaseRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(1),
request,
DatabaseInfo.getDefaultInstance(),
observer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy