New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add profile name to TransportChannel #10483
Comments
One more note that whether we use
|
Today, only the NettyTransportChannel implements the getProfileName method and the other channel implementations do not. The profile name is useful for some plugins to perform custom actions based on the name. Rather than checking the type of the channel, it makes sense to always expose the profile name. For DirectResponseChannels we use a name that cannot be used in the settings to define another profile with that name. For LocalTransportChannel we use the same name as the default profile. Closes elastic#10483
Today, only the NettyTransportChannel implements the getProfileName method and the other channel implementations do not. The profile name is useful for some plugins to perform custom actions based on the name. Rather than checking the type of the channel, it makes sense to always expose the profile name. For DirectResponseChannels we use a name that cannot be used in the settings to define another profile with that name. For LocalTransportChannel we use the same name as the default profile. Closes elastic#10483
The
NettyTransportChannel
has a profile name, which is the name of the profile that the channel belongs to. These profiles allow for binding to multiple addresses and/or ports.After #10350 there is a new
TransportChannel
implementation,DirectResponseChannel
, used in the netty transport, which does not have the profile information. This implementation should provide a profile name to make it easier to deal with logic based on profiles in the netty transport. The name could be something like__local__
.Adding the
getProfileName
method to theTransportChannel
interface may make sense here as other transport implementations may implement the profile concept and those that don't can just return a default name.The text was updated successfully, but these errors were encountered: