org.ccnx.ccn.impl.repo.RepositoryDataHandler Class Reference

So the main listener can output interests sooner, we do the data store work in a separate thread. More...

List of all members.

Public Member Functions

 RepositoryDataHandler (RepositoryServer server)
void add (ContentObject co)
void addKeyCheck (ContentName target)
void run ()
 The content listener runs this thread to store data using the content store.
void shutdown ()
int getCurrentQueueSize ()

Static Public Attributes

static final int THROTTLE_TOP = 2000
static final int THROTTLE_BOTTOM = 1800

Protected Attributes

int _currentQueueSize
boolean _throttled = false

Detailed Description

So the main listener can output interests sooner, we do the data store work in a separate thread.


Member Function Documentation

void org.ccnx.ccn.impl.repo.RepositoryDataHandler.run (  ) 

The content listener runs this thread to store data using the content store.

The thread also checks for policy updates which may reset the repository's namespace and sends "early" nameEnumerationResponses when requested by the store.

See also:
RepositoryStore

The documentation for this class was generated from the following file:
Generated on Tue Aug 21 14:55:20 2012 for Content-Centric Networking in Java by  doxygen 1.6.3