Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 1f3e12e

Browse files
committed
#110 Renaming method to be more accurate
1 parent 0acff93 commit 1f3e12e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/com/marklogic/appdeployer/command/forests/ConfigureForestReplicasCommand.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected void configureReplicaForests(String forestIdOrName, int replicaCount,
169169
return;
170170
}
171171

172-
Map<String, String> replicaNamesAndHostIds = determineReplicaNamesAndHostIds(forestIdOrName, replicaCount, hostIds, forestMgr);
172+
Map<String, String> replicaNamesAndHostIds = createReplicaForests(forestIdOrName, replicaCount, hostIds, forestMgr);
173173
logger.info(format("Configuring forest replicas for primary forest %s", forestIdOrName));
174174
if (!replicaNamesAndHostIds.isEmpty()) {
175175
forestMgr.setReplicas(forestIdOrName, replicaNamesAndHostIds);
@@ -185,10 +185,11 @@ protected void configureReplicaForests(String forestIdOrName, int replicaCount,
185185
* @param replicaCount
186186
* @param hostIds
187187
* @param forestMgr
188-
* @return
188+
* @return a map where the keys are replica forest names, and the value of each key is the ID of the host that
189+
* the replica was created on
189190
*/
190-
protected Map<String, String> determineReplicaNamesAndHostIds(String forestIdOrName, int replicaCount, List<String> hostIds,
191-
ForestManager forestMgr) {
191+
protected Map<String, String> createReplicaForests(String forestIdOrName, int replicaCount, List<String> hostIds,
192+
ForestManager forestMgr) {
192193
String primaryForestHostId = forestMgr.getHostId(forestIdOrName);
193194
Map<String, String> replicaNamesAndHostIds = new HashMap<>();
194195
int size = hostIds.size();

0 commit comments

Comments
 (0)