Package io.grpc.channelz.v1
Interface ChannelDataOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
ChannelData,ChannelData.Builder
public interface ChannelDataOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCallsFailed()The number of calls that have completed with a non-OK statuslonggetCallsStarted()The number of calls started on the channellonggetCallsSucceeded()The number of calls that have completed with an OK statusTimestampgetLastCallStartedTimestamp()The last time a call was started on the channel.TimestampOrBuildergetLastCallStartedTimestampOrBuilder()The last time a call was started on the channel.ChannelConnectivityStategetState()The connectivity state of the channel or subchannel.ChannelConnectivityStateOrBuildergetStateOrBuilder()The connectivity state of the channel or subchannel.StringgetTarget()The target this channel originally tried to connect to.ByteStringgetTargetBytes()The target this channel originally tried to connect to.ChannelTracegetTrace()A trace of recent events on the channel.ChannelTraceOrBuildergetTraceOrBuilder()A trace of recent events on the channel.booleanhasLastCallStartedTimestamp()The last time a call was started on the channel.booleanhasState()The connectivity state of the channel or subchannel.booleanhasTrace()A trace of recent events on the channel.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasState
boolean hasState()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;- Returns:
- Whether the state field is set.
-
getState
ChannelConnectivityState getState()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;- Returns:
- The state.
-
getStateOrBuilder
ChannelConnectivityStateOrBuilder getStateOrBuilder()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getTarget
String getTarget()
The target this channel originally tried to connect to. May be absent
string target = 2;- Returns:
- The target.
-
getTargetBytes
ByteString getTargetBytes()
The target this channel originally tried to connect to. May be absent
string target = 2;- Returns:
- The bytes for target.
-
hasTrace
boolean hasTrace()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;- Returns:
- Whether the trace field is set.
-
getTrace
ChannelTrace getTrace()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;- Returns:
- The trace.
-
getTraceOrBuilder
ChannelTraceOrBuilder getTraceOrBuilder()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
getCallsStarted
long getCallsStarted()
The number of calls started on the channel
int64 calls_started = 4;- Returns:
- The callsStarted.
-
getCallsSucceeded
long getCallsSucceeded()
The number of calls that have completed with an OK status
int64 calls_succeeded = 5;- Returns:
- The callsSucceeded.
-
getCallsFailed
long getCallsFailed()
The number of calls that have completed with a non-OK status
int64 calls_failed = 6;- Returns:
- The callsFailed.
-
hasLastCallStartedTimestamp
boolean hasLastCallStartedTimestamp()
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;- Returns:
- Whether the lastCallStartedTimestamp field is set.
-
getLastCallStartedTimestamp
Timestamp getLastCallStartedTimestamp()
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;- Returns:
- The lastCallStartedTimestamp.
-
getLastCallStartedTimestampOrBuilder
TimestampOrBuilder getLastCallStartedTimestampOrBuilder()
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
-