ucr.app
Class QueryNode

java.lang.Object
  extended byucr.app.QueryNode

public class QueryNode
extends java.lang.Object

An class for executing search queries on the UCRDB network. The application expects two command line parameters, the host name, and the port the servant is listening on


Field Summary
private static NetConnection c
           
private static Session[] search
           
 
Constructor Summary
QueryNode(NetConnection networkConnection)
          Default Consructor
 
Method Summary
static void dumpFULLTables(int until)
           
(package private) static void finished()
          Prints on the screen periodically the number of incoming/ougoing connections and saves to disk the current result.
static java.lang.String getHitTable(int i)
           
(package private) static java.lang.String getMode(java.lang.String[] args)
          returns the mode as it was specified as a command line parameter
static java.lang.String getQueryHitTimeTable(int i)
           
static void main(java.lang.String[] args)
          Entry point for the search example application, host and port number are expected arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

search

private static Session[] search

c

private static NetConnection c
Constructor Detail

QueryNode

public QueryNode(NetConnection networkConnection)
Default Consructor

Method Detail

getHitTable

public static java.lang.String getHitTable(int i)

getQueryHitTimeTable

public static java.lang.String getQueryHitTimeTable(int i)

getMode

static java.lang.String getMode(java.lang.String[] args)
returns the mode as it was specified as a command line parameter


dumpFULLTables

public static void dumpFULLTables(int until)

main

public static void main(java.lang.String[] args)
Entry point for the search example application, host and port number are expected arguments


finished

static void finished()
Prints on the screen periodically the number of incoming/ougoing connections and saves to disk the current result. It sleeps for a small interval and then retries.