- java.lang.Object
-
- jdk.crac.Core
-
public class Core extends Object
The coordination service.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappendToAppClassLoaderClassPath(String path)append path to app clasloader's classpath.static voidcheckpointRestore()Requests checkpoint and returns upon a successful restore.static Context<Resource>getGlobalContext()Gets the globalContextfor checkpoint/restore notifications.static voidregisterPseudoPersistent(String absoluteFilePath, int mode)static voidunregisterPseudoPersistent(String absoluteFilePath)
-
-
-
Method Detail
-
getGlobalContext
public static Context<Resource> getGlobalContext()
Gets the globalContextfor checkpoint/restore notifications.- Returns:
- the global
Context
-
checkpointRestore
public static void checkpointRestore() throws CheckpointException, RestoreExceptionRequests checkpoint and returns upon a successful restore. May throw an exception if the checkpoint or restore are unsuccessful.- Throws:
CheckpointException- if an exception occured during checkpoint notification and the execution continues in the original Java instance.RestoreException- if an exception occured during restore notification and execution continues in a new Java instance.UnsupportedOperationException- if checkpoint/restore is not supported, no notification performed and the execution continues in the original Java instance.
-
registerPseudoPersistent
public static void registerPseudoPersistent(String absoluteFilePath, int mode)
-
unregisterPseudoPersistent
public static void unregisterPseudoPersistent(String absoluteFilePath)
-
appendToAppClassLoaderClassPath
public static void appendToAppClassLoaderClassPath(String path) throws CheckpointException
append path to app clasloader's classpath.- Parameters:
path-- Throws:
CheckpointException
-
-