All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Nnrpd.Nnrpd

java.lang.Object
   |
   +----Acme.Nnrpd.Nnrpd

public class Nnrpd
extends Object
Multi-threaded proxying NNRP daemon.

This is a replacement for the standard C nnrpd. Sites with lots of readers have found that running a separate nnrpd for each reader puts a tremendous load on the system. All that memory, all those context switches. This solves both problems by having a single process service multiple readers simultaneously.

Optionally, you can also use this as an NNRP proxy, connecting to a remote nnrpd instead of getting articles from the local disk.

Logging is via syslog, and is compatible with the standard nnrpd logging.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o Nnrpd(int, int, int, int, String, boolean)
Constructor.

Method Index

 o main(String[])
Main routine, if you want to run this directly as an application.
 o serve()
Run the server.

Constructors

 o Nnrpd
 public Nnrpd(int port,
              int aCacheSize,
              int maxArtSize,
              int oCacheSize,
              String proxyHost,
              boolean debug) throws NnrpdException
Constructor.

Parameters:
port - Normally netnews servers run on port 119, which is where the readers look for them. You can run this on a different port if you like, perhaps for debugging.
aCacheSize - How many bytes of articles to cache.
maxArtSize - Articles larger than this do not get cached at all.
oCacheSize - How many overview entries to cache.
proxyHost - The remote news server to connect to, for proxy mode. Syntax is a hostname, or hostname:port for ports other than 119.
debug - Whether to emit debugging syslogs or just dump them.
Throws: NnrpdException
if something goes wrong

Methods

 o main
 public static void main(String args[])
Main routine, if you want to run this directly as an application.

 o serve
 public void serve() throws NnrpdException
Run the server. Returns only on errors.

Throws: NnrpdException
if something goes wrong

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs