
org.yamcs.protobuf.ServicesApiClient 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.907560176Z")
public class ServicesApiClient extends AbstractServicesApi {
private final MethodHandler handler;
public ServicesApiClient(MethodHandler handler) {
this.handler = handler;
}
/**
*
* List services
*
*/
@Override
public final void listServices(Void ctx, ListServicesRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(0),
request,
ListServicesResponse.getDefaultInstance(),
observer);
}
/**
*
* Get a service
*
*/
@Override
public final void getService(Void ctx, GetServiceRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(1),
request,
ServiceInfo.getDefaultInstance(),
observer);
}
/**
*
* Start a service
*
*/
@Override
public final void startService(Void ctx, StartServiceRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(2),
request,
Empty.getDefaultInstance(),
observer);
}
/**
*
* Stop a service
*
* Once stopped, a service cannot be resumed. Instead a new service
* instance will be created and started.
*
*/
@Override
public final void stopService(Void ctx, StopServiceRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(3),
request,
Empty.getDefaultInstance(),
observer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy