Top Description Inners Fields Constructors Methods
io.grpc

public final Class InternalChannelz

extends Object
Class Inheritance
Annotations
@Internal
Static Imports
com.google.common.base.Preconditions.checkNotNull, .Preconditions.checkState

This is an internal API. Do NOT use.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
InternalChannelz.ChannelStats

A data class to represent a channel's stats.

public static class
public static class
public static class
public static class
public static class
private static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
InternalChannelz.TransportStats

A data class to represent transport stats.

Field Summary

Modifier and TypeField and Description
private static final InternalChannelz
private static final Logger
private final ConcurrentMap<Long, InternalInstrumented<InternalChannelz.SocketStats>>
private final ConcurrentMap<Long, InternalChannelz.ServerSocketMap>
private final ConcurrentNavigableMap<Long, InternalInstrumented<InternalChannelz.ChannelStats>>
private final ConcurrentNavigableMap<Long, InternalInstrumented<InternalChannelz.ServerStats>>
private final ConcurrentMap<Long, InternalInstrumented<InternalChannelz.ChannelStats>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static <T extends InternalInstrumented<?>> void
add(Map<Long, T> map, T object)

public void
public void
public void
public void
public void
public void
private static <T extends InternalInstrumented<?>> boolean
public boolean
public boolean
public boolean
public InternalInstrumented<InternalChannelz.ChannelStats>
getChannel(long id)

Returns a channel.

public InternalInstrumented<InternalChannelz.ChannelStats>
getRootChannel(long id)

public InternalChannelz.RootChannelList
getRootChannels(long fromId, int maxPageSize)

Returns a RootChannelList.

public InternalInstrumented<InternalChannelz.ServerStats>
getServer(long id)

Returns a server.

public InternalChannelz.ServerList
getServers(long fromId, int maxPageSize)

Returns a server list.

private InternalInstrumented<InternalChannelz.SocketStats>
getServerSocket(long id)

public InternalChannelz.ServerSocketsList
getServerSockets(long serverId, long fromId, int maxPageSize)

Returns socket refs for a server.

public InternalInstrumented<InternalChannelz.SocketStats>
getSocket(long id)

Returns a socket.

public InternalInstrumented<InternalChannelz.ChannelStats>
getSubchannel(long id)

Returns a subchannel.

public static long
id(InternalWithLogId withLogId)

Unwraps a InternalLogId to return a long.

public static InternalChannelz
private static <T extends InternalInstrumented<?>> void
remove(Map<Long, T> map, T object)

public void
public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait