Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MessageTrigger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
DataProcess
MessageTrigger
Commits
e8515d7e
Commit
e8515d7e
authored
Jul 2, 2020
by
Antonin Hottois
Committed by
Antonin Hottois
Jul 17, 2020
Browse files
Options
Downloads
Patches
Plain Diff
Status message changes
parent
6fa4a15d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/fr/soleil/tango/server/messagetrigger/MessageTrigger.java
+2
-2
2 additions, 2 deletions
...fr/soleil/tango/server/messagetrigger/MessageTrigger.java
with
2 additions
and
2 deletions
src/main/java/fr/soleil/tango/server/messagetrigger/MessageTrigger.java
+
2
−
2
View file @
e8515d7e
...
...
@@ -194,16 +194,17 @@ public class MessageTrigger implements StateUpdates {
@StateMachine
(
deniedStates
=
{
DeviceState
.
FAULT
,
DeviceState
.
OFF
,
DeviceState
.
INIT
})
public
void
Stop
()
{
// Stops the monitoring task
sendInfo
(
"Stopping...!"
);
if
(
triggerTask
!=
null
)
triggerTask
.
stop
();
setStatus
(
"Trigger service stopped!\nDevice standing by..."
);
setState
(
DeviceState
.
OFF
);
sendInfo
(
"Successfull stop!"
);
}
// Command Start
@Command
(
inTypeDesc
=
"Starts the monitoring service"
,
displayLevel
=
1
)
@StateMachine
(
deniedStates
=
{
DeviceState
.
FAULT
,
DeviceState
.
ALARM
,
DeviceState
.
ON
,
DeviceState
.
INIT
})
public
void
Start
()
{
sendInfo
(
"Starting...!"
);
// Get the list of monitored attributes to display their names in status
monitoredAttributesString
=
"Monitored attributes:\n"
;
for
(
int
i
=
0
;
i
<
monitoredAttributesList
.
size
();
i
++)
{
...
...
@@ -215,7 +216,6 @@ public class MessageTrigger implements StateUpdates {
triggerTask
=
new
TriggerPulserTask
(
PollingPeriod
,
monitoredAttributesList
,
monitoredDevicesMap
,
textTalkerDevice
,
sentMessagesArray
,
this
);
setStatus
(
"Trigger service started!\n\n"
+
monitoredAttributesString
);
setState
(
DeviceState
.
ON
);
sendInfo
(
"Successfull start!"
);
}
// Command ClearMessagesList
...
...
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