Java checkpointing

a 夏天 提交于 2019-12-12 16:16:25

问题


I hope my question is not too vague but I'm looking for more info about checkpointing in Java. I have to generate a big searchtree of which i'd like to be able to resume calculation after the program got interrupted (for example after a sudden reboot etc). Therefore I need checkpointing. I find very few documentation about that and I get the impression a lot of developement has stopped in the mid-90s. So far I've found a library called Padmig, but I hope alternatives are available? Can anyone point me into the right direction with some info about checkpointing for java?


回答1:


What you describe sounds a lot like object prevalence. In Java there is a library called prevayler that been around since 2002. I haven't used it before, but when it came our there was a lot of fuzz about it and had quite a few interesting concepts.




回答2:


Java doesn't support first-class continuations, so this is impossible. juancn's answer about object prevalence might help you, though.

Alternatively, if you're not tied to Java, you might use a language which does support first-class continuations, such as Lisp.



来源:https://stackoverflow.com/questions/9566486/java-checkpointing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!