DBAbstract API Documentation

ro.raducora.utils.props.properties
Class ServerProperties

java.lang.Object
  |
  +--ro.raducora.utils.props.properties.ServerProperties
All Implemented Interfaces:
Props, ServerProps

public class ServerProperties
extends java.lang.Object
implements ServerProps

Author:
Radu
Created on 09.05.2004

Constructor Summary
ServerProperties()
          Constructor.
ServerProperties(java.lang.String filename)
          Constructor.
 
Method Summary
 boolean allowDirectConnection()
          Allow direct connections from clients that found the server through another server.
 int getMaxNumberOfAllowedClients()
          Gets the max number of allowed clients
 void reload()
          Reloads the Properties from properties Source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerProperties

public ServerProperties()
                 throws java.io.IOException
Constructor. Default properties filename path "./conf/ClientTCP.properties"


ServerProperties

public ServerProperties(java.lang.String filename)
                 throws java.io.IOException
Constructor.

Parameters:
filename - properties filename(absolute path)
Method Detail

allowDirectConnection

public boolean allowDirectConnection()
Allow direct connections from clients that found the server through another server.

Specified by:
allowDirectConnection in interface ServerProps
Returns:
true if direct connection is allowed

getMaxNumberOfAllowedClients

public int getMaxNumberOfAllowedClients()
Gets the max number of allowed clients

Specified by:
getMaxNumberOfAllowedClients in interface ServerProps
Returns:
the max number of allowed connections

reload

public void reload()
            throws java.io.IOException
Reloads the Properties from properties Source

Specified by:
reload in interface Props
java.io.IOException

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.