[flymine-dev] New property, and new service class
Wed, 5 May 2004 14:57:01 +0100 (BST)
There is a new property for ObjectStoreInterMineImpl, called "logfile".
Set it to the name of a file, and the objectstore will log all execute
operations that are explained to that file.
In addition, there is a new service class for handling all
shutdown-related operations. It is org.intermine.util.ShutdownHook, and
you can register an object to be cleanly shut down with
ShutdownHook.registerObject(Object). The hook will handle java.io.Writer,
java.io.OutputStream, and ObjectStoreWriterInterMineImpl. You can wrap
your objects in WeakReference if you wish. It is useful for if you wish to
have a log being written by a BufferedWriter or BufferedOutputStream, but
still wish the buffer to be flushed on exit.
No trees were killed in the sending of this message. However a large
number of electrons were terribly inconvenienced.