From: Sasa M. <sa...@us...> - 2004-06-02 07:20:26
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25254/org/jrobin/core Modified Files: RrdBackend.java RrdNioBackend.java Log Message: Nice plottable demo, with five cute graphs. Minor javadoc changes. Index: RrdBackend.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdBackend.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RrdBackend.java 1 Jun 2004 14:41:01 -0000 1.5 --- RrdBackend.java 2 Jun 2004 07:20:12 -0000 1.6 *************** *** 137,141 **** /** ! * Closes the storage. Calls sync() implicitly. * @throws IOException Thrown in case of I/O error */ --- 137,143 ---- /** ! * Closes the underlying storage. Calls sync() implicitly. ! * In other words, you don't have to call sync() before close() in order to preserve ! * data cached in memory. * @throws IOException Thrown in case of I/O error */ Index: RrdNioBackend.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/RrdNioBackend.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RrdNioBackend.java 1 Jun 2004 14:41:01 -0000 1.6 --- RrdNioBackend.java 2 Jun 2004 07:20:13 -0000 1.7 *************** *** 34,38 **** /** * JRobin backend which is used to store RRD data to ordinary files on the disk ! * by using java.nio.* package. */ public class RrdNioBackend extends RrdFileBackend { --- 34,38 ---- /** * JRobin backend which is used to store RRD data to ordinary files on the disk ! * by using java.nio.* package. This is the default backend engine since JRobin 1.4.0. */ public class RrdNioBackend extends RrdFileBackend { *************** *** 123,126 **** --- 123,131 ---- } + /** + * Method called by the framework immediatelly before RRD update operation starts. This method + * will synchronize in-memory cache with the disk content if synchronization mode is set to + * {@link RrdNioBackendFactory#SYNC_BEFOREUPDATE}. Otherwise it does nothing. + */ protected void beforeUpdate() { if(syncMode == RrdNioBackendFactory.SYNC_BEFOREUPDATE) { *************** *** 129,132 **** --- 134,142 ---- } + /** + * Method called by the framework immediatelly after RRD update operation finishes. This method + * will synchronize in-memory cache with the disk content if synchronization mode is set to + * {@link RrdNioBackendFactory#SYNC_AFTERUPDATE}. Otherwise it does nothing. + */ protected void afterUpdate() { if(syncMode == RrdNioBackendFactory.SYNC_AFTERUPDATE) { *************** *** 135,138 **** --- 145,153 ---- } + /** + * Method called by the framework immediatelly before RRD fetch operation starts. This method + * will synchronize in-memory cache with the disk content if synchronization mode is set to + * {@link RrdNioBackendFactory#SYNC_BEFOREFETCH}. Otherwise it does nothing. + */ protected void beforeFetch() { if(syncMode == RrdNioBackendFactory.SYNC_BEFOREFETCH) { *************** *** 141,144 **** --- 156,164 ---- } + /** + * Method called by the framework immediatelly after RRD fetch operation finishes. This method + * will synchronize in-memory cache with the disk content if synchronization mode is set to + * {@link RrdNioBackendFactory#SYNC_AFTERFETCH}. Otherwise it does nothing. + */ protected void afterFetch() { if(syncMode == RrdNioBackendFactory.SYNC_AFTERFETCH) { |