public class SparkServer
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
ip |
Constructor and Description |
---|
SparkServer(DBHandler DBH,
SCADASystem system)
Initializes the Java Spark webserver on port 3000
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Starts the webserver and sets endpoints.
|
public SparkServer(DBHandler DBH, SCADASystem system)
DBH
- DBHandler for SCADA.dbsystem
- Data container for car's generic subsystemspublic void run()
run
in interface java.lang.Runnable