Uses of Class
io.grpc.Status
Packages that use Status
Package
Description
The gRPC core public API.
Interfaces and implementations that are internal to gRPC.
API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf
messages.
Utilities with advanced features in the core layer that user can optionally use.
-
Uses of Status in io.grpc
Modifier and TypeFieldDescriptionstatic final StatusStatus.ABORTEDThe operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.static final StatusStatus.ALREADY_EXISTSSome entity that we attempted to create (e.g., file or directory) already exists.static final StatusStatus.CANCELLEDThe operation was cancelled (typically by the caller).static final StatusStatus.DATA_LOSSUnrecoverable data loss or corruption.static final StatusStatus.DEADLINE_EXCEEDEDDeadline expired before operation could complete.static final StatusStatus.FAILED_PRECONDITIONOperation was rejected because the system is not in a state required for the operation's execution.static final StatusStatus.INTERNALInternal errors.static final StatusStatus.INVALID_ARGUMENTClient specified an invalid argument.static final StatusStatus.NOT_FOUNDSome requested entity (e.g., file or directory) was not found.static final StatusStatus.OKThe operation completed successfully.static final StatusStatus.OUT_OF_RANGEOperation was attempted past the valid range.static final StatusStatus.PERMISSION_DENIEDThe caller does not have permission to execute the specified operation.static final StatusStatus.RESOURCE_EXHAUSTEDSome resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.static final StatusStatus.UNAUTHENTICATEDThe request does not have valid authentication credentials for the operation.static final StatusStatus.UNAVAILABLEThe service is currently unavailable.static final StatusStatus.UNIMPLEMENTEDOperation is not implemented or not supported/enabled in this service.static final StatusStatus.UNKNOWNUnknown error.Modifier and TypeFieldDescriptionstatic final Metadata.Key<Status> InternalStatus.CODE_KEYKey to bind status code to trailing metadata.Modifier and TypeMethodDescriptionLoadBalancer.acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses) Accepts newly resolved addresses from the name resolution system.Status.augmentDescription(String additionalDetail) Create a derived instance ofStatusaugmenting the current description with additional detail.static StatusStatus.fromCode(Status.Code code) Return aStatusgiven a canonical errorStatus.Codeobject.static StatusStatus.fromCodeValue(int codeValue) Return aStatusgiven a canonical errorStatus.Codevalue.static StatusStatus.fromThrowable(Throwable t) NameResolver.ConfigOrError.getError()Returns error status if exists, otherwise null.ConnectivityStateInfo.getStatus()Returns the status associated with the state.InternalConfigSelector.Result.getStatus()Returns the status of the config selection operation.LoadBalancer.PickResult.getStatus()The status associated with this result.final StatusStatusException.getStatus()Returns the status code as aStatusobject.StatusOr.getStatus()Returns the status.final StatusStatusRuntimeException.getStatus()Returns the status code as aStatusobject.NameResolver.Listener2.onResult2(NameResolver.ResolutionResult resolutionResult) Handles updates on resolved addresses and attributes.static StatusContexts.statusFromCancelled(Context context) Returns theStatusof a cancelled context ornullif the context is not cancelled.Status.Code.toStatus()Returns aStatusobject corresponding to this status code.Create a derived instance ofStatuswith the given cause.Status.withDescription(String description) Create a derived instance ofStatuswith the given description.Modifier and TypeMethodDescriptionstatic final StatusRuntimeExceptionInternalStatus.asRuntimeException(Status status, Metadata trailers, boolean fillInStackTrace) Create a newStatusRuntimeExceptionwith the internal option of skipping the filling of the stack trace.abstract voidClose the call with the provided status.abstract voidCalled when there has been an error when preparing the headers.Creates aResultwith the given error status.static ConnectivityStateInfoConnectivityStateInfo.forTransientFailure(Status error) Returns an instance forTRANSIENT_FAILURE, associated with an error status.static NameResolver.ConfigOrErrorReturns aNameResolver.ConfigOrErrorfor the failure to parse the config.static <T> StatusOr<T> StatusOr.fromStatus(Status status) Construct from a non-Ok status.abstract voidLoadBalancer.handleNameResolutionError(Status error) Handles an error from the name resolution system.voidThe ClientCall has been closed.voidHandles an error from the resolver.abstract voidHandles a name resolving error from the resolver.voidStreamTracer.streamClosed(Status status) Stream is closed.static LoadBalancer.PickResultA decision to fail an RPC immediately.static LoadBalancer.PickResultA decision to report a connectivity error to the RPC.ModifierConstructorDescriptionErrorPicker(Status error) Deprecated.StatusException(Status status) Constructs an exception with both a status.StatusException(Status status, Metadata trailers) Constructs an exception with both a status and trailers.StatusRuntimeException(Status status) Constructs the exception with a status.StatusRuntimeException(Status status, Metadata trailers) Constructs the exception with both a status and trailers. -
Uses of Status in io.grpc.internal
Methods in io.grpc.internal that return StatusModifier and TypeMethodDescriptionstatic StatusGrpcUtil.httpStatusToGrpcStatus(int httpStatusCode) Maps HTTP error response status codes to transport codes, as defined in http-grpc-status-mapping.md.static StatusGrpcUtil.replaceInappropriateControlPlaneStatus(Status status) Some status codes from the control plane are not appropritate to use in the data plane.GrpcUtil.Http2Error.status()Gets theStatusassociated with this HTTP/2 code.static StatusGrpcUtil.Http2Error.statusForCode(long code) Looks up theStatusfrom the given HTTP/2 error code.Methods in io.grpc.internal with parameters of type StatusModifier and TypeMethodDescriptionfinal voidvoidTears down the stream, typically in the event of a timeout.final voidvoidTears down the stream, typically in the event of a timeout.voidAbnormally terminates the stream.voidvoidTears down the stream, typically in the event of a timeout.final voidvoidCloses the stream for both reading and writing.voidClientStreamListener.closed(Status status, ClientStreamListener.RpcProgress rpcProgress, Metadata trailers) Called when the stream is fully closed.voidCalled when the stream is fully closed.protected abstract voidHttp2ClientStreamTransportState.http2ProcessingFailed(Status status, boolean stopDelivery, Metadata trailers) Called to process a failure in HTTP/2 processing.protected voidAbstractClientStream.TransportState.inboundTrailersReceived(Metadata trailers, Status status) Processes the trailers and status from the server.static StatusGrpcUtil.replaceInappropriateControlPlaneStatus(Status status) Some status codes from the control plane are not appropritate to use in the data plane.voidInitiates an orderly shutdown of the transport.voidManagedClientTransport.shutdownNow(Status reason) Initiates a forceful shutdown in which preexisting and new calls are closed.voidServerTransport.shutdownNow(Status reason) Initiates a forceful shutdown in which preexisting and new calls are closed.voidForwardingClientStreamTracer.streamClosed(Status status) voidStatsTraceContext.streamClosed(Status status) final voidAbstractClientStream.TransportState.transportReportStatus(Status status, boolean stopDelivery, Metadata trailers) Report stream closure with status to the application layer if not already reported.final voidAbstractClientStream.TransportState.transportReportStatus(Status status, ClientStreamListener.RpcProgress rpcProgress, boolean stopDelivery, Metadata trailers) Report stream closure with status to the application layer if not already reported.final voidAbstractServerStream.TransportState.transportReportStatus(Status status) Notifies failure to the listener of the stream.voidManagedClientTransport.Listener.transportShutdown(Status s) The transport is shutting down.voidAbstractServerStream.Sink.writeTrailers(Metadata trailers, boolean headersSent, Status status) Sends trailers to the remote end point.Constructors in io.grpc.internal with parameters of type StatusModifierConstructorDescriptionFailingClientStream(Status error, ClientStreamTracer[] tracers) Creates aFailingClientStreamthat would fail with the given error.FailingClientStream(Status error, ClientStreamListener.RpcProgress rpcProgress, ClientStreamTracer[] tracers) Creates aFailingClientStreamthat would fail with the given error. -
Uses of Status in io.grpc.protobuf
Methods in io.grpc.protobuf with parameters of type StatusModifier and TypeMethodDescriptionstatic com.google.rpc.StatusStatusProto.fromStatusAndTrailers(Status status, Metadata trailers) Extracts thegoogle.rpc.Statusfrom trailers, and makes sure they match the gRPCstatus. -
Uses of Status in io.grpc.util
Fields in io.grpc.util declared as StatusModifier and TypeFieldDescriptionfinal StatusMultiChildLoadBalancer.AcceptResolvedAddrRetVal.statusMethods in io.grpc.util that return StatusModifier and TypeMethodDescriptionGracefulSwitchLoadBalancer.acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses) MultiChildLoadBalancer.acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses) Override to completely replace the default logic or to do additional activities.OutlierDetectionLoadBalancer.acceptResolvedAddresses(LoadBalancer.ResolvedAddresses resolvedAddresses) Methods in io.grpc.util with parameters of type StatusModifier and TypeMethodDescriptionvoidForwardingLoadBalancer.handleNameResolutionError(Status error) voidMultiChildLoadBalancer.handleNameResolutionError(Status error) Handle the name resolution error.voidOutlierDetectionLoadBalancer.handleNameResolutionError(Status error) voidForwardingClientStreamTracer.streamClosed(Status status) Constructors in io.grpc.util with parameters of type StatusModifierConstructorDescriptionAcceptResolvedAddrRetVal(Status status, List<MultiChildLoadBalancer.ChildLbState> removedChildren)