Yevgeny Zaspitsky has posted comments on this change. Change subject: core: MacPoolManager does not delegate ......................................................................
Patch Set 2: (2 comments) http://gerrit.ovirt.org/#/c/26793/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/MacPoolManager.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/MacPoolManager.java: Line 2: Line 3: import org.ovirt.engine.core.common.config.Config; Line 4: import org.ovirt.engine.core.common.config.ConfigValues; Line 5: Line 6: public class MacPoolManager { Now the better name is MacPoolManagerStrategyFactory IMHO Line 7: Line 8: private final MacPoolManagerStrategy defaultScope; Line 9: Line 10: private static final MacPoolManager INSTANCE = new MacPoolManager(); Line 19: final Boolean allowDuplicates = Config.getValue(ConfigValues.AllowDuplicateMacAddresses); Line 20: return new MacPoolManagerRanges(maxMacsCountInPool, macPoolRanges, allowDuplicates); Line 21: } Line 22: Line 23: public static MacPoolManagerStrategy getInstance() { and this would be createMacPoolManagerStrategy Line 24: return INSTANCE.defaultScope; Line 25: } -- To view, visit http://gerrit.ovirt.org/26793 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic4a6f353095e52088fbf3e7e0e9c1fe624a7e7cd Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Mucha <[email protected]> Gerrit-Reviewer: Yevgeny Zaspitsky <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
