Package alluxio.grpc
Class GrpcChannelKey
- java.lang.Object
-
- alluxio.grpc.GrpcChannelKey
-
public class GrpcChannelKey extends java.lang.Object
Used to define a key forGrpcChannelPool
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcChannelKey(GrpcNetworkGroup networkGroup, GrpcServerAddress serverAddress, int groupIndex)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.UUID
getChannelId()
GrpcNetworkGroup
getNetworkGroup()
GrpcServerAddress
getServerAddress()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
GrpcChannelKey
protected GrpcChannelKey(GrpcNetworkGroup networkGroup, GrpcServerAddress serverAddress, int groupIndex)
Constructor.- Parameters:
networkGroup
- network groupserverAddress
- server addressgroupIndex
- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-