Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make file paths and network addresses and ports configurable, where appropriate #47

Open
arndtjonasson opened this issue Feb 27, 2015 · 3 comments

Comments

@arndtjonasson
Copy link
Collaborator

For example, where the simulator finds the server, and where the server finds the database, etc.

@arndtjonasson
Copy link
Collaborator Author

See also #16.

simulator has settings.properties.

PluginWebServicePublisher.java
private final static int SOCKET_PORT = 9999;
private final static int WSDL_PORT = 9990;
private final static String PUB_ADDRESS = "http://localhost:" + WSDL_PORT + "/moped/pws";
// private final static String PUB_ADDRESS = "http://appz-ext.sics.se:" + WSDL_PORT + "/moped/pws";

PluginWebServicesImpl.java
private SuiteGen suiteGen = new SuiteGen("/lhome/sse/squawk");

ecm-core/src/main/java/network/external/CarDriver.java:
private static final int PORT = 9000;

new-server/src/main/java/service/CallMySql.java:
String url = "jdbc:mysql://localhost:3306/fresta2";

./new-server/src/main/java/service/PluginWebServicesImpl.java: private SuiteGen suiteGen = new SuiteGen("/home/arndt/moped/moped/squawk");
./new-server/src/main/java/service/PluginWebServicesImpl.java: String dir = "/home/arndt/moped/moped/webportal/moped_plugins/" + appname
./new-server/src/main/java/service/PluginWebServicesImpl.java: String zipFile = "/home/arndt/moped/moped/webportal/moped_plugins/" + appname + "/" + version + "/" + appname + ".jar";

simulator/settings.properties:APP_DIR=apps
APP_DIR is used in ecm-core
Read with PropertyAPI.getInstance().getProperty

ecm-linux/settings.properties
ecm-linux/canConfig.xml

simulator:CarFactory
and ecm-linux:Main
IReceiver receiver = ReceiverFactory.receiver("mqtt+retain+clean://iot.eclipse.org:1883/zeni/speed");
IoTManager iotManager = new IoTManager(publisher); //, receiver);

@arndtjonasson
Copy link
Collaborator Author

Now also the location of the vehicleconfig.xsd schema.

@arndtjonasson arndtjonasson changed the title Make addresses and ports configurable, where appropriate Make file paths and network addresses and ports configurable, where appropriate Mar 22, 2015
@arndtjonasson
Copy link
Collaborator Author

The server now uses the file settings.properties in the "new-server" directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant