degu.client.cmdln
Class DeguAdmin

java.lang.Object
  extended by degu.client.cmdln.DeguAdmin

public class DeguAdmin
extends java.lang.Object

Simple cmdline client for Degu.


Field Summary
private static int action
           
static int ACTION_HELP
           
static int ACTION_INDEX_FILE
           
static int ACTION_NO_ACTION
          states of this tool
static int ACTION_SEARCH_DOCUMENTS
           
private  java.util.Vector<java.lang.String> cmdArgs
           
private  java.util.Properties deguAdminProps
           
private  java.io.File fileToIndex
           
private static java.lang.String logFileName
           
private static java.lang.String propertiesFileName
           
private  java.lang.String queryString
           
 
Constructor Summary
DeguAdmin()
           
 
Method Summary
private  void checkArgs()
          check the args
static java.lang.String generateHelp(java.util.Map options)
          generates help as a string with data from a map.
 java.lang.String getHelp()
           
private  javax.naming.Context getInitialContext()
          Get the initial naming context
private  SearcherHome getSearcherHome()
          Get the searcher home interface
private  void loadProps()
           
static void main(java.lang.String[] args)
           
private  void performIndex()
           
private  void performSearch()
           
private  void processCmdLineArgs(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertiesFileName

private static final java.lang.String propertiesFileName
See Also:
Constant Field Values

logFileName

private static final java.lang.String logFileName
See Also:
Constant Field Values

ACTION_NO_ACTION

public static final int ACTION_NO_ACTION
states of this tool

See Also:
Constant Field Values

ACTION_HELP

public static final int ACTION_HELP
See Also:
Constant Field Values

ACTION_SEARCH_DOCUMENTS

public static final int ACTION_SEARCH_DOCUMENTS
See Also:
Constant Field Values

ACTION_INDEX_FILE

public static final int ACTION_INDEX_FILE
See Also:
Constant Field Values

action

private static int action

deguAdminProps

private java.util.Properties deguAdminProps

cmdArgs

private java.util.Vector<java.lang.String> cmdArgs

queryString

private java.lang.String queryString

fileToIndex

private java.io.File fileToIndex
Constructor Detail

DeguAdmin

public DeguAdmin()
Method Detail

main

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

run

public void run()

processCmdLineArgs

private void processCmdLineArgs(java.lang.String[] args)

loadProps

private void loadProps()

checkArgs

private void checkArgs()
check the args


getHelp

public java.lang.String getHelp()

generateHelp

public static java.lang.String generateHelp(java.util.Map options)
generates help as a string with data from a map.

Parameters:
options - the help options as a map (option > description)

performIndex

private void performIndex()

performSearch

private void performSearch()

getInitialContext

private javax.naming.Context getInitialContext()
Get the initial naming context


getSearcherHome

private SearcherHome getSearcherHome()
Get the searcher home interface