fr.paris5.shaman.system
Class SystemDirectory

fr.paris5.shaman.system.SystemDirectory
All Implemented Interfaces:
SystemConfigurationConstants

public class SystemDirectory
implements SystemConfigurationConstants

Allows easy access to all server attributes read from System configuration. This component is not shown in the configuration file, but is systematically created by InsightManager.

Version:
$Id: SystemDirectory.java,v 1.3 2002/07/01 10:04:15 caillette Exp $
Author:
Laurent Caillette

Inner Class Summary
static class SystemDirectory.ServerKey
          Enumeration of Shaman servers.
 
Field Summary
static java.lang.String ROLE
           
 
Fields inherited from interface fr.paris5.shaman.system.SystemConfigurationConstants
BASEDIRURL_ATTRIBUTE, DEFAULTHOSTNAME, EMPTYSYSTEM_RESOURCE, HOSTNAME_ATTRIBUTE, PORT_ATTRIBUTE, RUNSTYLE_ATTRIBUTE, SYSTEMCONFIGURATION_DEFAULT_RESOURCE
 
Constructor Summary
SystemDirectory(org.apache.avalon.framework.configuration.Configuration configuration)
           
 
Method Summary
 java.lang.String getHostName(SystemDirectory.ServerKey serverKey)
           
 int getPort(SystemDirectory.ServerKey serverKey)
           
 java.lang.String getProperty(SystemDirectory.ServerKey serverKey, java.lang.String propertyName)
           
 java.lang.String getProperty(SystemDirectory.ServerKey serverKey, java.lang.String propertyName, boolean acceptNull)
           
 java.lang.String getProperty(SystemDirectory.ServerKey serverKey, java.lang.String propertyName, java.lang.String defaultValue)
           
 

Field Detail

ROLE

public static final java.lang.String ROLE
Constructor Detail

SystemDirectory

public SystemDirectory(org.apache.avalon.framework.configuration.Configuration configuration)
Method Detail

getProperty

public java.lang.String getProperty(SystemDirectory.ServerKey serverKey,
                                    java.lang.String propertyName)
                             throws NoPropertyFoundException
Parameters:
serverKey -  
propertyName -  
Returns:
 

getProperty

public java.lang.String getProperty(SystemDirectory.ServerKey serverKey,
                                    java.lang.String propertyName,
                                    java.lang.String defaultValue)

getProperty

public java.lang.String getProperty(SystemDirectory.ServerKey serverKey,
                                    java.lang.String propertyName,
                                    boolean acceptNull)
                             throws NoPropertyFoundException

getPort

public int getPort(SystemDirectory.ServerKey serverKey)
            throws NoPropertyFoundException

getHostName

public java.lang.String getHostName(SystemDirectory.ServerKey serverKey)
                             throws NoPropertyFoundException


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.