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

com.alibaba.csp.ahas.sentinel.util.MachineUtils Maven / Gradle / Ivy

There is a newer version: 1.11.7
Show newest version
package com.alibaba.csp.ahas.sentinel.util;

import com.alibaba.csp.ahas.sentinel.AhasGlobalContext;

import com.taobao.csp.ahas.service.api.client.ClientInfoService;
import com.taobao.csp.ahas.service.component.AgwProductCode;

/**
 * @author Eric Zhao
 */
public final class MachineUtils {

    public static String getCurrentProcessConfigurationId() {
        ClientInfoService clientInfoService = AhasGlobalContext.getClientInfoService();
        if (clientInfoService == null) {
            return null;
        }
        return clientInfoService.getAid(AgwProductCode.SENTINEL);
    }

    private MachineUtils() {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy