<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2009-05-14T07:26:16Z</created-at>
  <description></description>
  <id type="integer">1664</id>
  <name>Grizzly-sendfile-server</name>
  <number type="integer">1</number>
  <person-id type="integer">87</person-id>
  <text>= grizzly-sendfile-server =

grizzly-sendfile-server is a very lightweight, yet high performance webserver based on grizzly-sendfile.

== Usage ==
 java -jar grizzly-sendfile-server.jar [&amp;lt;options&amp;gt;] &amp;lt;path&amp;gt;
 
  path: path to a directory that contains files that should be served by the server
 
 Options:
   -h --help: this help
   -a --algorithm: algorithm to use (full class name)
   -p --port: port to listen on
   -m --mode: grizzly-sendfile mode. Can be auto-sendfile (default), servlet or grizzly
   -t --thread-count: number of worker threads. default=50
   -b --buffer-size: size of the buffer in bytes. default=0


== Example Usage ==
 $ java -jar grizzly-sendfile-server-0.3.jar -p 7700 /var/tmp/grizzly-sendfile/test-files/
 May 14, 2009 12:21:08 AM com.igorminar.grizzlysendfile.SendfileFilter &amp;lt;clinit&amp;gt;
 INFO: initializing grizzly-sendfile...
 grizzly-sendfile configuration: 
   algorithm:                com.igorminar.grizzlysendfile.algorithm.EqualBlockingAlgorithm
   thread count:             50
   buffer size:              0
   idle conn. timeout:       30000
   auto-sendfile mode:       on
   auto-sendfile URI prefix: /
   auto-sendfile file dir:   /var/tmp/grizzly-sendfile/test-files/
   allowed paths:            /var/tmp/grizzly-sendfile/test-files/* (regex: /var/tmp/grizzly-sendfile/test-files/.*)
                        
  plugins:                  
 May 14, 2009 12:21:08 AM com.igorminar.grizzlysendfile.server.GrizzlySendfileServer start
 INFO: grizzly-sendfile server started on port 7700
</text>
  <text-as-html>&lt;h1&gt;&lt;a name='grizzly-sendfile-server'&gt;&lt;/a&gt; grizzly-sendfile-server &lt;/h1&gt;
&lt;p&gt;
grizzly-sendfile-server is a very lightweight, yet high performance webserver based on grizzly-sendfile.

&lt;/p&gt;&lt;h2&gt;&lt;a name='Usage'&gt;&lt;/a&gt; Usage &lt;/h2&gt;
&lt;pre&gt; java -jar grizzly-sendfile-server.jar [&amp;lt;options&amp;gt;] &amp;lt;path&amp;gt;
 
  path: path to a directory that contains files that should be served by the server
 
 Options:
   -h --help: this help
   -a --algorithm: algorithm to use (full class name)
   -p --port: port to listen on
   -m --mode: grizzly-sendfile mode. Can be auto-sendfile (default), servlet or grizzly
   -t --thread-count: number of worker threads. default=50
   -b --buffer-size: size of the buffer in bytes. default=0
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h2&gt;&lt;a name='Example_Usage'&gt;&lt;/a&gt; Example Usage &lt;/h2&gt;
&lt;pre&gt; $ java -jar grizzly-sendfile-server-0.3.jar -p 7700 /var/tmp/grizzly-sendfile/test-files/
 May 14, 2009 12:21:08 AM com.igorminar.grizzlysendfile.SendfileFilter &amp;lt;clinit&amp;gt;
 INFO: initializing grizzly-sendfile...
 grizzly-sendfile configuration: 
   algorithm:                com.igorminar.grizzlysendfile.algorithm.EqualBlockingAlgorithm
   thread count:             50
   buffer size:              0
   idle conn. timeout:       30000
   auto-sendfile mode:       on
   auto-sendfile URI prefix: /
   auto-sendfile file dir:   /var/tmp/grizzly-sendfile/test-files/
   allowed paths:            /var/tmp/grizzly-sendfile/test-files/* (regex: /var/tmp/grizzly-sendfile/test-files/.*)
                        
  plugins:                  
 May 14, 2009 12:21:08 AM com.igorminar.grizzlysendfile.server.GrizzlySendfileServer start
 INFO: grizzly-sendfile server started on port 7700
&lt;/pre&gt;</text-as-html>
  <updated-at type="datetime">2009-05-14T07:26:16Z</updated-at>
  <wiki-id type="integer">597</wiki-id>
</page>
