${header}

net.jxta.impl.shell.bin.sendmessage
Class sendmessage

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

public class sendmessage
extends net.jxta.impl.shell.ShellApp
implements ChordListener, TimedClass

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
sendmessage()
           
 
Method Summary
 java.lang.String getDescription()
           
 void help()
           
 void receivedDHTEntry(QueryMessage query)
           
 void receivedFindPredecessorResponse(java.lang.String s)
           
 void receivedQuery(QueryMessage q)
           
 void receivedStringMessage(QueryMessage query)
           
 void receivedSuccessor(QueryMessage q)
           
 void shortHelp()
           
 int startApp(java.lang.String[] args)
           
 void stopApp()
           
 void timeout()
           
 
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

sendmessage

public sendmessage()
Method Detail

startApp

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

getDescription

public java.lang.String getDescription()

stopApp

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

receivedDHTEntry

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

receivedQuery

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

receivedSuccessor

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

receivedFindPredecessorResponse

public void receivedFindPredecessorResponse(java.lang.String s)
Specified by:
receivedFindPredecessorResponse in interface ChordListener

receivedStringMessage

public void receivedStringMessage(QueryMessage query)
Specified by:
receivedStringMessage in interface ChordListener

shortHelp

public void shortHelp()

timeout

public void timeout()
Specified by:
timeout in interface TimedClass

help

public void help()

${header}