SEBSERV-445 removed synchronized SEB connection cache access
This commit is contained in:
parent
48d3e5101c
commit
9708d8610b
2 changed files with 13 additions and 5 deletions
|
@ -378,9 +378,9 @@ public class ExamSessionServiceImpl implements ExamSessionService {
|
|||
|
||||
@Override
|
||||
public ClientConnectionDataInternal getConnectionDataInternal(final String connectionToken) {
|
||||
synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
return this.examSessionCacheService.getClientConnection(connectionToken);
|
||||
}
|
||||
//synchronized (ExamSessionCacheService.CLIENT_CONNECTION_CREATION_LOCK) {
|
||||
return this.examSessionCacheService.getClientConnection(connectionToken);
|
||||
//}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -314,6 +314,8 @@ public class ExamMonitoringController {
|
|||
name = API.EXAM_MONITORING_CLIENT_GROUP_FILTER,
|
||||
required = false) final String hiddenClientGroups) {
|
||||
|
||||
final long now = Utils.getMillisecondsNow();
|
||||
|
||||
final Exam runningExam = checkPrivileges(institutionId, examId);
|
||||
|
||||
final MonitoringSEBConnectionData monitoringSEBConnectionData = this.examSessionService
|
||||
|
@ -322,21 +324,27 @@ public class ExamMonitoringController {
|
|||
createMonitoringFilter(hiddenStates, hiddenClientGroups))
|
||||
.getOrThrow();
|
||||
|
||||
MonitoringFullPageData monitoringFullPageData;
|
||||
if (this.examAdminService.isProctoringEnabled(runningExam).getOr(false)) {
|
||||
final Collection<RemoteProctoringRoom> proctoringData = this.examProcotringRoomService
|
||||
.getProctoringCollectingRooms(examId)
|
||||
.getOrThrow();
|
||||
|
||||
return new MonitoringFullPageData(
|
||||
monitoringFullPageData = new MonitoringFullPageData(
|
||||
examId,
|
||||
monitoringSEBConnectionData,
|
||||
proctoringData);
|
||||
|
||||
} else {
|
||||
return new MonitoringFullPageData(
|
||||
monitoringFullPageData = new MonitoringFullPageData(
|
||||
examId,
|
||||
monitoringSEBConnectionData,
|
||||
Collections.emptyList());
|
||||
}
|
||||
|
||||
System.out.println("%%%%%%%% --> monitoring tuck: " + (Utils.getMillisecondsNow() - now));
|
||||
|
||||
return monitoringFullPageData;
|
||||
}
|
||||
|
||||
@RequestMapping(
|
||||
|
|
Loading…
Reference in a new issue