Skip to content
@CRaC

CRaC

Coordinated Restore at Checkpoint

Coordinated Restore at Checkpoint (CRaC)

The CRaC (Coordinated Restore at Checkpoint) Project researches the coordination of Java programs with mechanisms to checkpoint (make an image of, snapshot) a Java instance while executing. Restoring from the image could solve some of the problems with the start-up and warm-up times. The primary aim of the Project is to develop a new standard mechanism-agnostic API to notify Java programs about the checkpoint and restore events. Other research activities will include, but will not be limited to, integration with existing checkpoint/restore mechanisms and development of new ones, changes to JVM and JDK to make images smaller and ensure they are correct.

Read More About CRaC

Using CRaC in your Application

Use the CRaC library in your project to handle checkpoint creation and restore from a checkpoint.

package my.app;

import org.crac.Context;
import org.crac.Core;
import org.crac.Resource;

public class MyClass implements Resource {

    public MyClass() {
        Core.getGlobalContext().register(this);
    }

    @Override
    public void beforeCheckpoint(Context<? extends Resource> context) {
        /* ... */
    }

    @Override
    public void afterRestore(Context<? extends Resource> context) {
        /* ... */
    }
}

Example Implementation Repositories

Popular repositories

  1. docs docs Public

    Roff 213 13

  2. org.crac org.crac Public

    Java 31 7

  3. openjdk-builds openjdk-builds Public

    Java 30 2

  4. example-spring-boot example-spring-boot Public

    Java 27 13

  5. criu criu Public

    C 24 9

  6. example-lambda example-lambda Public

    Shell 14 3

Repositories

Showing 10 of 28 repositories

Most used topics

Loading…