Package alluxio.grpc

Class GrpcChannelKey


  • public class GrpcChannelKey
    extends java.lang.Object
    Used to define a key for GrpcChannelPool.
    • Constructor Detail

      • GrpcChannelKey

        protected GrpcChannelKey​(GrpcNetworkGroup networkGroup,
                                 GrpcServerAddress serverAddress,
                                 int groupIndex)
        Constructor.
        Parameters:
        networkGroup - network group
        serverAddress - server address
        groupIndex - the order of channel in slots that are allocated for its network group
    • Method Detail

      • getChannelId

        public java.util.UUID getChannelId()
        Returns:
        unique identifier for the channel
      • getServerAddress

        public GrpcServerAddress getServerAddress()
        Returns:
        destination address of the channel
      • getNetworkGroup

        public GrpcNetworkGroup getNetworkGroup()
        Returns:
        the network group
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object