Changeset 1821 for trunk/autoquest-htmlmonitor/src/main/java/de
- Timestamp:
- 11/13/14 15:23:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorLogManager.java
r1746 r1821 119 119 HtmlEvent[] events) 120 120 { 121 HtmlMonitorOutputWriter writer = writers.get(clientInfos.getClientId()); 121 HtmlMonitorOutputWriter writer = 122 writers.get(clientInfos.getClientId() + clientInfos.getUrl()); 122 123 123 124 try { 124 125 if (writer == null) { 125 126 synchronized (this) { 126 writer = writers.get(clientInfos.getClientId() );127 writer = writers.get(clientInfos.getClientId() + clientInfos.getUrl()); 127 128 if (writer == null) { 128 129 writer = new HtmlMonitorOutputWriter … … 132 133 writer.init(); 133 134 writer.start(); 134 writers.put(clientInfos.getClientId() , writer);135 writers.put(clientInfos.getClientId() + clientInfos.getUrl(), writer); 135 136 } 136 137 } … … 147 148 // determine, if the writer exists but is not able to log something. In this case, 148 149 // destroy the writer (part of the message may be logged twice through this). 149 writer = writers.get(clientInfos.getClientId() );150 writer = writers.get(clientInfos.getClientId() + clientInfos.getUrl()); 150 151 if (writer != null) { 151 152 try { … … 154 155 catch (Exception e1) { 155 156 synchronized (this) { 156 writers.remove(clientInfos.getClientId() );157 writers.remove(clientInfos.getClientId() + clientInfos.getUrl()); 157 158 writer.stop(); 158 159 } … … 186 187 } 187 188 188 for (String clientId : timeoutSessions) {189 HtmlMonitorOutputWriter writer = writers.remove( clientId);189 for (String sessionId : timeoutSessions) { 190 HtmlMonitorOutputWriter writer = writers.remove(sessionId); 190 191 writer.stop(); 191 192 }
Note: See TracChangeset
for help on using the changeset viewer.