Skip to content

Commit 0f24a09

Browse files
committed
System Touch
1 parent 47e7700 commit 0f24a09

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

source/messaging/MessageQueueSorter.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public class MessageQueueSorter extends Thread
1515
{
1616
protected String hash = "0xDA717018470E213F";
1717

18-
protected WebExpress web_express;
18+
protected WebExpress WEBEXPRESS;
1919

20-
public MessageQueueSorter(WebExpress web_express)
20+
public MessageQueueSorter(WebExpress WEBEXPRESS)
2121
{
22-
this.web_express = web_express;
22+
this.WEBEXPRESS = WEBEXPRESS;
2323

2424
this.setName("MessageQueueSorter");
2525
}
@@ -31,7 +31,7 @@ public void run()
3131

3232
while(true)
3333
{
34-
MessageQueue message_queue = this.web_express.MESSAGE_QUEUE;
34+
MessageQueue message_queue = this.WEBEXPRESS.MESSAGE_QUEUE;
3535

3636
try
3737
{
@@ -51,7 +51,7 @@ public void run()
5151
{
5252
if(CommonRails.SocketUtils.isSocketConnected(message.socket))
5353
{
54-
BufferedWriter writer = this.web_express.TELNET_COMMUNICATION_PROXY.writer;
54+
BufferedWriter writer = this.WEBEXPRESS.TELNET_COMMUNICATION_PROXY.writer;
5555

5656
CommonRails.printSystemComponent(this, this.hashCode(), ". WebExpress MessageQueueSorter sending to Telnet message Message: " + message.MESSAGE_BUFFER + " .");
5757

@@ -82,7 +82,7 @@ public void run()
8282
}
8383
catch (Exception e)
8484
{
85-
CurrentConnections connections = this.web_express.current_connections;
85+
CurrentConnections connections = this.WEBEXPRESS.CURRENT_CONNECTIONS;
8686

8787
connections.remove(message.connection);
8888

@@ -91,7 +91,7 @@ public void run()
9191
CommonRails.printSystemComponent(this, this.hashCode(), ". WebExpress MessageQueueSorter >> dropped connection "+message.socket+" - new connection count "+arithemeter.result.arithemetic +" : "+arithemeter.result.numeral +" .");
9292
}
9393

94-
this.web_express.current_connections.remove(message.socket);
94+
this.WEBEXPRESS.CURRENT_CONNECTIONS.remove(message.socket);
9595

9696
break;
9797
}
@@ -102,7 +102,7 @@ public void run()
102102

103103
try
104104
{
105-
BufferedReader reader = this.web_express.TELNET_COMMUNICATION_PROXY.reader;
105+
BufferedReader reader = this.WEBEXPRESS.TELNET_COMMUNICATION_PROXY.reader;
106106

107107
if(CommonRails.SocketUtils.isSocketConnected(message.socket))
108108
{
@@ -122,7 +122,7 @@ public void run()
122122
}
123123
else
124124
{
125-
CurrentConnections connections = this.web_express.current_connections;
125+
CurrentConnections connections = this.WEBEXPRESS.CURRENT_CONNECTIONS;
126126

127127
connections.remove(message.connection);
128128

@@ -153,18 +153,18 @@ public synchronized void addMessage(MessageQueue.Message message)
153153
{
154154
CommonRails.printSystemComponent(this, this.hashCode(), ". WebExpress addMessage message queue size before "+this.getMessageQueueSize()+" .");
155155

156-
this.web_express.MESSAGE_QUEUE.add(message);
156+
this.WEBEXPRESS.MESSAGE_QUEUE.add(message);
157157

158158
CommonRails.printSystemComponent(this, this.hashCode(), ". WebExpress addMessage message queue size after "+this.getMessageQueueSize()+" .");
159159
}
160160

161161
public synchronized MessageQueue getMessageQueue()
162162
{
163-
return this.web_express.MESSAGE_QUEUE;
163+
return this.WEBEXPRESS.MESSAGE_QUEUE;
164164
}
165165

166166
public synchronized Integer getMessageQueueSize()
167167
{
168-
return this.web_express.MESSAGE_QUEUE.MESSAGES.size();
168+
return this.WEBEXPRESS.MESSAGE_QUEUE.MESSAGES.size();
169169
}
170170
}

source/server/nitro/NitroWebExpress.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public void run()
288288
}
289289
catch (Exception e)
290290
{
291-
CurrentConnections connections = this.WEB_EXPRESS.current_connections;
291+
CurrentConnections connections = this.WEB_EXPRESS.CURRENT_CONNECTIONS;
292292

293293
connections.remove(message.connection);
294294

@@ -297,7 +297,7 @@ public void run()
297297
CommonRails.printSystemComponent(this, this.hashCode(), ". WebExpress MessageQueueSorter >> dropped connection "+message.socket+" - new connection count "+arithemeter.result.arithemetic +" : "+arithemeter.result.numeral +" .");
298298
}
299299

300-
this.WEB_EXPRESS.current_connections.remove(message.socket);
300+
this.WEB_EXPRESS.CURRENT_CONNECTIONS.remove(message.socket);
301301

302302
break;
303303
}
@@ -328,7 +328,7 @@ public void run()
328328
}
329329
else
330330
{
331-
CurrentConnections connections = this.WEB_EXPRESS.current_connections;
331+
CurrentConnections connections = this.WEB_EXPRESS.CURRENT_CONNECTIONS;
332332

333333
connections.remove(message.connection);
334334

0 commit comments

Comments
 (0)