org.ccnx.ccn.utils.watch Class Reference

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

Inheritance diagram for org.ccnx.ccn.utils.watch:

org.ccnx.ccn.CCNContentHandler

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.CCNContentHandler.

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 Thu Feb 16 00:45:11 2012 for Content-Centric Networking in Java by  doxygen 1.5.6