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

org.zodiac.actuate.util.ActuatorHelper Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
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