netcom.mds
Class MDSCLI

java.lang.Object
  extended bynetcom.mds.MDSCLI

public class MDSCLI
extends java.lang.Object

Title: MDS CLI

Description: This Class starts the MDS program and offers a Command Line Interface for global settings to be changed on the fly

Company: NETCOM


Constructor Summary
protected MDSCLI(MDS mds)
          Constructor for MDSCLI, used to keep references upon shutdown
 
Method Summary
 void bloomsearch(java.lang.String[] args)
          This is a function used by runCLI to handle the user setting whether to use a Bloom search method or not
 void debug(java.lang.String[] args)
          This is a function used by runCLI to set whether verbose information is pumped to the screen or not
 void exit(java.lang.String[] args)
          This is a function used by runCLI to handle the user inputting the command "exit"
 void help(java.lang.String[] args)
          This is a function used by runCLI to handle the user inputting the command "help"
static void main(java.lang.String[] args)
          Starts up MDS objects and runs the CLI Takes as an argument the local IP (real ip or dns, NOT localhost) This also takes many other utility arguments that save props file modification but if the utility arguments are to be passed, All arguments are read into their slot according to their order (ie can't ONLY pass the 2nd and 4th argument) We MUST take the local IP from the user...
 void setname(java.lang.String[] args)
          This is a function used by runCLI to handle the user setting the MDS Node name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDSCLI

protected MDSCLI(MDS mds)
Constructor for MDSCLI, used to keep references upon shutdown

Parameters:
mds - reference to the mds
Method Detail

main

public static void main(java.lang.String[] args)
Starts up MDS objects and runs the CLI Takes as an argument the local IP (real ip or dns, NOT localhost) This also takes many other utility arguments that save props file modification but if the utility arguments are to be passed, All arguments are read into their slot according to their order (ie can't ONLY pass the 2nd and 4th argument) We MUST take the local IP from the user... the ONLY other way to derive this hosts IP before anyone connects (binds) to it would be to know the network interface name and derive the IP from that, however this is not a standard name, for example, the first ethernet device on linux is eth0, while the first ethernet device on Solaris is hme0, etc... Finally, optionally one can input what they want to name their MDS Node

Parameters:
args - your command line input ARGUMENT 1: the local host name (NOT 127.0.0.1/localhost) ARGUMENT 2: the name of the properties file ARGUMENT 3: the name for this MDS Node ARGUMENT 4: the port this MDS will listen to MDSProxies on

help

public void help(java.lang.String[] args)
This is a function used by runCLI to handle the user inputting the command "help"

Parameters:
args - the arguments of the help command

exit

public void exit(java.lang.String[] args)
This is a function used by runCLI to handle the user inputting the command "exit"

Parameters:
args - the arguments of the exit command

bloomsearch

public void bloomsearch(java.lang.String[] args)
This is a function used by runCLI to handle the user setting whether to use a Bloom search method or not

Parameters:
args - the arguments of the command C-style argument passing

debug

public void debug(java.lang.String[] args)
This is a function used by runCLI to set whether verbose information is pumped to the screen or not

Parameters:
args - the arguments of the command C-style argument passing

setname

public void setname(java.lang.String[] args)
This is a function used by runCLI to handle the user setting the MDS Node name

Parameters:
args - the arguments of the command, C-sytel argument passing