Java Reference
In-Depth Information
/**
* Start the program.
*
* @param args
* The first argument contains a path to a spider
* configuration file.
*/
public static void main(String args[]) {
try {
if (args.length < 1) {
System.out.println(
"Usage: SpiderStats [path to config file]");
} else {
JFrame frame = new SpiderStats(args[0]);
frame.setSize(new Dimension(300, 200));
frame.setVisible(true);
}
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Contains information about how to connect to the
* database.
*/
private SpiderOptions options;
/**
* A JDBC connection.
*/
private Connection connection;
/**
* Get a count by status.
*/
private final String sqlStatus =
"select status,count(*) from spider_workload group by status;";
/**
* Get the maximum depth
*/
private final String sqlDepth =
"SELECT MAX(depth) from spider_workload";
Search WWH ::




Custom Search