Skip to content

SAMZA-2574 : improve flexibility of SystemFactory interface#1430

Merged
sborya merged 3 commits intoapache:masterfrom
MabelYC:addLabel
Sep 22, 2020
Merged

SAMZA-2574 : improve flexibility of SystemFactory interface#1430
sborya merged 3 commits intoapache:masterfrom
MabelYC:addLabel

Conversation

@MabelYC
Copy link
Contributor

@MabelYC MabelYC commented Sep 16, 2020

This is second pr to supplement commit: 4d97a8d

Changes: Added addition label info to SystemAdmin to help user provide more information to SystemFactory.
API Changes: Added several new functions to help provide more parameter. Won't impact current users.
Upgrade Instructions: None
Usage Instructions: None

@MabelYC MabelYC marked this pull request as ready for review September 16, 2020 17:00
Copy link
Contributor

@rmatharu-zz rmatharu-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

* @return SystemAdmin of the system if it exists, otherwise null.
*/
public SystemAdmin getSystemAdmin(String systemName, String adminLabel) {
if (systemAdminMap.isEmpty() || (systemAdminMap.containsKey(systemName) && systemAdminMap.get(systemName).isStopped())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for isEmpty() check.

@sborya sborya merged commit 42a57b2 into apache:master Sep 22, 2020
@MabelYC MabelYC deleted the addLabel branch January 5, 2021 00:58
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

Successfully merging this pull request may close these issues.

3 participants