|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.rrd.MultiOutputRrdStrategy
public class MultiOutputRrdStrategy
MultiOutputRrdStrategy class.
| Constructor Summary | |
|---|---|
MultiOutputRrdStrategy()
|
|
| Method Summary | |
|---|---|
void |
closeFile(List<Object> rrd)
closeFile |
List<Object> |
createDefinition(String creator,
String directory,
String rrdName,
int step,
List<RrdDataSource> dataSources,
List<String> rraList)
Create a round robin database definition from the supplied parameters. |
void |
createFile(List<Object> rrdDef)
createFile |
InputStream |
createGraph(String command,
File workDir)
Creates an InputStream representing the bytes of a graph created from round robin data. |
RrdGraphDetails |
createGraphReturnDetails(String command,
File workDir)
Creates an RrdGraphDetails object representing the graph created from round robin data. |
Double |
fetchLastValue(String rrdFile,
String ds,
int interval)
Fetches the last value from the round robin database with the given name. |
Double |
fetchLastValue(String rrdFile,
String ds,
String consolidationFunction,
int interval)
Fetches the last value from the round robin database with the given name. |
Double |
fetchLastValueInRange(String rrdFile,
String ds,
int interval,
int range)
Fetches the last value from the round robin database with the given name within a time range. |
String |
getDefaultFileExtension()
getDefaultFileExtension |
List<RrdStrategy<Object,Object>> |
getDelegates()
getDelegates |
int |
getFetchStrategyIndex()
getFetchStrategyIndex |
int |
getGraphLeftOffset()
getGraphLeftOffset |
int |
getGraphRightOffset()
getGraphRightOffset |
int |
getGraphStrategyIndex()
getGraphStrategyIndex |
int |
getGraphTopOffsetWithText()
getGraphTopOffsetWithText |
String |
getStats()
getStats |
List<Object> |
openFile(String fileName)
Opens the round robin database with the supplied name. |
void |
promoteEnqueuedFiles(Collection<String> rrdFiles)
In the event that this is a queuing implementation of the RrdStrategy. |
void |
setConfigurationProperties(Properties configurationParameters)
setConfigurationProperties |
void |
setDelegates(List<RrdStrategy<Object,Object>> delegates)
setDelegates |
void |
setFetchStrategyIndex(int fetchStrategyIndex)
setFetchStrategyIndex |
void |
setGraphStrategyIndex(int graphStrategyIndex)
setGraphStrategyIndex |
void |
updateFile(List<Object> rrd,
String owner,
String data)
Updates the supplied round robin database with the given timestamp:value point |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiOutputRrdStrategy()
| Method Detail |
|---|
public void setConfigurationProperties(Properties configurationParameters)
setConfigurationProperties
setConfigurationProperties in interface RrdStrategy<List<Object>,List<Object>>configurationParameters - a Properties object.public List<RrdStrategy<Object,Object>> getDelegates()
getDelegates
List object.public void setDelegates(List<RrdStrategy<Object,Object>> delegates)
setDelegates
delegates - a List object.public int getGraphStrategyIndex()
getGraphStrategyIndex
public void setGraphStrategyIndex(int graphStrategyIndex)
setGraphStrategyIndex
graphStrategyIndex - a int.public int getFetchStrategyIndex()
getFetchStrategyIndex
public void setFetchStrategyIndex(int fetchStrategyIndex)
setFetchStrategyIndex
fetchStrategyIndex - a int.
public void closeFile(List<Object> rrd)
throws Exception
closeFile
closeFile in interface RrdStrategy<List<Object>,List<Object>>rrd - a List object.
Exception - if any.
public List<Object> createDefinition(String creator,
String directory,
String rrdName,
int step,
List<RrdDataSource> dataSources,
List<String> rraList)
throws Exception
createDefinition in interface RrdStrategy<List<Object>,List<Object>>creator - -
A string representing who is creating this file for use in log
msgsdirectory - -
The directory to create the file inrrdName - -
The name to use for the round robin databasestep - -
the step for the databasedataSources - -
the data sources to use for round robin databaserraList - -
a List of the round robin archives to create in the database
Exception - If an error occurs while creating the definition
public void createFile(List<Object> rrdDef)
throws Exception
createFile
createFile in interface RrdStrategy<List<Object>,List<Object>>rrdDef - a List object.
Exception - if any.
public InputStream createGraph(String command,
File workDir)
throws IOException,
RrdException
createGraph in interface RrdStrategy<List<Object>,List<Object>>command - the command needed to create the graphworkDir - the directory that all referenced files are relative to
IOException - if an IOError occurs
RrdException - if an RRD error occurs
public RrdGraphDetails createGraphReturnDetails(String command,
File workDir)
throws IOException,
RrdException
createGraphReturnDetails in interface RrdStrategy<List<Object>,List<Object>>command - the command needed to create the graphworkDir - the directory that all referenced files are relative to
IOException - if an IOError occurs
RrdException - if an RRD error occurs
public Double fetchLastValue(String rrdFile,
String ds,
int interval)
throws NumberFormatException,
RrdException
fetchLastValue in interface RrdStrategy<List<Object>,List<Object>>rrdFile - a name the represents a round robin databaseds - a name the represents a data source to be usedinterval - a step interval of the round robin database
NumberFormatException - if any.
RrdException - if any.
public Double fetchLastValue(String rrdFile,
String ds,
String consolidationFunction,
int interval)
throws NumberFormatException,
RrdException
fetchLastValue in interface RrdStrategy<List<Object>,List<Object>>rrdFile - a name the represents a round robin databaseds - a name the represents a data source to be usedconsolidationFunction - a String object.interval - a step interval of the round robin database
NumberFormatException - if any.
RrdException - if any.
public Double fetchLastValueInRange(String rrdFile,
String ds,
int interval,
int range)
throws NumberFormatException,
RrdException
fetchLastValueInRange in interface RrdStrategy<List<Object>,List<Object>>rrdFile - a name the represents a round robin databaseds - a name the represents a data source to be usedinterval - a step interval of the round robin databaserange - an acceptable range for which the last value will be returned
NumberFormatException - if any.
RrdException - if any.public String getDefaultFileExtension()
getDefaultFileExtension
getDefaultFileExtension in interface RrdStrategy<List<Object>,List<Object>>String object.public int getGraphLeftOffset()
getGraphLeftOffset
getGraphLeftOffset in interface RrdStrategy<List<Object>,List<Object>>public int getGraphRightOffset()
getGraphRightOffset
getGraphRightOffset in interface RrdStrategy<List<Object>,List<Object>>public int getGraphTopOffsetWithText()
getGraphTopOffsetWithText
getGraphTopOffsetWithText in interface RrdStrategy<List<Object>,List<Object>>public String getStats()
getStats
getStats in interface RrdStrategy<List<Object>,List<Object>>String object.
public List<Object> openFile(String fileName)
throws Exception
openFile in interface RrdStrategy<List<Object>,List<Object>>fileName - the name of the associated rrd file
Exception - if an error occurs opening the filepublic void promoteEnqueuedFiles(Collection<String> rrdFiles)
promoteEnqueuedFiles in interface RrdStrategy<List<Object>,List<Object>>rrdFiles - a Collection object.
public void updateFile(List<Object> rrd,
String owner,
String data)
throws Exception
updateFile in interface RrdStrategy<List<Object>,List<Object>>rrd - an rrd object created using openFileowner - the owner of the rrddata - a string of the form Exception - if an error occurs updating the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||