Commit 023db77c authored by j.hoerdt's avatar j.hoerdt
Browse files

create handle package

parent f56ebcf2
......@@ -34,6 +34,7 @@ public class Main {
// }
public static Driver driver;
public static String handle_registry_session_id;
public static java.util.logging.Logger glogger;
private static java.util.logging.Logger logger;
static {
......@@ -157,6 +158,11 @@ public class Main {
Main.logger.fine("setting http_agent to: " + http_agent);
System.setProperty("http.agent", http_agent);
Main.logger.fine("creating pid registry session");
handle_registry_session_id = sensor2graph.handle.Session.create();
Main.logger.fine("initializing neo4j driver.");
initialize_driver();
......@@ -169,6 +175,7 @@ public class Main {
Main.logger.log(Level.SEVERE, "An unrecoverable exception occured, terminating...", e);
} finally {
driver.close();
sensor2graph.handle.Session.terminate(handle_registry_session_id);
}
}
......
package sensor2graph.handle;
public class Session {
public static String create() {
return "";
}
public static void terminate(String session_id) {
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment