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

Adding tagging at all topology levels #39

Closed
vdogaru opened this issue Feb 23, 2016 · 1 comment
Closed

Adding tagging at all topology levels #39

vdogaru opened this issue Feb 23, 2016 · 1 comment

Comments

@vdogaru
Copy link
Contributor

vdogaru commented Feb 23, 2016

Currently, TStreams can be tagged when a topology is declared. Tags are inserted in the JSON graph representation, so the console can display tags associated with the graph elements, show streams by tag name, etc.

Application developers should have the ability to add tags at all topology levels. This requires a Tagable interface that may be implemented by children of TopologyElement:

public interface Tagable {
    /**
     * Adds the specified tags. Adding the same tag multiple times will not change 
     * the result beyond the initial application.
     * 
     * @param values  Tag values.
     */
    void tag(String... values);

    /**
     * Returns the set of tags associated with this instance.
     * 
     * @return set of tag values.
     */
    Set<String> getTags();
}
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