Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn
Commits
82b60713
Commit
82b60713
authored
May 05, 2021
by
Costin Grigoras
Browse files
Use the same name for the number of active sessions
parent
4994886a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/alien/api/DispatchSSLServerNIO.java
View file @
82b60713
...
...
@@ -27,7 +27,6 @@ import java.util.concurrent.LinkedBlockingQueue;
import
java.util.concurrent.ThreadPoolExecutor
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
...
...
@@ -88,8 +87,6 @@ public class DispatchSSLServerNIO implements Runnable {
private
static
boolean
forwardRequest
=
false
;
private
static
AtomicInteger
activeSessions
=
new
AtomicInteger
();
private
static
CacheMonitor
ipv6Connections
=
null
;
private
static
Selector
serverSelector
;
...
...
@@ -104,9 +101,6 @@ public class DispatchSSLServerNIO implements Runnable {
if
(
monitor
!=
null
)
{
monitor
.
addMonitoring
(
"activeSessions"
,
(
names
,
values
)
->
{
names
.
add
(
"activeSessions"
);
values
.
add
(
Double
.
valueOf
(
activeSessions
.
get
()));
names
.
add
(
"connectedClients"
);
values
.
add
(
Double
.
valueOf
(
sessionMap
.
size
()));
names
.
add
(
"executorPoolSize"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment