org.zodiac.actuate.util.ActuatorHelper Maven / Gradle / Ivy
package org.zodiac.actuate.util;
import org.zodiac.core.application.AppContext;
import org.zodiac.core.application.AppInstanceOps;
import org.zodiac.sdk.toolkit.util.lang.StrUtil;
public class ActuatorHelper {
public AppInstanceOps appInstanceOps;
public ActuatorHelper(AppInstanceOps appInstanceOps) {
this.appInstanceOps = appInstanceOps;
}
public String getActuatorPath(String path) {
int port = AppContext.getInstance().getAppPort();
String url = this.appInstanceOps.getUrl(path);
return StrUtil.subStrAfter(url, ":" + port);
}
public String getActuatorPath() {
return getActuatorPath("");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy