if(tenantId <= 0){
//We can allow all super tenant actions
return InvocationResponse.CONTINUE;
}
ThrottlingInfoCache throttlingInfoCache = ThrottlingAgentServiceComponent.getThrottlingAgent().getThrottlingInfoCache();
String[] actions = new String[]{StratosConstants.THROTTLING_SERVICE_IN_BANDWIDTH_ACTION,
StratosConstants.THROTTLING_SERVICE_OUT_BANDWIDTH_ACTION,
StratosConstants.THROTTLING_SERVICE_REQUEST_ACTION,
StratosConstants.THROTTLING_SERVICE_RESPONSE_ACTION
};
ThrottlingActionInfo actionInfo = throttlingInfoCache.getTenantThrottlingInfo(tenantId).getThrottlingActionInfo(actions);
if (actionInfo.isBlocked()) {
String blockedMsg = actionInfo.getMessage();
String msg = "The throttling action is blocked. message: " + blockedMsg;
log.error(msg);