org.ccnx.ccn.utils.watch Class Reference

Express interest in a name and report content retrieved. More...

List of all members.

Public Member Functions

 watch (CCNHandle handle)
void initialize ()
void work ()
void run ()
Interest handleContent (ContentObject data, Interest interest)
 Callback called when we get new results for our query.

Static Public Member Functions

static void usage ()
static void main (String[] args)

Protected Attributes

boolean _stop = false
ArrayList< Interest_interests = new ArrayList<Interest>()
CCNHandle _handle = null

Detailed Description

Express interest in a name and report content retrieved.

This program has not been updated to handle interests in a sophisticated way and so it is likely to receive the same content over and over.


Member Function Documentation

Interest org.ccnx.ccn.utils.watch.handleContent ( ContentObject  data,
Interest  interest 
)

Callback called when we get new results for our query.

Parameters:
data the ContentObject that matched our Interest
interest Interest that was satisfied
Returns:
new Interest to be expressed

Implements org.ccnx.ccn.CCNInterestListener.

static void org.ccnx.ccn.utils.watch.main ( String[]  args  )  [static]
Parameters:
args 

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:57 2011 for Content-Centric Networking in Java by  doxygen 1.6.3