Liron Ar has posted comments on this change. Change subject: core: adding option to not connect host to inactive domains servers ......................................................................
Patch Set 4: (3 comments) http://gerrit.ovirt.org/#/c/27522/4/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectHostToStoragePoolServerCommandBase.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectHostToStoragePoolServerCommandBase.java: Line 34: statuses = Line 35: EnumSet.of(StorageDomainStatus.Active, StorageDomainStatus.Inactive, StorageDomainStatus.Unknown); Line 36: } else { Line 37: statuses = EnumSet.of(StorageDomainStatus.Active, StorageDomainStatus.Unknown); Line 38: } > I would consider to re-factor this to a separate method replied in the earlier patchset with those comments Line 39: Line 40: _connections = Line 41: DbFacade.getInstance() Line 42: .getStorageServerConnectionDao() http://gerrit.ovirt.org/#/c/27522/4/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DisconnectHostFromStoragePoolServersCommand.java: Line 15: import org.ovirt.engine.core.common.vdscommands.VDSReturnValue; Line 16: Line 17: @InternalCommandAttribute Line 18: @NonTransactiveCommandAttribute Line 19: public class DisconnectHostFromStoragePoolServersCommand extends > Why not using the new parameter class also here? replied in the earlier patchset with those comments Line 20: ConnectHostToStoragePoolServerCommandBase<HostStoragePoolParametersBase> { Line 21: Line 22: public DisconnectHostFromStoragePoolServersCommand(HostStoragePoolParametersBase parameters) { Line 23: super(parameters); Line 26: } Line 27: Line 28: @Override Line 29: protected void executeCommand() { Line 30: initConnectionList(true); > Why not passing the parameter value replied in the earlier patchset with those comments Line 31: Line 32: for (Map.Entry<StorageType, List<StorageServerConnections>> connectionToType : getConnectionsTypeMap().entrySet()) { Line 33: disconnectStorageByType(connectionToType.getKey(), connectionToType.getValue()); Line 34: } -- To view, visit http://gerrit.ovirt.org/27522 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7cdde23f8513afa119af6eeff0a02e77c43395f3 Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Liron Ar <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Daniel Erez <[email protected]> Gerrit-Reviewer: Liron Ar <[email protected]> Gerrit-Reviewer: Maor Lipchuk <[email protected]> Gerrit-Reviewer: Tal Nisan <[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
