aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-24 21:38:32 +1200
committerGitHub <noreply@github.com>2016-06-24 21:38:32 +1200
commit5b254b93fef12f39b0782bbc94d5f280e680900c (patch)
treec2296ba2461ffc7d33bebb034468e56a5511defc /src/org/traccar/BasePipelineFactory.java
parent25e323de26718d349999873196bc5c3f5d70eaae (diff)
parent52e7002ed39c333884529c3a0e8b4c6d23f0115e (diff)
downloadtraccar-server-5b254b93fef12f39b0782bbc94d5f280e680900c.tar.gz
traccar-server-5b254b93fef12f39b0782bbc94d5f280e680900c.tar.bz2
traccar-server-5b254b93fef12f39b0782bbc94d5f280e680900c.zip
Merge pull request #2044 from Abyss777/master
Possibility to disable event and geofences
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index b61d95171..44f1b0657 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -132,20 +132,20 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
hemisphereHandler = new HemisphereHandler();
}
- commandResultEventHandler = new CommandResultEventHandler();
+ if (Context.getConfig().getBoolean("event.enable")) {
+ commandResultEventHandler = new CommandResultEventHandler();
- if (Context.getConfig().getBoolean("event.overspeedHandler")) {
- overspeedEventHandler = new OverspeedEventHandler();
- }
+ if (Context.getConfig().getBoolean("event.overspeedHandler")) {
+ overspeedEventHandler = new OverspeedEventHandler();
+ }
- if (Context.getConfig().getBoolean("event.motionHandler")) {
- motionEventHandler = new MotionEventHandler();
+ if (Context.getConfig().getBoolean("event.motionHandler")) {
+ motionEventHandler = new MotionEventHandler();
+ }
}
-
if (Context.getConfig().getBoolean("event.geofenceHandler")) {
geofenceEventHandler = new GeofenceEventHandler();
}
-
}
protected abstract void addSpecificHandlers(ChannelPipeline pipeline);