log.debug(String.format("A cluster monitor is not found in autoscaler context [cluster] %s", clusterId));
}
return null;
}
String networkPartitionId = findNetworkPartitionId(memberId);
MemberStatsContext memberStatsContext = monitor.getNetworkPartitionCtxt(networkPartitionId)
.getPartitionCtxt(member.getPartitionId())
.getMemberStatsContext(memberId);
if(null == memberStatsContext){
if(log.isDebugEnabled()) {
log.debug(String.format("Member context is not available for : [member] %s", memberId));
}
return null;
}
else if(!member.isActive()){
if(log.isDebugEnabled()){
log.debug(String.format("Member activated event has not received for the member %s. Therefore ignoring" +
" the health stat", memberId));
}
return null;
}
LoadAverage loadAverage = memberStatsContext.getLoadAverage();
return loadAverage;
}