1 25 package org.jrobin.graph; 26 27 import org.jrobin.core.RrdException; 28 import org.jrobin.core.RrdOpener; 29 30 import java.io.IOException ; 31 32 41 public class RrdExport extends RrdExporter 42 { 43 private int maxRows = 400; 48 49 58 public RrdExport( RrdExportDef def ) 59 { 60 super( def ); 61 } 62 63 71 public RrdExport( RrdExportDef def, RrdOpener rrdOpener ) 72 { 73 super( def, rrdOpener ); 74 } 75 76 84 public RrdExport( RrdExportDef def, int maxRows ) 85 { 86 super( def ); 87 setMaxRows( maxRows ); 88 } 89 90 100 public RrdExport( RrdExportDef def, RrdOpener rrdOpener, int maxRows ) 101 { 102 super( def, rrdOpener ); 103 setMaxRows( maxRows ); 104 } 105 106 107 115 public void setExportDef( RrdExportDef def ) 116 { 117 super.setExportDef( def ); 118 } 119 120 125 public void setRrdOpener( RrdOpener rrdOpener ) 126 { 127 super.setRrdOpener( rrdOpener ); 128 } 129 130 137 public void setMaxRows( int maxRows ) 138 { 139 this.maxRows = maxRows; 140 } 141 142 151 public ExportData fetch( int maxRows ) throws RrdException, IOException { 152 return super.fetch( maxRows ); 153 } 154 155 163 public ExportData fetch() throws RrdException, IOException { 164 return super.fetch( maxRows ); 165 } 166 167 public int getMaxRows() { 168 return maxRows; 169 } 170 } 171 | Popular Tags |