|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--rrdService.service.RoundRobin | +--rrdService.service.RoundRobinDataBase
The class RoundRobinDataBase allows the managment of a group of rrd
RoundRobin
, Serialized FormField Summary | |
private static Mutex |
mutex
Mutex allowing the synchronisation of graph method |
private static java.lang.String |
RRDTOOL_CMD
RRDTOOL_CMD command of rrdtool.exe |
private static java.lang.String |
RRDTOOL_CMD_BAT
RRDTOOL_CMD_BAT command of rrdtool.bat |
Fields inherited from class rrdService.service.RoundRobin |
mountFile, RRD_FILE, RRD_FILE_EXTENTION, RRD_LIBRARY, type |
Fields inherited from class java.rmi.server.UnicastRemoteObject |
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf |
Fields inherited from class java.rmi.server.RemoteServer |
log, logname |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Fields inherited from interface rrdService.service.LockItf |
DELETE, READ_WRITE |
Constructor Summary | |
RoundRobinDataBase(java.lang.String fileName)
Constructor of class RoundRobinDataBase |
|
RoundRobinDataBase(java.lang.String fileName,
Time startTime,
int steps,
DataSourceContainer dataSourceContainer,
RoundRobinArchiveContainer roundRobinArchiveContainer)
Constructor of class RoundRobinDataBase |
Method Summary | |
private RoundRobinInfo |
createRoundRobinInfo()
createInfoFile create the file of info on this RRD |
int |
delete()
delete delete a rrd |
java.io.File |
dump(java.lang.String xmlFilename)
dump dump a round robin database The dump function prints the contents of an RRD in human readable (?) |
java.lang.String |
fetch(java.lang.String cf)
fetch fetch a round robin database |
java.lang.String |
fetch(java.lang.String cf,
int resolution)
fetch fetch a round robin database |
java.lang.String |
fetch(java.lang.String cf,
int resolution,
Time startTime)
fetch fetch a round robin database |
java.lang.String |
fetch(java.lang.String cf,
int resolution,
Time startTime,
Time endTime)
fetch fetch a round robin database |
java.lang.String |
fetch(java.lang.String cf,
Time startTime)
fetch fetch a round robin database |
java.lang.String |
fetch(java.lang.String cf,
Time startTime,
Time endTime)
fetch fetch a round robin database |
DataSourceContainer |
getDataSourceContainer()
Returns the data source container 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 |
long |
getSize()
getSize return the size of RoundRobinDataBase |
int |
getStep()
Returns the step of the round robin |
RoundRobinImage |
graph(RoundRobinGraphic roundRobinGraphic)
graph Create a graph based on data from one or several RRD |
void |
grow(int rraNum,
int rows)
grow used if you want to add extra rows to an RRA. |
java.lang.String |
info()
info return info about a round robin database |
Time |
last()
last return the date of the last data sample in an RRD |
private void |
printCmd(java.lang.String[] cmd)
printCmd display a command line |
RoundRobinDataBaseItf |
restore(java.lang.String xmlFilename)
restore the contents of an RRD from its XML dump format |
private java.lang.String |
rrdToolCmd(java.lang.String[] cmd)
rrdToolCmd execute un rrdtool commande |
void |
setDataSourceName(java.lang.String oldDsName,
java.lang.String newDsName)
setDataSourceName modify the name of data source of this RRD |
void |
setDataSourceType(java.lang.String dsName,
java.lang.String dataSourceType)
setDataSourceType modify the type of data source of this RRD |
void |
setHeartbeat(java.lang.String dsName,
int heartbeat)
setHeartbeat modify the heartbeat of this RRD |
void |
setMaximum(java.lang.String dsName,
int maximum)
setMaximum modify the maximum of this RRD |
void |
setMinimum(java.lang.String dsName,
int minimum)
setMinimum modify the minimum of this RRD |
void |
shrink(int rraNum,
int rows)
shrink used if you want to remove rows from an RRA. |
void |
update(Data data)
Update update a round robin database |
void |
update(DataContainer dataContainer)
Update update a round robin database |
void |
update(Template template,
DataContainer dataContainer)
Update update a round robin database |
Methods inherited from class rrdService.service.RoundRobin |
getAbsolutePath, getLock, getMountFile, getName, getStatus, getType, isRoundRobinDataBase, isRoundRobinDataBase, isRoundRobinLibrary, isRoundRobinLibrary, isValideType, lockDelete, lockRead, lockWrite, setLock, setMountFile, setType, throwException, throwRemoteException, unLockRead, unLockWrite |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
|
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub, writeObject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface rrdService.service.RoundRobinItf |
getName, getType, isRoundRobinDataBase, isRoundRobinLibrary |
Field Detail |
private static Mutex mutex
private static final java.lang.String RRDTOOL_CMD
private static final java.lang.String RRDTOOL_CMD_BAT
Constructor Detail |
public RoundRobinDataBase(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the RoundRobinDataBasepublic RoundRobinDataBase(java.lang.String fileName, Time startTime, int steps, DataSourceContainer dataSourceContainer, RoundRobinArchiveContainer roundRobinArchiveContainer) throws java.lang.Exception
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)steps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)dataSourceContainer
- a collection of the data source of the RRDroundRobinArchiveContainer
- a collection the RRA of the RRDMethod Detail |
private RoundRobinInfo createRoundRobinInfo() throws java.lang.Exception
public int delete() throws java.rmi.RemoteException
delete
in interface RoundRobinDataBaseItf
delete
in class RoundRobin
public java.io.File dump(java.lang.String xmlFilename) throws java.rmi.RemoteException
dump
in interface RoundRobinDataBaseItf
xmlFilename
- the name of the output xlm filepublic java.lang.String fetch(java.lang.String cf) throws java.rmi.RemoteException
fetch
in interface RoundRobinDataBaseItf
cf
- which consolidation function should have been applied to the data you want to fetch? (AVERAGE,MIN,MAX,LAST)public java.lang.String fetch(java.lang.String cf, int resolution) throws java.rmi.RemoteException
fetch
in interface RoundRobinDataBaseItf
cf
- which consolidation function should have been applied to the data you want to fetch? (AVERAGE,MIN,MAX,LAST)resolution
- what interval should the values have (seconds per value). rrdfetch will try to match your request, but it will return data even if no absolute match is possible.startTime
- when should the data begin. A time in seconds since epoch (1970-01-01) is required. Negative numbers are relative to the current time. By default one day worth of data will be fetched. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation on ways to specify start time.public java.lang.String fetch(java.lang.String cf, int resolution, Time startTime) throws java.rmi.RemoteException
fetch
in interface RoundRobinDataBaseItf
cf
- which consolidation function should have been applied to the data you want to fetch? (AVERAGE,MIN,MAX,LAST)resolution
- what interval should the values have (seconds per value). rrdfetch will try to match your request, but it will return data even if no absolute match is possible.startTime
- when should the data begin. A time in seconds since epoch (1970-01-01) is required. Negative numbers are relative to the current time. By default one day worth of data will be fetched. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation on ways to specify start time.public java.lang.String fetch(java.lang.String cf, int resolution, Time startTime, Time endTime) throws java.rmi.RemoteException
fetch
in interface RoundRobinDataBaseItf
cf
- which consolidation function should have been applied to the data you want to fetch? (AVERAGE,MIN,MAX,LAST)resolution
- what interval should the values have (seconds per value). rrdfetch will try to match your request, but it will return data even if no absolute match is possible.startTime
- when should the data begin. A time in seconds since epoch (1970-01-01) is required. Negative numbers are relative to the current time. By default one day worth of data will be fetched. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation on ways to specify start time.endTime
- when should the data end. Time in seconds since epoch. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation of how to specify end time.public java.lang.String fetch(java.lang.String cf, Time startTime) throws java.rmi.RemoteException
fetch
in interface RoundRobinDataBaseItf
cf
- which consolidation function should have been applied to the data you want to fetch? (AVERAGE,MIN,MAX,LAST)startTime
- when should the data begin. A time in seconds since epoch (1970-01-01) is required. Negative numbers are relative to the current time. By default one day worth of data will be fetched. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation on ways to specify start time.public java.lang.String fetch(java.lang.String cf, Time startTime, Time endTime) throws java.rmi.RemoteException
fetch
in interface RoundRobinDataBaseItf
cf
- which consolidation function should have been applied to the data you want to fetch? (AVERAGE,MIN,MAX,LAST)startTime
- when should the data begin. A time in seconds since epoch (1970-01-01) is required. Negative numbers are relative to the current time. By default one day worth of data will be fetched. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation on ways to specify start time.endTime
- when should the data end. Time in seconds since epoch. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation of how to specify end time.public DataSourceContainer getDataSourceContainer() throws java.rmi.RemoteException
getDataSourceContainer
in interface RoundRobinDataBaseItf
public RoundRobinArchiveContainer getRoundRobinArchiveContainer() throws java.rmi.RemoteException
getRoundRobinArchiveContainer
in interface RoundRobinDataBaseItf
public java.lang.String getRoundRobineVersion() throws java.rmi.RemoteException
getRoundRobineVersion
in interface RoundRobinDataBaseItf
public long getSize() throws java.rmi.RemoteException
getSize
in interface RoundRobinDataBaseItf
getSize
in class RoundRobin
public int getStep() throws java.rmi.RemoteException
getStep
in interface RoundRobinDataBaseItf
public RoundRobinImage graph(RoundRobinGraphic roundRobinGraphic) throws java.rmi.RemoteException
graph
in interface RoundRobinDataBaseItf
roundRobinGraphic
- the roundRobinGraphic which represent the graphpublic void grow(int rraNum, int rows) throws java.rmi.RemoteException
grow
in interface RoundRobinDataBaseItf
rraNum
- the RRA you want to alter. You can find the number using rrdtool info.rows
- the number of rows you want to add.public java.lang.String info() throws java.rmi.RemoteException
info
in interface RoundRobinDataBaseItf
public Time last() throws java.rmi.RemoteException
last
in interface RoundRobinDataBaseItf
private void printCmd(java.lang.String[] cmd)
cmd:
- command line to displaypublic RoundRobinDataBaseItf restore(java.lang.String xmlFilename) throws java.rmi.RemoteException
restore
in interface RoundRobinDataBaseItf
xmlFilename
- the name of the input xlm fileprivate java.lang.String rrdToolCmd(java.lang.String[] cmd) throws java.lang.Exception
commande:
- the commande to executepublic void setDataSourceName(java.lang.String oldDsName, java.lang.String newDsName) throws java.rmi.RemoteException
setDataSourceName
in interface RoundRobinDataBaseItf
oldDsName
- the ds-name of data source of this RRD to modifynewDsName
- the new name of data source of this RRDpublic void setDataSourceType(java.lang.String dsName, java.lang.String dataSourceType) throws java.rmi.RemoteException
setDataSourceType
in interface RoundRobinDataBaseItf
dsName
- the ds-name of data source of this RRD to modifydataSourceType
- the new type of data source of this RRDpublic void setHeartbeat(java.lang.String dsName, int heartbeat) throws java.rmi.RemoteException
setHeartbeat
in interface RoundRobinDataBaseItf
dsName
- the ds-name of data source of this RRD to modifyheartbeat
- the new heartbeat of this RRDpublic void setMaximum(java.lang.String dsName, int maximum) throws java.rmi.RemoteException
setMaximum
in interface RoundRobinDataBaseItf
dsName
- the ds-name of data source of this RRD to modifymaximum
- the new maximum of this RRDpublic void setMinimum(java.lang.String dsName, int minimum) throws java.rmi.RemoteException
setMinimum
in interface RoundRobinDataBaseItf
dsName
- the ds-name of data source of this RRD to modifyminimum
- the new minimum of this RRDpublic void shrink(int rraNum, int rows) throws java.rmi.RemoteException
shrink
in interface RoundRobinDataBaseItf
rraNum
- the RRA you want to alter. You can find the number using rrdtool info.rows
- the number of rows you want to remove.public void update(Data data) throws java.rmi.RemoteException
update
in interface RoundRobinDataBaseItf
data
- The data used for updating the RRD was acquired at a certain time.public void update(DataContainer dataContainer) throws java.rmi.RemoteException
update
in interface RoundRobinDataBaseItf
dataContainer
- The data used for updating the RRD was acquired at a certain time.public void update(Template template, DataContainer dataContainer) throws java.rmi.RemoteException
update
in interface RoundRobinDataBaseItf
template
- The template switch allows you to specify which data sources you are going to update and in which order.dataContainer
- The data used for updating the RRD was acquired at a certain time.
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |