org.ccnx.ccn.impl.CCNFlowServer Class Reference

A simple server that takes a set of blocks and makes them available to readers. More...

Inheritance diagram for org.ccnx.ccn.impl.CCNFlowServer:

org.ccnx.ccn.impl.CCNFlowControl org.ccnx.ccn.CCNInterestHandler

List of all members.

Public Member Functions

 CCNFlowServer (ContentName name, Integer capacity, boolean persistent, CCNHandle handle) throws IOException
 CCNFlowServer (String name, Integer capacity, CCNHandle handle) throws MalformedContentNameStringException, IOException
 CCNFlowServer (Integer capacity, boolean persistent, CCNHandle handle) throws IOException
void afterPutAction (ContentObject co) throws IOException
 If this is a non-persistent flow server, remove content objects after they have been read once; otherwise do nothing.
void afterClose () throws IOException
 Do not force client to wait for content to drain -- if no one wants it, that's just fine.

Package Attributes

boolean _persistent = true


Detailed Description

A simple server that takes a set of blocks and makes them available to readers.

Unlike standard flow controllers, this class doesn't care if anyone ever reads its blocks -- it doesn't call waitForPutDrain. If no one is interested, it simply persists until deleted/cleared. This version of flow server holds blocks until they have been read once, manually removed or cleared, or the server is deleted by canceling all its registered prefixes. It does not signal an error if the blocks are never read.


Member Function Documentation

void org.ccnx.ccn.impl.CCNFlowServer.afterPutAction ( ContentObject  co  )  throws IOException

If this is a non-persistent flow server, remove content objects after they have been read once; otherwise do nothing.

Parameters:
co ContentObject to remove from flow controller.
Exceptions:
IOException may be thrown by overriding subclasses

Reimplemented from org.ccnx.ccn.impl.CCNFlowControl.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:44:51 2012 for Content-Centric Networking in Java by  doxygen 1.5.6