rrdService.service
Class RoundRobinInfo

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

public class RoundRobinInfo
extends java.lang.Object

The class RoundRobinInfo allows to known all info about a RoundRobin

Version:
1.0 date : 18/06/01
Author:
Pellier Damien FIRMENICH SA
See Also:
RoundRobinInfo, RoundRobinDataBase RoundRobinLibrary

Field Summary
private  DataSourceContainer DSContainer
          data source container of the round robine
private  java.io.FileInputStream infoFileInputStream
          The file with info
private  long lastUpdate
          last update of the round robin
private  java.lang.String roundRobinName
          filename of the round robine
private  java.lang.String roundRobinVersion
          round robine version
private  RoundRobinArchiveContainer RRAContainer
          round robine archive container of the round robine
private  int step
          step of the round robin
 
Constructor Summary
RoundRobinInfo(java.io.File infoFile)
          Constructor of a RoundRobinInfo
 
Method Summary
 DataSourceContainer getDataSourceContainer()
          Returns the data source container of the round robin
 long getLastUpdate()
          Returns the last update of the round robin
 RoundRobinArchiveContainer getRoundRobinArchiveContainer()
          Returns the round robin archive container of the round robin
 java.lang.String getRoundRobineVersion()
          Returns the version of the round robin
 java.lang.String getRoundRobinName()
          Returns the name of the round robin
 int getStep()
          Returns the step of the round robin
private  boolean notEndOfFile()
          notEndOfFile return true if end of config file is reach
private  java.lang.Double readDoubleValue(java.lang.String line)
          readDoubleValue read the value of a lexem which is a double
private  java.lang.String readDsName(java.lang.String lexem)
          readDsName read the DsName of a DS line
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
 java.lang.String toString()
          toString return a string representation of a RRDInfo
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

DSContainer

private DataSourceContainer DSContainer
data source container of the round robine

infoFileInputStream

private java.io.FileInputStream infoFileInputStream
The file with info

lastUpdate

private long lastUpdate
last update of the round robin

roundRobinName

private java.lang.String roundRobinName
filename of the round robine

roundRobinVersion

private java.lang.String roundRobinVersion
round robine version

RRAContainer

private RoundRobinArchiveContainer RRAContainer
round robine archive container of the round robine

step

private int step
step of the round robin
Constructor Detail

RoundRobinInfo

public RoundRobinInfo(java.io.File infoFile)
               throws java.lang.Exception
Constructor of a RoundRobinInfo
Method Detail

getDataSourceContainer

public DataSourceContainer getDataSourceContainer()
Returns the data source container of the round robin

getLastUpdate

public long getLastUpdate()
Returns the last update of the round robin

getRoundRobinArchiveContainer

public RoundRobinArchiveContainer getRoundRobinArchiveContainer()
Returns the round robin archive container of the round robin

getRoundRobineVersion

public java.lang.String getRoundRobineVersion()
Returns the version of the round robin

getRoundRobinName

public java.lang.String getRoundRobinName()
Returns the name of the round robin

getStep

public int getStep()
Returns the step of the round robin

notEndOfFile

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

readDoubleValue

private java.lang.Double readDoubleValue(java.lang.String line)
                                  throws java.lang.Exception
readDoubleValue read the value of a lexem which is a double
Parameters:
line - the line to test

readDsName

private java.lang.String readDsName(java.lang.String lexem)
readDsName read the DsName of a DS line
Parameters:
lexem - the lexem to test

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

toString

public java.lang.String toString()
toString return a string representation of a RRDInfo
Overrides:
toString in class java.lang.Object

Copyright 1885-2001 FIRMENICH SA, Geneva

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