Package tensorflow.serving
Class ModelServiceGrpc.ModelServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceFutureStub>
io.grpc.stub.AbstractFutureStub<ModelServiceGrpc.ModelServiceFutureStub>
tensorflow.serving.ModelServiceGrpc.ModelServiceFutureStub
- Enclosing class:
ModelServiceGrpc
public static final class ModelServiceGrpc.ModelServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<ModelServiceGrpc.ModelServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service ModelService.
ModelService provides methods to query and update the state of the server, e.g. which models/versions are being served.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServiceGrpc.ModelServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<GetModelStatus.GetModelStatusResponse> Gets status of model.com.google.common.util.concurrent.ListenableFuture<ModelManagement.ReloadConfigResponse> Reloads the set of served models.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ModelServiceGrpc.ModelServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceFutureStub>
-
getModelStatus
public com.google.common.util.concurrent.ListenableFuture<GetModelStatus.GetModelStatusResponse> getModelStatus(GetModelStatus.GetModelStatusRequest request) Gets status of model. If the ModelSpec in the request does not specify version, information about all versions of the model will be returned. If the ModelSpec in the request does specify a version, the status of only that version will be returned.
-
handleReloadConfigRequest
public com.google.common.util.concurrent.ListenableFuture<ModelManagement.ReloadConfigResponse> handleReloadConfigRequest(ModelManagement.ReloadConfigRequest request) Reloads the set of served models. The new config supersedes the old one, so if a model is omitted from the new config it will be unloaded and no longer served.
-