|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.graph.FetchSourceList
public class FetchSourceList
A FetchSourceList represents a number of RRD datasources, to be used with RrdGraphDef for Graph generation.
Constructor Summary | |
---|---|
FetchSourceList(int defaultSize)
Creates a new FetchSourceList with the specified default size. |
|
FetchSourceList(int defaultSize,
boolean persistent,
boolean lockOpener)
Creates a new FetchSourceList with the specified default size. |
|
FetchSourceList(int defaultSize,
boolean persistent,
boolean lockOpener,
RrdOpener rrdOpener)
Creates a new FetchSourceList with the specified default size. |
Method Summary | |
---|---|
void |
add(java.lang.String name,
java.lang.String file,
java.lang.String dsName,
java.lang.String consolFunc)
Adds a datasource for graphing purposes to the list, see RrdExportDef.datasource( java.lang.String, java.lang.String,
java.lang.String, java.lang.String ) . |
void |
add(java.lang.String name,
java.lang.String file,
java.lang.String dsName,
java.lang.String consolFunc,
java.lang.String backend)
Adds a datasource for graphing purposes to the list, see RrdExportDef.datasource( java.lang.String, java.lang.String,
java.lang.String, java.lang.String, java.lang.String ) . |
void |
clear()
Clears up the FetchSourceList for new use. |
int |
defCount()
Returns the number of Defs represented by the different FetchSources. |
protected org.jrobin.graph.FetchSource |
get(int index)
Returns the FetchSource for the given index. |
long |
getLastUpdateTime()
Returns the highest last update time in seconds of the datasources represented by the list. |
RrdOpener |
getRrdOpener()
|
void |
lockOpener()
This locks the RrdOpener in the FetchSourceList. |
void |
openAll()
Retrieves (opens) all RrdDb instances related to the different FetchSources. |
void |
releaseAll()
Releases all RrdDb instances for the FetchSources. |
void |
setPersistent(boolean persistent)
Sets the persistency state of the FetchSourceList. |
void |
setRrdOpener(RrdOpener rrdOpener)
Sets the internal RrdOpener object to use for RrdDb retrieval. |
int |
size()
Returns the number of FetchSources hold in the list. |
void |
unlockOpener()
Unlocks the RrdOpener object, means calls to setRrdOpener() can change the internal rrdOpener object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FetchSourceList(int defaultSize)
defaultSize
- Default size of the FetchSourceList.public FetchSourceList(int defaultSize, boolean persistent, boolean lockOpener)
defaultSize
- Default size of the FetchSourceList.persistent
- True if the list is persistent, false if not.public FetchSourceList(int defaultSize, boolean persistent, boolean lockOpener, RrdOpener rrdOpener)
defaultSize
- Default size of the FetchSourceList.persistent
- True if the list is persistent, false if not.rrdOpener
- Reference to the RrdOpener object that will be used
for RrdDb retrieval.Method Detail |
---|
public void setRrdOpener(RrdOpener rrdOpener)
rrdOpener
- Reference to the corresponding RrdOpener instance.public RrdOpener getRrdOpener()
public void setPersistent(boolean persistent)
persistent
- True if the list should behave as persistent.public void lockOpener()
public void unlockOpener()
public int size()
public int defCount()
public void openAll() throws RrdException, java.io.IOException
java.io.IOException
- Thrown in case of fetching I/O error.
RrdException
- Thrown in case of a JRobin specific error.public void releaseAll() throws RrdException, java.io.IOException
java.io.IOException
- Thrown in case of fetching I/O error.
RrdException
- Thrown in case of a JRobin specific error.public void clear() throws RrdException, java.io.IOException
java.io.IOException
- Thrown in case of fetching I/O error.
RrdException
- Thrown in case of a JRobin specific error.public long getLastUpdateTime() throws RrdException, java.io.IOException
java.io.IOException
- Thrown in case of fetching I/O error.
RrdException
- Thrown in case of a JRobin specific error.public void add(java.lang.String name, java.lang.String file, java.lang.String dsName, java.lang.String consolFunc, java.lang.String backend) throws RrdException
RrdExportDef.datasource( java.lang.String, java.lang.String,
java.lang.String, java.lang.String, java.lang.String )
.
name
- Internal datasource name, to be used in GraphDefs.file
- Path to RRD file.dsName
- Data source name defined in the RRD file.consolFunc
- Consolidation function that will be used to extract data from the RRD
file ("AVERAGE", "MIN", "MAX" or "LAST").backend
- Name of the RrdBackendFactory that should be used for this RrdDb.
RrdException
- Thrown in case of a JRobin specific error.public void add(java.lang.String name, java.lang.String file, java.lang.String dsName, java.lang.String consolFunc) throws RrdException
RrdExportDef.datasource( java.lang.String, java.lang.String,
java.lang.String, java.lang.String )
.
name
- Internal datasource name, to be used in GraphDefs.file
- Path to RRD file.dsName
- Data source name defined in the RRD file.consolFunc
- Consolidation function that will be used to extract data from the RRD
file ("AVERAGE", "MIN", "MAX" or "LAST").
RrdException
- Thrown in case of a JRobin specific error.protected org.jrobin.graph.FetchSource get(int index)
index
- Index of the FetchSource in the list.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |