|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rrdService.util.RoundRobinGraphic
The class RoundRobinGraphic main purpose is to create graphical representations of the data stored in one or several RRDs. Apart from generating graphs, it can also extract numerical reports.
Vector
, Serialized FormField Summary | |
protected java.lang.Boolean |
autoscaleMaxOption
autoscaleMaxOption Where --alt-autoscale will modify both the absolute maximum AND minimum values, this option will only affect the maximum value. |
protected java.lang.Boolean |
autoscaleOption
autoscaleOption compute Y range based on function absolute minimum and maximum values. |
protected java.lang.Integer |
base
base if you are graphing memory (and NOT network traffic) this switch should be set to 1024 so that one Kb is 1024 byte. |
protected RoundRobinColor |
color
color override the colors for the standard elements of the graph. |
protected java.lang.String |
comment
comment Like GPRINT but the text is simply printed into the graph. |
protected Time |
endTime
The time when the graph should end. |
static java.lang.String |
GIF_FORMAT
Image format of a gif image |
protected java.lang.String |
graphicName
name of graphic |
protected GraphicObjectContainer |
graphicObjectContainer
GraphicObjectContainer fill of the graphic object to print on the graph |
protected GraphicPrint |
graphicPrint
graphicPrint allows to print string into the graph below the legend. |
protected java.lang.Integer |
heightPixels
heightPixels Width of the drawing area within the graph. |
protected java.lang.String |
imageFormat
imageFormat Allows you to produce PNG output from rrdtool service. (default: GIF) |
protected java.lang.String |
imageInfo
imageInfo After the image has been created, the graph function uses printf together with this format string to create output similar to the PRINT function, only that the printf is supplied with the parameters filename, xsize and ysize. |
protected java.lang.Boolean |
interlacedOption
interlacedOption If you set this option, then the resulting GIF will be interlaced. |
protected java.lang.Boolean |
lazyOption
lazyOption Only generate the graph, if the current gif is out of date or not existent. (default false) |
protected java.lang.Boolean |
logarithmicOption
logarithmicOption logarithmic y-axis scaling |
protected java.lang.Integer |
lowerLimit
lowerLimit This is not the lower limit of a graph. |
protected MEVirtualDataSourceContainer |
mEVirtualDataSourceContainer
mEVirtualDataSourceContainer Create a new virtual data source by evaluating a mathematical expression, specified in Reverse Polish Notation (RPN). |
protected java.lang.Boolean |
noLegendOption
noLegendOption Suppress generation of legend; only render the graph. |
static java.lang.String |
PNG_FORMAT
Image format of a png image |
protected java.lang.Boolean |
rigidOption
rigidOption rigid boundaries mode. |
protected Time |
startTime
The time when the graph should begin. |
protected java.lang.Integer |
step
step By default graph calculates the width of one pixle in the time domain and tries to get data at that resolution from the RRD. |
protected java.lang.String |
title
title Define a title to be written into the graph (default no title) |
protected java.lang.Integer |
unitsExponent
unitsExponent This sets the 10**exponent scaling of the y-axis values. |
protected java.lang.Integer |
upperLimit
upperLimit Defines the value normally located at the upper border of the graph. |
protected java.lang.String |
verticalLabel
verticalLabel vertical label on the left side of the graph. |
protected VirtualDataSourceContainer |
virtualDataSourceContainer
virtualDataSourceContainer Define virtual name for a data source. |
protected java.lang.Integer |
widthPixels
widthPixels Width of the drawing area within the graph. |
protected XGrid |
xGrid
x-grid of this graph |
protected YGrid |
yGrid
y-grid of this graph |
protected java.lang.Boolean |
yGridOption
yGridOption place Y grid dynamically based on graph Y range. |
Constructor Summary | |
RoundRobinGraphic(java.lang.String graphicName)
Default constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
java.lang.String title)
Constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
java.lang.String title,
java.lang.String verticalLabel)
Constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
java.lang.String title,
Time startTime,
Time endTime)
Constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
java.lang.String title,
Time startTime,
Time endTime,
java.lang.String verticalLabel)
Constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
Time startTime)
Constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
Time startTime,
Time endTime)
Constructor of RoundRobinGraphic |
|
RoundRobinGraphic(java.lang.String graphicName,
Time startTime,
Time endTime,
java.lang.String verticalLabel)
Constructor of RoundRobinGraphic |
Method Summary | |
void |
addCDEF(MathExpressionVirtualDataSource mEVirtualDataSource)
Add a mEVirtualDataSource into the RoundRobinGraphic |
void |
addDEF(VirtualDataSource virtualDataSource)
Add a virtualDataSource into the RoundRobinGraphic |
void |
addGraphicObject(GraphicObject graphicObject)
Add a graphic Object into the RoundRobinGraphic |
java.lang.Boolean |
getAutoscaleMaxOption()
Returns the autoscaleMaxOption of this RoundRobinGraphic |
java.lang.Boolean |
getAutoscaleOption()
Returns the autoscaleOption of this RoundRobinGraphic |
java.lang.Integer |
getBase()
Returns the base of this RoundRobinGraphic |
RoundRobinColor |
getColor()
Returns the color of this RoundRobinGraphic |
java.lang.String |
getComment()
Returns the comment of this RoundRobinGraphic |
Time |
getEndTime()
Returns the endTime of this RoundRobinGraphic |
java.lang.String |
getGraphicName()
Returns the graphicName of this RoundRobinGraphic |
GraphicObjectContainer |
getGraphicObjectContainer()
Returns the graphic object container of this RoundRobinGraphic |
GraphicPrint |
getGraphicPrint()
Returns the graphicPrint of this RoundRobinGraphic |
java.lang.Integer |
getHeightPixels()
Returns the heightPixels of this RoundRobinGraphic |
java.lang.String |
getImageFormat()
Returns the imageFormat of this RoundRobinGraphic |
java.lang.String |
getImageInfo()
Returns the imageInfo of this RoundRobinGraphic |
java.lang.Boolean |
getInterlacedOption()
Returns the interlacedOption of this RoundRobinGraphic |
java.lang.Boolean |
getLazyOption()
Returns the lazyOption of this RoundRobinGraphic |
java.lang.Boolean |
getLogarithmicOption()
Returns the logarithmicOption of this RoundRobinGraphic |
java.lang.Integer |
getLowerLimit()
Returns the lowerLimit of this RoundRobinGraphic |
MEVirtualDataSourceContainer |
getMEVirtualDataSourceContainer()
Returns the MEVirtualDataSourceContainer of this RoundRobinGraphic |
java.lang.Boolean |
getNoLegendOption()
Returns the noLegendOption of this RoundRobinGraphic |
java.lang.Boolean |
getRigidOption()
Returns the rigidOption of this RoundRobinGraphic |
Time |
getStartTime()
Returns the startTime of this RoundRobinGraphic |
java.lang.Integer |
getStep()
Returns the step of this RoundRobinGraphic |
java.lang.String |
getTitle()
Returns the title of this RoundRobinGraphic |
java.lang.Integer |
getUnitsExponent()
Returns the unitsExponent of this RoundRobinGraphic |
java.lang.Integer |
getUpperLimit()
Returns the upperLimit of this RoundRobinGraphic |
java.lang.String |
getVerticalLabel()
Returns the verticalLabel of this RoundRobinGraphic |
VirtualDataSourceContainer |
getVirtualDataSourceConatiner()
Returns the virtualDataSourceContainer of this RoundRobinGraphic |
java.lang.Integer |
getWidthPixels()
Returns the widthPixels of this RoundRobinGraphic |
XGrid |
getXGrid()
Returns the xgrid of this RoundRobinGraphic |
YGrid |
getYGrid()
Returns the ygrid of this RoundRobinGraphic |
java.lang.Boolean |
getYGridOption()
Returns the yGridOption of this RoundRobinGraphic |
private void |
initRoundRobinGraphic()
initRoundRobinGraphic initialize all field of round robin graphic null |
boolean |
isImageFormat(java.lang.String imageFormat)
isImageFormat returns true if the string parameter is a valide image format |
java.lang.String |
listRoundRobinGraphic()
Returns a string representation of this round robin graphic to visualize all fields and round robin graphics options |
void |
setAutoscaleMaxOption(boolean autoscaleMaxOption)
Replaces the autoscaleMaxOption of this RoundRobinGraphic |
void |
setAutoscaleOption(boolean autoscaleOption)
Replaces the autoscaleOption of this RoundRobinGraphic |
void |
setBase(int base)
Replaces the base of this RoundRobinGraphic |
void |
setColor(RoundRobinColor color)
Replaces the color of this RoundRobinGraphic |
void |
setComment(java.lang.String comment)
Replaces the comment of this RoundRobinGraphic |
void |
setEndTime(Time endTime)
Replaces the endTime of this RoundRobinGraphic |
void |
setGraphicName(java.lang.String graphicName)
Replaces the graphicName of this RoundRobinGraphic |
void |
setgraphicObjectContainer(GraphicObjectContainer graphicObjectContainer)
Replaces the graphic object container of this RoundRobinGraphic |
void |
setGraphicPrint(GraphicPrint graphicPrint)
Replaces the graphicPrint of this RoundRobinGraphic |
void |
setHeightPixels(int heightPixels)
Replaces the heightPixels of this RoundRobinGraphic |
void |
setImageFormat(java.lang.String imageFormat)
Replaces the imageFormat of this RoundRobinGraphic |
void |
setImageInfo(java.lang.String imageInfo)
Replaces the imageInfo of this RoundRobinGraphic |
void |
setInterlacedOption(boolean interlacedOption)
Replaces the interlacedOption of this RoundRobinGraphic |
void |
setLazyOption(boolean lazyOption)
Replaces the lazyOption of this RoundRobinGraphic |
void |
setLogarithmicOption(boolean logarithmicOption)
Replaces the logarithmicOption of this RoundRobinGraphic |
void |
setLowerLimit(int lowerLimit)
Replaces the lowerLimit of this RoundRobinGraphic |
void |
setMEVirtualDataSource(MEVirtualDataSourceContainer mEVirtualDataSourceContainer)
Replaces the MEVirtualDataSourceContainer of this RoundRobinGraphic |
void |
setNoLegendOption(boolean noLegendOption)
Replaces the noLegendOption of this RoundRobinGraphic |
void |
setRigidOption(boolean rigidOption)
Replaces the rigidOption of this RoundRobinGraphic |
void |
setStartTime(Time startTime)
Replaces the startTime of this RoundRobinGraphic |
void |
setStep(int step)
Replaces the step of this RoundRobinGraphic |
void |
setTitle(java.lang.String title)
Replaces the title of this RoundRobinGraphic |
void |
setUnitsExponent(int unitsExponent)
Replaces the unitsExponent of this RoundRobinGraphic |
void |
setUpperLimit(int upperLimit)
Replaces the upperLimit of this RoundRobinGraphic |
void |
setVerticalLabel(java.lang.String verticalLabel)
Replaces the verticalLabel of this RoundRobinGraphic |
void |
setVirtualDataSourceontainer(VirtualDataSourceContainer virtualDataSourceContainer)
Replaces the VirtualDataSourceontainer of this RoundRobinGraphic |
void |
setWidthPixels(int widthPixels)
Replaces the widthPixels of this RoundRobinGraphic |
void |
setXGrid(XGrid xGrid)
Replaces the xgrid of this RoundRobinGraphic |
void |
setYGrid(YGrid yGrid)
Replaces the ygrid of this RoundRobinGraphic |
void |
setYGridOption(boolean yGridOption)
Replaces the yGridOption of this RoundRobinGraphic |
java.lang.String |
toString()
Returns a string representation of this round robin graphic of the rrdtool commande line |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.Boolean autoscaleMaxOption
protected java.lang.Boolean autoscaleOption
protected java.lang.Integer base
protected RoundRobinColor color
protected java.lang.String comment
protected Time endTime
public static final java.lang.String GIF_FORMAT
protected java.lang.String graphicName
protected GraphicObjectContainer graphicObjectContainer
protected GraphicPrint graphicPrint
protected java.lang.Integer heightPixels
protected java.lang.String imageFormat
protected java.lang.String imageInfo
protected java.lang.Boolean interlacedOption
protected java.lang.Boolean lazyOption
protected java.lang.Boolean logarithmicOption
protected java.lang.Integer lowerLimit
protected MEVirtualDataSourceContainer mEVirtualDataSourceContainer
protected java.lang.Boolean noLegendOption
public static final java.lang.String PNG_FORMAT
protected java.lang.Boolean rigidOption
protected Time startTime
protected java.lang.Integer step
protected java.lang.String title
protected java.lang.Integer unitsExponent
protected java.lang.Integer upperLimit
protected java.lang.String verticalLabel
protected VirtualDataSourceContainer virtualDataSourceContainer
protected java.lang.Integer widthPixels
protected XGrid xGrid
protected YGrid yGrid
protected java.lang.Boolean yGridOption
Constructor Detail |
public RoundRobinGraphic(java.lang.String graphicName)
graphicName
- the graphicName to set into this RoundRobinGraphicpublic RoundRobinGraphic(java.lang.String graphicName, java.lang.String title)
graphicName
- the graphicName to set into this RoundRobinGraphictitle
- the title to set into this RoundRobinGraphicpublic RoundRobinGraphic(java.lang.String graphicName, java.lang.String title, java.lang.String verticalLabel)
graphicName
- the graphicName to set into this RoundRobinGraphictitle
- the title to set into this RoundRobinGraphicverticalLabel
- the verticalLabel to set into this RoundRobinGraphicpublic RoundRobinGraphic(java.lang.String graphicName, java.lang.String title, Time startTime, Time endTime)
graphicName
- the graphicName to set into this RoundRobinGraphictitle
- the title to set into this RoundRobinGraphicstartTime
- the startTime to start graphingendTime
- the endTime to stop graphingpublic RoundRobinGraphic(java.lang.String graphicName, java.lang.String title, Time startTime, Time endTime, java.lang.String verticalLabel)
graphicName
- the graphicName to set into this RoundRobinGraphictitle
- the title to set into this RoundRobinGraphicstartTime
- the startTime to start graphingendTime
- the endTime to stop graphingverticalLabel
- the verticalLabel to set into this RoundRobinGraphicpublic RoundRobinGraphic(java.lang.String graphicName, Time startTime)
graphicName
- the graphicName to set into this RoundRobinGraphicstartTime
- the startTime to start graphingpublic RoundRobinGraphic(java.lang.String graphicName, Time startTime, Time endTime)
graphicName
- the graphicName to set into this RoundRobinGraphicstartTime
- the startTime to start graphingendTime
- the endTime to stop graphingpublic RoundRobinGraphic(java.lang.String graphicName, Time startTime, Time endTime, java.lang.String verticalLabel)
graphicName
- the graphicName to set into this RoundRobinGraphicstartTime
- the startTime to start graphingendTime
- the endTime to stop graphingverticalLabel
- the verticalLabel to set into this RoundRobinGraphicMethod Detail |
public void addCDEF(MathExpressionVirtualDataSource mEVirtualDataSource)
meVirtualDataSource
- the mEVirtualDataSource to addpublic void addDEF(VirtualDataSource virtualDataSource)
virtualDataSource
- the virtualDataSource to addpublic void addGraphicObject(GraphicObject graphicObject)
graphicObject
- the graphicObject to addpublic java.lang.Boolean getAutoscaleMaxOption()
public java.lang.Boolean getAutoscaleOption()
public java.lang.Integer getBase()
public RoundRobinColor getColor()
public java.lang.String getComment()
public Time getEndTime()
public java.lang.String getGraphicName()
public GraphicObjectContainer getGraphicObjectContainer()
public GraphicPrint getGraphicPrint()
public java.lang.Integer getHeightPixels()
public java.lang.String getImageFormat()
public java.lang.String getImageInfo()
public java.lang.Boolean getInterlacedOption()
public java.lang.Boolean getLazyOption()
public java.lang.Boolean getLogarithmicOption()
public java.lang.Integer getLowerLimit()
public MEVirtualDataSourceContainer getMEVirtualDataSourceContainer()
public java.lang.Boolean getNoLegendOption()
public java.lang.Boolean getRigidOption()
public Time getStartTime()
public java.lang.Integer getStep()
public java.lang.String getTitle()
public java.lang.Integer getUnitsExponent()
public java.lang.Integer getUpperLimit()
public java.lang.String getVerticalLabel()
public VirtualDataSourceContainer getVirtualDataSourceConatiner()
public java.lang.Integer getWidthPixels()
public XGrid getXGrid()
public YGrid getYGrid()
public java.lang.Boolean getYGridOption()
private void initRoundRobinGraphic()
public boolean isImageFormat(java.lang.String imageFormat)
public java.lang.String listRoundRobinGraphic()
public void setAutoscaleMaxOption(boolean autoscaleMaxOption)
autoscaleMaxOption
- the autoscaleMaxOption to set into this RoundRobinGraphicpublic void setAutoscaleOption(boolean autoscaleOption)
autoscaleOption
- the autoscaleOption to set into this RoundRobinGraphicpublic void setBase(int base)
base
- the base to set into this RoundRobinGraphicpublic void setColor(RoundRobinColor color)
color
- the color to set into this RoundRobinGraphicpublic void setComment(java.lang.String comment)
comment
- the comment to set into this RoundRobinGraphicpublic void setEndTime(Time endTime)
endTime
- the endTime to set into this RoundRobinGraphicpublic void setGraphicName(java.lang.String graphicName)
graphicName
- the graphicName to set into this RoundRobinGraphicpublic void setgraphicObjectContainer(GraphicObjectContainer graphicObjectContainer)
graphicObjectContainer
- the graphic object container of the RoundRobinGraphicpublic void setGraphicPrint(GraphicPrint graphicPrint)
graphicPrint
- the graphicPrint to set into this RoundRobinGraphicpublic void setHeightPixels(int heightPixels)
heightPixels
- the heightPixels to set into this RoundRobinGraphicpublic void setImageFormat(java.lang.String imageFormat) throws java.lang.Exception
imageFormat
- the imageFormat to set into this RoundRobinGraphicpublic void setImageInfo(java.lang.String imageInfo)
imageInfo
- the imageInfo to set into this RoundRobinGraphicpublic void setInterlacedOption(boolean interlacedOption)
interlacedOption
- the interlacedOption to set into this RoundRobinGraphicpublic void setLazyOption(boolean lazyOption)
lazyOption
- the lazyOption to set into this RoundRobinGraphicpublic void setLogarithmicOption(boolean logarithmicOption)
logarithmicOption
- the logarithmicOption to set into this RoundRobinGraphicpublic void setLowerLimit(int lowerLimit)
lowerLimit
- the lowerLimit to set into this RoundRobinGraphicpublic void setMEVirtualDataSource(MEVirtualDataSourceContainer mEVirtualDataSourceContainer)
mEVirtualDataSourceContainer
- the mEVirtualDataSourceContainer to set into this RoundRobinGraphicpublic void setNoLegendOption(boolean noLegendOption)
noLegendOption
- the noLegendOption to set into this RoundRobinGraphicpublic void setRigidOption(boolean rigidOption)
rigidOption
- the rigidOption to set into this RoundRobinGraphicpublic void setStartTime(Time startTime)
startTime
- the startTime to set into this RoundRobinGraphicpublic void setStep(int step)
step
- the step to set into this RoundRobinGraphicpublic void setTitle(java.lang.String title)
title
- the title to set into this RoundRobinGraphicpublic void setUnitsExponent(int unitsExponent)
unitsExponent
- the unitsExponent to set into this RoundRobinGraphicpublic void setUpperLimit(int upperLimit)
upperLimit
- the upperLimit to set into this RoundRobinGraphicpublic void setVerticalLabel(java.lang.String verticalLabel)
verticalLabel
- the verticalLabel to set into this RoundRobinGraphicpublic void setVirtualDataSourceontainer(VirtualDataSourceContainer virtualDataSourceContainer)
virtualDataSourceContainer
- the virtualDataSource to set into this RoundRobinGraphicpublic void setWidthPixels(int widthPixels)
widthPixels
- the widthPixels to set into this RoundRobinGraphicpublic void setXGrid(XGrid xGrid)
xgrid
- the xgrid to set into this RoundRobinGraphicpublic void setYGrid(YGrid yGrid)
ygrid
- the ygrid to set into this RoundRobinGraphicpublic void setYGridOption(boolean yGridOption)
yGridOption
- the yGridOption to set into this RoundRobinGraphicpublic java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |