All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.appdeployer.command.forests.DefaultForestNamingStrategy Maven / Gradle / Ivy

Go to download

Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic

There is a newer version: 5.0.0
Show newest version
package com.marklogic.appdeployer.command.forests;

import com.marklogic.appdeployer.AppConfig;

public class DefaultForestNamingStrategy implements ForestNamingStrategy {

	@Override
	public String getForestName(String databaseName, int forestNumber, AppConfig appConfig) {
		return databaseName + "-" + forestNumber;
	}

	@Override
	public String getReplicaName(String databaseName, String forestName, int forestReplicaNumber, AppConfig appConfig) {
		return forestName + "-replica-" + forestReplicaNumber;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy