djencks 2004/06/20 00:39:02
Modified: modules/transaction/src/java/org/apache/geronimo/transaction/log HOWLLog.java Log: improve some attribute names. Revision Changes Path 1.2 +11 -9 incubator-geronimo/modules/transaction/src/java/org/apache/geronimo/transaction/log/HOWLLog.java Index: HOWLLog.java =================================================================== RCS file: /home/cvs/incubator-geronimo/modules/transaction/src/java/org/apache/geronimo/transaction/log/HOWLLog.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- HOWLLog.java 19 Jun 2004 17:17:13 -0000 1.1 +++ HOWLLog.java 20 Jun 2004 07:39:02 -0000 1.2 @@ -71,7 +71,7 @@ String bufferClassName, int bufferSize, boolean checksumEnabled, - int flushSleepTime, + int flushSleepTimeMilliseconds, String logFileDir, String logFileExt, String logFileName, @@ -84,7 +84,7 @@ setBufferClassName(bufferClassName); setBufferSizeKBytes(bufferSize); setChecksumEnabled(checksumEnabled); - setFlushSleepTime(flushSleepTime); + setFlushSleepTimeMilliseconds(flushSleepTimeMilliseconds); setLogFileDir(logFileDir); setLogFileExt(logFileExt); setLogFileName(logFileName); @@ -160,11 +160,11 @@ configuration.setMinBuffers(minBuffers); } - public int getFlushSleepTime() { + public int getFlushSleepTimeMilliseconds() { return configuration.getFlushSleepTime(); } - public void setFlushSleepTime(int flushSleepTime) { + public void setFlushSleepTimeMilliseconds(int flushSleepTime) { configuration.setFlushSleepTime(flushSleepTime); } @@ -173,7 +173,7 @@ } public void setThreadsWaitingForceThreshold(int threadsWaitingForceThreshold) { - configuration.setThreadsWaitingForceThreshold(threadsWaitingForceThreshold); + configuration.setThreadsWaitingForceThreshold(threadsWaitingForceThreshold == -1? Integer.MAX_VALUE: threadsWaitingForceThreshold); } public int getMaxBlocksPerFile() { @@ -181,7 +181,7 @@ } public void setMaxBlocksPerFile(int maxBlocksPerFile) { - configuration.setMaxBlocksPerFile(maxBlocksPerFile); + configuration.setMaxBlocksPerFile(maxBlocksPerFile == -1? Integer.MAX_VALUE: maxBlocksPerFile); } public int getMaxLogFiles() { @@ -395,7 +395,7 @@ infoFactory.addAttribute("bufferClassName", String.class, true); infoFactory.addAttribute("bufferSizeKBytes", Integer.TYPE, true); infoFactory.addAttribute("checksumEnabled", Boolean.TYPE, true); - infoFactory.addAttribute("flushSleepTime", Integer.TYPE, true); + infoFactory.addAttribute("flushSleepTimeMilliseconds", Integer.TYPE, true); infoFactory.addAttribute("logFileDir", String.class, true); infoFactory.addAttribute("logFileExt", String.class, true); infoFactory.addAttribute("logFileName", String.class, true); @@ -405,11 +405,13 @@ infoFactory.addAttribute("minBuffers", Integer.TYPE, true); infoFactory.addAttribute("threadsWaitingForceThreshold", Integer.TYPE, true); + infoFactory.addInterface(TransactionLog.class); + infoFactory.setConstructor(new String[] { "bufferClassName", "bufferSizeKBytes", "checksumEnabled", - "flushSleepTime", + "flushSleepTimeMilliseconds", "logFileDir", "logFileExt", "logFileName",