rrdService.service
Class ConfigFile

java.lang.Object
  |
  +--rrdService.service.ConfigFile

public class ConfigFile
extends java.lang.Object

ConfigFile load configuration from a file

Version:
1.0 date : 15/07/2001
Author:
Damien Pellier
See Also:
ConfigFile

Field Summary
private  java.lang.String configFile
           
private  java.io.FileInputStream inputStreamConfigFile
           
private  java.lang.String lexem
           
private  java.lang.String line
           
private  int nbLines
           
private  java.lang.String REM
          REM const
private  java.lang.String serviceMountLibrary
           
private  java.lang.String servicePort
           
private  java.lang.String serviceTimeZone
           
private  java.lang.String serviceURL
           
 java.lang.String TAG_CLIENT_PORT
          TAG_CLIENT_PORT tag which specify the port of the service client rrdtool
 java.lang.String TAG_CLIENT_URL
          TAG_CLIENT_URL tag which specify the url of the service client rrdtool
 java.lang.String TAG_MOUNT_LIBRARY
          TAG_MOUNT_DIRECTORY tag which specify the mount directory of the service rrdtool
 java.lang.String TAG_SERVICE_PORT
          TAG_SERVICE_PORT tag which specify the port of the service rrdtool
 java.lang.String TAG_SERVICE_URL
          TAG_SERVER_URL tag which specify the url of the service rrdtool
 java.lang.String TAG_TIME_ZONE
          TAG_TIME_ZONE tag which specify the time zone of reference of rrdtool service
 
Constructor Summary
ConfigFile(java.lang.String configFile)
          Constructor of class ConfigFile
 
Method Summary
 java.lang.String getServiceMountLibrary()
          getServiceMountLibrary() return the service Mount Directory of the service
 java.lang.String getServicePort()
          getServicePort() return the port of the service
 java.util.TimeZone getServiceTimeZone()
          Returns the time zone of rrdService
 java.lang.String getServiceURL()
          getServiceURL() return the Url of the service
(package private)  boolean isRemLine(java.lang.String line)
          isRemLine return true if the is rem
private  boolean notEndOfFile()
          notEndOfFile return true if end of config file is reach
private  java.lang.String readLexem(java.lang.String line)
          readLexem read a lexem
private  java.lang.String readLine()
          readLine read a line
private  java.lang.String readValue(java.lang.String line)
          readValue read the value of a lexem
private  void skipLine()
          skipLine goto the next line
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

configFile

private java.lang.String configFile

inputStreamConfigFile

private java.io.FileInputStream inputStreamConfigFile

lexem

private java.lang.String lexem

line

private java.lang.String line

nbLines

private int nbLines

REM

private final java.lang.String REM
REM const

serviceMountLibrary

private java.lang.String serviceMountLibrary

servicePort

private java.lang.String servicePort

serviceTimeZone

private java.lang.String serviceTimeZone

serviceURL

private java.lang.String serviceURL

TAG_CLIENT_PORT

public final java.lang.String TAG_CLIENT_PORT
TAG_CLIENT_PORT tag which specify the port of the service client rrdtool

TAG_CLIENT_URL

public final java.lang.String TAG_CLIENT_URL
TAG_CLIENT_URL tag which specify the url of the service client rrdtool

TAG_MOUNT_LIBRARY

public final java.lang.String TAG_MOUNT_LIBRARY
TAG_MOUNT_DIRECTORY tag which specify the mount directory of the service rrdtool

TAG_SERVICE_PORT

public final java.lang.String TAG_SERVICE_PORT
TAG_SERVICE_PORT tag which specify the port of the service rrdtool

TAG_SERVICE_URL

public final java.lang.String TAG_SERVICE_URL
TAG_SERVER_URL tag which specify the url of the service rrdtool

TAG_TIME_ZONE

public final java.lang.String TAG_TIME_ZONE
TAG_TIME_ZONE tag which specify the time zone of reference of rrdtool service
Constructor Detail

ConfigFile

public ConfigFile(java.lang.String configFile)
           throws java.lang.Exception
Constructor of class ConfigFile
Parameters:
configFile - the file of configuration
Method Detail

getServiceMountLibrary

public java.lang.String getServiceMountLibrary()
                                        throws java.lang.Exception
getServiceMountLibrary() return the service Mount Directory of the service

getServicePort

public java.lang.String getServicePort()
getServicePort() return the port of the service

getServiceTimeZone

public java.util.TimeZone getServiceTimeZone()
Returns the time zone of rrdService

getServiceURL

public java.lang.String getServiceURL()
getServiceURL() return the Url of the service

isRemLine

boolean isRemLine(java.lang.String line)
isRemLine return true if the is rem
Parameters:
line - the line to test

notEndOfFile

private boolean notEndOfFile()
                      throws java.lang.Exception
notEndOfFile return true if end of config file is reach

readLexem

private java.lang.String readLexem(java.lang.String line)
readLexem read a lexem
Parameters:
line - the line to test

readLine

private java.lang.String readLine()
                           throws java.lang.Exception
readLine read a line

readValue

private java.lang.String readValue(java.lang.String line)
                            throws java.lang.Exception
readValue read the value of a lexem
Parameters:
line - the line to test

skipLine

private void skipLine()
               throws java.lang.Exception
skipLine goto the next line

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.