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

Daemon for stand-alone repository on persistent storage in the filesystem. More...

Inheritance diagram for org.ccnx.ccn.impl.repo.RepositoryDaemon:

org.ccnx.ccn.impl.support.Daemon

List of all members.

Public Member Functions

void initialize (String[] args, Daemon daemon)
 Parse arguments specific to the Repository.

Static Public Member Functions

static void main (String[] args)
 Start a new repository daemon.

Static Public Attributes

static final String REPO_STATS = "stats"
static final String REPO_CLEAR_STATS = "clearstats"
static final String DEBUG_STATS_FILE = "stats.txt"

Protected Member Functions

void usage ()
 Overridden by subclasses.
WorkerThread createWorkerThread ()
 overridden by subclasses to make right type of thread.
void dumpStats ()

Package Attributes

RepositoryServer _server
RepositoryStore _repo
String _repositoryRoot

Classes

class  RepositoryWorkerThread


Detailed Description

Daemon for stand-alone repository on persistent storage in the filesystem.

Member Function Documentation

void org.ccnx.ccn.impl.repo.RepositoryDaemon.initialize ( String[]  args,
Daemon  daemon 
)

Parse arguments specific to the Repository.

Current arguments are:

-root <directory> sets the root of the repository (this argument is required).

The following arguments are optional:

  • -log <level> enable logging and set the logging level to <level>
  • -policy <file> use the policy file to set initial policy for the repo
  • -local <path> set the local name for this repository
  • -global <path> set the global prefix for this repository

Reimplemented from org.ccnx.ccn.impl.support.Daemon.

WorkerThread org.ccnx.ccn.impl.repo.RepositoryDaemon.createWorkerThread (  )  [protected]

overridden by subclasses to make right type of thread.

Returns:

Reimplemented from org.ccnx.ccn.impl.support.Daemon.

static void org.ccnx.ccn.impl.repo.RepositoryDaemon.main ( String[]  args  )  [static]

Start a new repository daemon.

Parameters:
args 

Reimplemented from org.ccnx.ccn.impl.support.Daemon.


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

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