Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
joram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joram
joram
Commits
8494f22a
Commit
8494f22a
authored
Jan 27, 2021
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JMQ-240: Allows to stop an already stopped server without warning.
parent
2a80bade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
...m/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
+10
-4
No files found.
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
View file @
8494f22a
/*
* Copyright (C) 2001 - 202
0
ScalAgent Distributed Technologies
* Copyright (C) 2001 - 202
1
ScalAgent Distributed Technologies
* Copyright (C) 2004 France Telecom R&D
* Copyright (C) 1996 - 2000 BULL
* Copyright (C) 1996 - 2000 INRIA
...
...
@@ -1773,10 +1773,16 @@ public final class AgentServer {
logmon
.
log
(
BasicLevel
.
INFO
,
getName
()
+
", stop()"
);
synchronized
(
status
)
{
if
((
status
.
value
!=
Status
.
STARTED
)
&&
(
status
.
value
!=
Status
.
STOPPED
))
{
if
((
status
.
value
==
Status
.
STOPPED
)
||
(
status
.
value
==
Status
.
INSTALLED
))
{
// The server is already stopped.
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
DEBUG
,
getName
()
+
" not running, status: "
+
getStatusInfo
(),
new
Exception
());
return
;
}
if
(
status
.
value
!=
Status
.
STARTED
)
{
logmon
.
log
(
BasicLevel
.
WARN
,
getName
()
+
"cannot stop, bad status: "
+
getStatusInfo
());
getName
()
+
"
cannot stop, bad status: "
+
getStatusInfo
());
return
;
}
status
.
value
=
Status
.
STOPPING
;
...
...
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