com.alibaba.csp.ahas.sentinel.util.MachineUtils Maven / Gradle / Ivy
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