netcom.util
Class Props

java.lang.Object
  extended bynetcom.util.Props

public class Props
extends java.lang.Object

Title: NETCOM Properties

Description: This Class holds global static variable for use by the different NETCOM components

Copyright: Copyright (c) 2002

Company: NETCOM


Field Summary
static boolean DEBUG
          this determines if routing data is dumped to the screen
static java.lang.String LOCAL_HOSTNAME
          This is the local IP address...
static int MAX_FAILURES
           
static int MDS_BLOOM_MAX_UDP_BYTES
          This is a constant necessary for the internal working of the Bloom Search Algorithm It effects Datagram packet size
static int MDS_BLOOM_PORT
          This is the port a MDS Node listens for Bloom Datagram Packets **NOTE** This number actually uses 2 ports, so an input of 5005 will require locak sockets 5005 and 5006 to be available!
static int MDS_FRIENDS_COUNT_THRESHOLD
          This is the minimum number of "friends" an MDS Node will have before it polls to get more friends
static int MDS_MAX_FRIENDS_COUNT
          This is the number of friends an MDS Node will try to get when polling for new friends
static int MDS_MDS_SERVER_PORT
          This is the port which a MDS Node listens on for other MDS Nodes (friends)
static int MDS_OUTSIDE_SERVER_PORT
          This is the port which a MDS Node listens on for MDSProxy connections
static boolean MDS_USE_BLOOM_SEARCH
          This determines if the Bloom Search method is used.
static java.lang.String NODE_NAME
          This is the 'nice' name a user can give to a node
static int PROXY_MDS_SERVER_PORT
          This is the port which a MDSProxy listens to for MDS Node connections
static int PROXY_OUTSIDE_SERVER_PORT
          This is the port which a MDSProxy listens on for PClient or PServer Connections
static int THREADPOOL_THREAD_COUNT
          This is the number of threads to be placed in each threadpool
static int TYPE_ALL
           
static int TYPE_MDS
           
static int TYPE_PCLIENT
           
static int TYPE_PROXY
           
static int TYPE_PSERVER
           
 
Constructor Summary
Props()
           
 
Method Summary
static boolean parseProperties(java.util.Properties defaults)
          Static method which takes a java.util.Properties object and parses out any netcom.util.Properties values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MDS_FRIENDS_COUNT_THRESHOLD

public static int MDS_FRIENDS_COUNT_THRESHOLD
This is the minimum number of "friends" an MDS Node will have before it polls to get more friends


MDS_MAX_FRIENDS_COUNT

public static int MDS_MAX_FRIENDS_COUNT
This is the number of friends an MDS Node will try to get when polling for new friends


MDS_OUTSIDE_SERVER_PORT

public static int MDS_OUTSIDE_SERVER_PORT
This is the port which a MDS Node listens on for MDSProxy connections


MDS_MDS_SERVER_PORT

public static int MDS_MDS_SERVER_PORT
This is the port which a MDS Node listens on for other MDS Nodes (friends)


MDS_BLOOM_PORT

public static int MDS_BLOOM_PORT
This is the port a MDS Node listens for Bloom Datagram Packets **NOTE** This number actually uses 2 ports, so an input of 5005 will require locak sockets 5005 and 5006 to be available!


THREADPOOL_THREAD_COUNT

public static int THREADPOOL_THREAD_COUNT
This is the number of threads to be placed in each threadpool


MDS_USE_BLOOM_SEARCH

public static boolean MDS_USE_BLOOM_SEARCH
This determines if the Bloom Search method is used. a parameter file must specify either "true" or "false"


NODE_NAME

public static java.lang.String NODE_NAME
This is the 'nice' name a user can give to a node


PROXY_OUTSIDE_SERVER_PORT

public static int PROXY_OUTSIDE_SERVER_PORT
This is the port which a MDSProxy listens on for PClient or PServer Connections


PROXY_MDS_SERVER_PORT

public static int PROXY_MDS_SERVER_PORT
This is the port which a MDSProxy listens to for MDS Node connections


LOCAL_HOSTNAME

public static java.lang.String LOCAL_HOSTNAME
This is the local IP address... this must be set to a visible Inet4 addres and NOT 127.0.0.1 for LDAP to properly recognize this host


DEBUG

public static boolean DEBUG
this determines if routing data is dumped to the screen


MDS_BLOOM_MAX_UDP_BYTES

public static int MDS_BLOOM_MAX_UDP_BYTES
This is a constant necessary for the internal working of the Bloom Search Algorithm It effects Datagram packet size


TYPE_ALL

public static final int TYPE_ALL
See Also:
Constant Field Values

TYPE_MDS

public static final int TYPE_MDS
See Also:
Constant Field Values

TYPE_PROXY

public static final int TYPE_PROXY
See Also:
Constant Field Values

TYPE_PCLIENT

public static final int TYPE_PCLIENT
See Also:
Constant Field Values

TYPE_PSERVER

public static final int TYPE_PSERVER
See Also:
Constant Field Values

MAX_FAILURES

public static final int MAX_FAILURES
See Also:
Constant Field Values
Constructor Detail

Props

public Props()
Method Detail

parseProperties

public static boolean parseProperties(java.util.Properties defaults)
Static method which takes a java.util.Properties object and parses out any netcom.util.Properties values

Parameters:
defaults - input java.util.Properties object
Returns:
successful boolean