Package tensorflow.serving
Class ModelServiceGrpc.ModelServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceBlockingStub>
io.grpc.stub.AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingStub>
tensorflow.serving.ModelServiceGrpc.ModelServiceBlockingStub
- Enclosing class:
ModelServiceGrpc
public static final class ModelServiceGrpc.ModelServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingStub>
A stub to allow clients to do limited synchronous 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 TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Gets status of model.Reloads the set of served models.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.ModelServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceBlockingStub>
-
getModelStatus
public 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 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.
-