${header}

net.jxta.impl.shell.bin.lookup
Class lookup

java.lang.Object
  extended bynet.jxta.impl.shell.ShellApp
      extended bynet.jxta.impl.shell.bin.lookup.lookup
All Implemented Interfaces:
net.jxta.platform.Application, DHTListener, net.jxta.platform.Module

public class lookup
extends net.jxta.impl.shell.ShellApp
implements DHTListener

A shell command that allows a peer to query the ring for the peer holding information about a key/identifier

Author:
Vincent Matossian January 2004

Field Summary
 
Fields inherited from class net.jxta.impl.shell.ShellApp
appMiscError, appNoError, appParamError, appSpawned, consin, consout, dependsOn, group, id, implAdv, inputPipe, outputPipe, returnVar, started, stopped
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK
 
Constructor Summary
lookup()
           
 
Method Summary
 java.lang.String getDescription()
           
 void help()
           
 void receivedDHTEntry(QueryMessage query)
           
 void receivedQuery(QueryMessage query)
           
 void receivedSuccessor(QueryMessage responseMessage)
           
 void shortHelp()
           
 int startApp(java.lang.String[] args)
           
 void stopApp()
           
 
Methods inherited from class net.jxta.impl.shell.ShellApp
consoleMessage, consoleMessage, consPollInput, consprint, consprintln, consWaitForInput, exec, exec, getCmdShortName, getCmdShortName, getEnv, getGroup, getID, getImplAdvertisement, getInputConsPipe, getInputPipe, getOutputConsPipe, getOutputPipe, getReturnVariable, init, isRootShell, loadApp, pipePollInput, pipePrint, pipePrintln, pollInput, print, println, printStackTrace, printStackTrace, setEnv, setGroup, setID, setImplAdvertisement, setInputConsPipe, setInputPipe, setJoinedThread, setOutputConsPipe, setOutputPipe, setReturnVariable, waitForInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

lookup

public lookup()
Method Detail

startApp

public int startApp(java.lang.String[] args)
Specified by:
startApp in interface net.jxta.platform.Module

stopApp

public void stopApp()
Specified by:
stopApp in interface net.jxta.platform.Module

getDescription

public java.lang.String getDescription()

receivedDHTEntry

public void receivedDHTEntry(QueryMessage query)
Specified by:
receivedDHTEntry in interface DHTListener

receivedQuery

public void receivedQuery(QueryMessage query)
Specified by:
receivedQuery in interface DHTListener

receivedSuccessor

public void receivedSuccessor(QueryMessage responseMessage)
Specified by:
receivedSuccessor in interface DHTListener

shortHelp

public void shortHelp()

help

public void help()

${header}