Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common-cli: add possibility to have command duplicates
Motivation: In situations, where a bean that provides a command used by a single cell twice (HA leader election for different activities, for example), then we need a way how to identify such command Modification: Add a new command annotation `CommandPrefix` that can be used to annotate String field of a class to resolve such command conflict. Result/Example: A possibility to instantiate multiple beans of the same type and command set. ``` public class HAServiceLeadershipManager { @CommandPrefix private final String serviceName; } ``` ``` admin > \s PnfsManager help ... chimera-fs-maintenance ha get role chimera-fs-maintenance ha release leadership chimera-fs-maintenance ha show participants ... pnfsmanager ha get role pnfsmanager ha release leadership pnfsmanager ha show participants ``` Acked-by: Albert Rossi Acked-by: Lea Morschel Acked-by: Paul Millar Target: master Require-book: no Require-notes: yes
- Loading branch information