de.unidu.is.retrieval.hyrex
Class HyREXRpcClient

java.lang.Object
  extended byde.unidu.is.retrieval.hyrex.HyREXRpcClient

public class HyREXRpcClient
extends java.lang.Object

Author:
malik This client connect to HyREX rpc server that is only capable of answering simple queries with no structural constraints. It works on the data indexed by HyREX indexer. The only advantage is faster retrieval in comparison to HyREX.

Field Summary
protected static java.util.Vector EMPTY_ARRAY
           
protected  java.lang.String password
           
protected  int port
           
protected  int timeout
           
protected  java.net.URL url
           
protected  org.apache.xmlrpc.XmlRpcClient xmlRpcClient
           
 
Constructor Summary
HyREXRpcClient()
           
HyREXRpcClient(java.lang.String purl)
           
 
Method Summary
 java.util.Vector command(java.lang.String query, int hits, double augmentationFactor)
           
protected  java.lang.Object invoke(java.lang.String rpcMethodName)
           
protected  java.lang.Object invoke(java.lang.String rpcMethodName, java.util.Vector parameters)
           
static void main(java.lang.String[] args)
           
 java.lang.String shortCommand(java.lang.String query, int hits, double augmentationFactor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

protected static final java.util.Vector EMPTY_ARRAY

xmlRpcClient

protected org.apache.xmlrpc.XmlRpcClient xmlRpcClient

url

protected java.net.URL url

password

protected java.lang.String password

port

protected int port

timeout

protected int timeout
Constructor Detail

HyREXRpcClient

public HyREXRpcClient()

HyREXRpcClient

public HyREXRpcClient(java.lang.String purl)
Method Detail

invoke

protected java.lang.Object invoke(java.lang.String rpcMethodName)

invoke

protected java.lang.Object invoke(java.lang.String rpcMethodName,
                                  java.util.Vector parameters)

shortCommand

public java.lang.String shortCommand(java.lang.String query,
                                     int hits,
                                     double augmentationFactor)

command

public java.util.Vector command(java.lang.String query,
                                int hits,
                                double augmentationFactor)

main

public static void main(java.lang.String[] args)