Hi, The problem with diskSpaceIsLow() is that it didn't work as expected. I understand there is a need to detect I/O problems. What about a file system wrapper that does detect it? Depending on the problem, it could re-try the operation. I guess it would be a bit more modular. Would that be an option for you? If yes, I will implement it and add it to the samples (for now). The database URL would need to be changed, for example from
jdbc:h2:~/data/test to jdbc:h2:monitor:~/data/test The file system wrapper could be called FilePathMonitor. Registering for problems would need to be done in a static way (an event listener for all events) or for example path-based. One of the advantages is that the file system could be used for other modules in your application. The file system abstraction API is similar to the Java 7 file system abstraction API (I plan to make it fully compatible in the future, when Java 7 gets more popular). Regards, Thomas On Thursday, January 12, 2012, Göran Schwarz wrote: > Hi there! > > In version 1.3.163 the method diskSpaceIsLow() was removed from > DatabaseEventListener > This since the storage file(s) was closed anyway or similar! > > I was using the diskSpaceIsLow() to simply notify/shutdown my storage > module about the problem, so it could take appropriate action. In my > database storage module I do *not* want to test for specific exception > everywhere to check for "disk is full" problems. And the users of my > application can also choose another database engine (but H2 is the > preferred one) > > So my question is: > Can the diskSpaceIsLow() or some other new method be called when H2 > realizes that we are "out of space" and the storage file(s) are > closed? > > Thanks for your help > /Goran Schwarz, Sybase Sweden > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
