Scripting Interfaces: Flow Related Objects

DBResource:

Synopsis
Used to run a SQL query on a specified database and publish the results to a stream (file, topic, socket). This binds database access using JDBC to HPSearch.

Properties

E.g.
dbconn = new DBConnection("jdbc:mysql://trex.ucs.indiana.edu/test?user=root&password=mysql");
dbconn.SQLQuery="SELECT id, name FROM empl";

r = new URLResource();
r.port[0].publishTo("file:///u/hgadgil/test.xml");
r.port[0].subscribeFrom(dbconn.publish);

f = new Flow();
f.addComponents(r);
f.addStartActivities(dbconn);
f.start("1");

Status: Implemented

(back to Notes)