I did think of this once. I know in the past things like terracotta would modify the jvm to intercept calls and make things distributed. Certainly technically can be done but not sure if it would be mainstream accepted or necessarily work any better at such a low level.
On Wed, 14 Oct 2015 at 12:53 AM, oliver gondža <[email protected]> wrote: > Here is an idea that might be crazy but provide a way to switch to another > persistence backed without braking BC. > > We build our API around java.io.File, which is causing the majority of > problems with replacing filesystem that I am aware of. Some time ago I > come across TrueVFS, a library that uses File subclasses to fake a > directory hierarchy in compressed archives. One can then manipulate > archive and directory hierarchy transparently. > > Can we do whatever PowerMock is doing to hook custom logic into `new File` > and provide custom implementation in case it is one of the files we decide > to store in DB (whole JENKINS_HOME?) and JDK implementation for the rest? > This would allow users turn it on when/if they are ready. It will also > give us a lot more time to design suitable persistence API without > breaking the existing one. > > -- > oliver > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-dev/vbXK7JJekFw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/op.x6f8yuensbfict%40localhost.localdomain > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAKVMTi5xm2_jFO5d9vanJ7wnLM64B8hmk4vQNO7pDLbFPn1L-Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
