aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-15 23:20:48 -0800
committerGitHub <noreply@github.com>2022-01-15 23:20:48 -0800
commit4f30409c3bf1c2ea70823eb45bdf43bc5a4b6ad1 (patch)
treeecdad61979167b4fc605ba2ec4420709b5c1b0fd /src/main/java/org/traccar/BaseProtocol.java
parent839751e76e329adb573150644bd6198beba0d3b6 (diff)
parent0ce163ba62cc991fee56d9c05fca41c9f7a28143 (diff)
downloadtrackermap-server-4f30409c3bf1c2ea70823eb45bdf43bc5a4b6ad1.tar.gz
trackermap-server-4f30409c3bf1c2ea70823eb45bdf43bc5a4b6ad1.tar.bz2
trackermap-server-4f30409c3bf1c2ea70823eb45bdf43bc5a4b6ad1.zip
Merge pull request #4797 from traccar/polling
Implement polling protocol support
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocol.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocol.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/BaseProtocol.java b/src/main/java/org/traccar/BaseProtocol.java
index bd3391822..52d34dc44 100644
--- a/src/main/java/org/traccar/BaseProtocol.java
+++ b/src/main/java/org/traccar/BaseProtocol.java
@@ -35,7 +35,7 @@ public abstract class BaseProtocol implements Protocol {
private final String name;
private final Set<String> supportedDataCommands = new HashSet<>();
private final Set<String> supportedTextCommands = new HashSet<>();
- private final List<TrackerServer> serverList = new LinkedList<>();
+ private final List<TrackerConnector> connectorList = new LinkedList<>();
private StringProtocolEncoder textCommandEncoder = null;
@@ -54,12 +54,16 @@ public abstract class BaseProtocol implements Protocol {
}
protected void addServer(TrackerServer server) {
- serverList.add(server);
+ connectorList.add(server);
+ }
+
+ protected void addClient(TrackerClient client) {
+ connectorList.add(client);
}
@Override
- public Collection<TrackerServer> getServerList() {
- return serverList;
+ public Collection<TrackerConnector> getConnectorList() {
+ return connectorList;
}
public void setSupportedDataCommands(String... commands) {