Skip to content
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

Name resolution questions #1702

Closed
matteo-gsr opened this issue Dec 29, 2024 · 0 comments
Closed

Name resolution questions #1702

matteo-gsr opened this issue Dec 29, 2024 · 0 comments

Comments

@matteo-gsr
Copy link
Contributor

Couldn't find my answer in the official wiki docs - https://github.com/real-logic/aeron/wiki/Name-Resolution.

I understand the default name resolver can be taken out and replaced with a custom implementation based on the NameResolver interface https://github.com/real-logic/aeron/blob/master/aeron-driver/src/main/java/io/aeron/driver/NameResolver.java.

Looking at the interface

/**
     * Lookup the name and return a string of the form name:port that represents the endpoint or control param
     * of the URI.
     *
     * @param name         to lookup
     * @param uriParamName that the lookup is for.
     * @param isReLookup   {@code true} if this is a re-lookup or {@code true} if initial lookup.
     * @return string in name:port form.
     */
    default String lookup(String name, String uriParamName, boolean isReLookup)
    {
        return name;
    }

it's not really clear from the java docs what this method really does. It returns the given name by default. In which cases would you return something different? Am I able through this to override the given control host/port for instance?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant