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 Loading

  1. docs docs Public

    Roff 229 13

  2. org.crac org.crac Public

    Java 43 6

  3. example-spring-boot example-spring-boot Public

    Java 33 14

  4. openjdk-builds openjdk-builds Public

    Java 31 2

  5. criu criu Public

    C 29 10

  6. example-lambda example-lambda Public

    Java 16 4

Repositories

Showing 10 of 28 repositories

Most used topics

Loading…