|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants
org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Configurator
Reads the configuration from the XML configuration file.
Nested Class Summary | |
private class |
Configurator.MyEntityResolver
Entity resolver. |
Field Summary | |
private java.lang.String |
abscissColumn
Absciss column. |
private org.dom4j.Document |
doc
XML document. |
private java.util.Map |
graphs
Map of graphs. |
private java.lang.String |
mbeanColumn
MBean column. |
private java.lang.String |
separator
Field separator. |
private java.util.Map |
series
Map of series. |
private java.text.SimpleDateFormat |
simpleDateFormat
Date format. |
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants |
DOUBLE, GRAPH_CONFIG_PATH, LONG, TIME |
Fields inherited from interface org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Configuration |
DEFAULT_ABSCISS_COLUMN, DEFAULT_DATE_FORMAT, DEFAULT_MBEAN_COLUMN, DEFAULT_SEPARATOR |
Constructor Summary | |
Configurator()
|
Method Summary | |
private void |
addGraph(org.dom4j.Node node)
Adds a graph. |
private void |
addSerie(org.dom4j.Node node)
Adds a series. |
private java.lang.String |
evalINode(org.dom4j.Node inode,
java.lang.String serieId)
Evaluate a node. |
java.lang.String |
getAbscissColumn()
Implementation of inherited method. |
java.text.SimpleDateFormat |
getDateFormat()
Implementation of inherited method. |
static java.io.LineNumberReader |
getDTD()
|
GraphConfig |
getGraphConfig(java.lang.String id)
Implementation of inherited method. |
java.lang.String[] |
getGraphIds()
Implementation of inherited method. |
java.lang.String |
getSeparator()
Implementation of inherited method. |
SerieConfig |
getSerieConfig(java.lang.String id)
Implementation of inherited method. |
java.lang.String[] |
getSerieIds()
Implementation of inherited method. |
void |
loadConfig(java.lang.String conf)
Implementation of inherited method. |
static void |
main(java.lang.String[] args)
Tests the Configurator implementation. |
private void |
parseGraphs()
Parses the graph based on the XML configuration. |
private void |
parseParent()
Parses topmost properties. |
private java.lang.String |
parseSerieLegend(org.dom4j.Node serie)
Parses a legend. |
private void |
parseSeries()
Parses the series based on the XML configuration. |
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants |
getType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Map series
private java.util.Map graphs
private org.dom4j.Document doc
private java.lang.String separator
private java.lang.String abscissColumn
private java.lang.String mbeanColumn
private java.text.SimpleDateFormat simpleDateFormat
Constructor Detail |
public Configurator()
Method Detail |
public static void main(java.lang.String[] args)
args
- Ignored.public SerieConfig getSerieConfig(java.lang.String id)
getSerieConfig
in interface Configuration
id
- Series id.
Configuration.getSerieConfig(java.lang.String)
public java.lang.String[] getSerieIds()
getSerieIds
in interface Configuration
Configuration.getSerieIds()
public GraphConfig getGraphConfig(java.lang.String id)
getGraphConfig
in interface Configuration
id
- Graph id.
Configuration.getGraphConfig(java.lang.String)
public java.lang.String[] getGraphIds()
getGraphIds
in interface Configuration
Configuration.getGraphIds()
public void loadConfig(java.lang.String conf)
loadConfig
in interface Configuration
conf
- Configuration file path. If null, the file path is set to
the GRAPH_CONFIG_PATH system property.Configuration.loadConfig(java.lang.String)
public static java.io.LineNumberReader getDTD()
public java.lang.String getSeparator()
getSeparator
in interface Configuration
Configuration.getSeparator()
public java.lang.String getAbscissColumn()
getAbscissColumn
in interface Configuration
Configuration.getAbscissColumn()
public java.text.SimpleDateFormat getDateFormat()
getDateFormat
in interface Configuration
Configuration.getDateFormat()
private void parseSeries()
private void addSerie(org.dom4j.Node node)
node
- XML node describing the series.private void parseGraphs()
private void addGraph(org.dom4j.Node node)
node
- XML node describing the graph.private java.lang.String parseSerieLegend(org.dom4j.Node serie)
serie
- XML node describing the legend.
private java.lang.String evalINode(org.dom4j.Node inode, java.lang.String serieId)
inode
- XML node.serieId
- Series ID corresponding to the node.
private void parseParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |