Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Akka-Performancetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christian Wulf
Akka-Performancetest
Commits
172af7e2
Commit
172af7e2
authored
9 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
added log information
parent
e294c07c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/akka/common/CounterActor.java
+2
-4
2 additions, 4 deletions
src/main/java/akka/common/CounterActor.java
with
2 additions
and
4 deletions
src/main/java/akka/common/CounterActor.java
+
2
−
4
View file @
172af7e2
...
@@ -17,11 +17,10 @@ public class CounterActor extends UntypedActor {
...
@@ -17,11 +17,10 @@ public class CounterActor extends UntypedActor {
private
final
Set
<
Thread
>
threads
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
Thread
,
Boolean
>());
private
final
Set
<
Thread
>
threads
=
Collections
.
newSetFromMap
(
new
ConcurrentHashMap
<
Thread
,
Boolean
>());
private
volatile
int
numMessages
;
private
int
numMessages
;
public
CounterActor
(
final
ActorRef
watchActor
)
{
public
CounterActor
(
final
ActorRef
watchActor
)
{
super
();
super
();
LOGGER
.
debug
(
"self: "
+
getSelf
());
watchActor
.
tell
(
new
WatchMe
(
getSelf
()),
getSelf
());
watchActor
.
tell
(
new
WatchMe
(
getSelf
()),
getSelf
());
}
}
...
@@ -42,12 +41,11 @@ public class CounterActor extends UntypedActor {
...
@@ -42,12 +41,11 @@ public class CounterActor extends UntypedActor {
private
void
onTerminating
()
{
private
void
onTerminating
()
{
LOGGER
.
debug
(
"Terminating..."
);
LOGGER
.
debug
(
"Terminating..."
);
LOGGER
.
trace
(
"Current thread: "
+
Thread
.
currentThread
());
}
}
@Override
@Override
public
void
postStop
()
throws
Exception
{
public
void
postStop
()
throws
Exception
{
LOGGER
.
trace
(
"Threads ("
+
threads
.
size
()
+
"): "
+
threads
);
LOGGER
.
debug
(
"Threads ("
+
threads
.
size
()
+
"): "
+
threads
);
LOGGER
.
info
(
self
().
path
().
name
()
+
": "
+
numMessages
+
" messages"
);
LOGGER
.
info
(
self
().
path
().
name
()
+
": "
+
numMessages
+
" messages"
);
super
.
postStop
();
super
.
postStop
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment