Package tensorflow.serving
Class ModelServiceGrpc.ModelServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
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>
ModelService provides methods to query and update the state of the server, e.g. which models/versions are being served.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description protected ModelServiceGrpc.ModelServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)com.google.common.util.concurrent.ListenableFuture<GetModelStatus.GetModelStatusResponse>getModelStatus(GetModelStatus.GetModelStatusRequest request)Gets status of model.com.google.common.util.concurrent.ListenableFuture<ModelManagement.ReloadConfigResponse>handleReloadConfigRequest(ModelManagement.ReloadConfigRequest request)Reloads the set of served models.
-
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.
-