Package tensorflow.serving
Class ModelServiceGrpc.ModelServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingV2Stub>
tensorflow.serving.ModelServiceGrpc.ModelServiceBlockingV2Stub
- Enclosing class:
ModelServiceGrpc
public static final class ModelServiceGrpc.ModelServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingV2Stub>
A stub to allow clients to do 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.ModelServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceBlockingV2Stub>
-
getModelStatus
public GetModelStatus.GetModelStatusResponse getModelStatus(GetModelStatus.GetModelStatusRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
handleReloadConfigRequest
public ModelManagement.ReloadConfigResponse handleReloadConfigRequest(ModelManagement.ReloadConfigRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-