org.planx.xmlstore.routing
Class Configuration

java.lang.Object
  extended by org.planx.xmlstore.routing.Configuration

public class Configuration
extends Object

A set of Kademlia configuration parameters. Default values are supplied and can be changed by the application as necessary.


Field Summary
 int B
          Log base exponent.
 int CONCURRENCY
          Maximum number of concurrent messages in transit.
 int K
          Bucket size.
 long OPERATION_TIMEOUT
          Maximum number of milliseconds for performing an operation.
 int RCSIZE
          Size of replacement cache.
 long RESPONSE_TIMEOUT
          If no reply received from a node in this period (in milliseconds) consider the node unresponsive.
 long RESTORE_INTERVAL
          Interval in milliseconds between execution of RestoreOperations.
 int STALE
          Number of times a node can be marked as stale before it is actually removed.
 
Constructor Summary
Configuration()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESTORE_INTERVAL

public long RESTORE_INTERVAL
Interval in milliseconds between execution of RestoreOperations.


RESPONSE_TIMEOUT

public long RESPONSE_TIMEOUT
If no reply received from a node in this period (in milliseconds) consider the node unresponsive.


OPERATION_TIMEOUT

public long OPERATION_TIMEOUT
Maximum number of milliseconds for performing an operation.


CONCURRENCY

public int CONCURRENCY
Maximum number of concurrent messages in transit.


B

public int B
Log base exponent.


K

public int K
Bucket size.


RCSIZE

public int RCSIZE
Size of replacement cache.


STALE

public int STALE
Number of times a node can be marked as stale before it is actually removed.

Constructor Detail

Configuration

public Configuration()


Copyright © 2010. All Rights Reserved.