更新时间:2022-06-30 GMT+08:00

启动图

您可以使用GES提供的接口启动一个图,可以从原图启动或者从某个备份ID启动。示例代码如下:

  //从原图启动  
  private static void startGraph(GesClient client, String graphId) throws GesSdkException
    {
        Job job = client.startGraph(graphId);
        System.out.println(job);
    }
  //从备份启动
  private static void startGraphFromBackup(GesClient client, String graphId, String backUpId) throws GesSdkException
    {
        Job job = client.startGraph(graphId,backUpId);
        System.out.println(job);
    }