Updated on 2022-09-14 GMT+08:00

Starting a Graph

You can use a specific API provided by GES to start a graph from the original graph or a backup ID. The sample code is as follows:

 //Start from the original graph.
  private static void startGraph(GesClient client, String graphId) throws GesSdkException
    {
        Job job = client.startGraph(graphId);
        System.out.println(job);
    }
  //Start from a backup.
  private static void startGraphFromBackup(GesClient client, String graphId, String backUpId) throws GesSdkException
    {
        Job job = client.startGraph(graphId,backUpId);
        System.out.println(job);
    }