Package com.google.appengine.api.taskqueue

Examples of com.google.appengine.api.taskqueue.TaskOptions.param()


    TaskOptions options = withUrl(ins.getUrl()).method(Method.GET);

    // add parameters to task
    for (String name : ins.getParams().keySet()) {
      String value = ins.getParams().get(name);
      options = options.param(name, value);
    }

    //actually add to GAE Queue
    q.add(options);
View Full Code Here


    enqueueTask(baseUrl, exporterConfig, timestamp, 0);
 
 
  private static void enqueueTask(String baseUrl, BuiltinDatastoreExportConfiguration exporterConfig, long timestamp, long countdownMillis) {
    TaskOptions t = TaskOptions.Builder.withUrl(baseUrl + BUILTIN_DATASTORE_TO_BIGQUERY_INGESTOR_TASK_PATH);
    t.param(AnalysisConstants.TIMESTAMP_PARAM, Long.toString(timestamp));
    t.param(AnalysisConstants.BUILTIN_DATASTORE_EXPORT_CONFIG, exporterConfig.getClass().getName());
   
    t.method(Method.GET);
    if (countdownMillis > 0) {
      t.countdownMillis(countdownMillis);
View Full Code Here

 
 
  private static void enqueueTask(String baseUrl, BuiltinDatastoreExportConfiguration exporterConfig, long timestamp, long countdownMillis) {
    TaskOptions t = TaskOptions.Builder.withUrl(baseUrl + BUILTIN_DATASTORE_TO_BIGQUERY_INGESTOR_TASK_PATH);
    t.param(AnalysisConstants.TIMESTAMP_PARAM, Long.toString(timestamp));
    t.param(AnalysisConstants.BUILTIN_DATASTORE_EXPORT_CONFIG, exporterConfig.getClass().getName());
   
    t.method(Method.GET);
    if (countdownMillis > 0) {
      t.countdownMillis(countdownMillis);
    }
View Full Code Here

    resp.getWriter().println(AnalysisUtility.successJson("successfully kicked off backup job: " + backupName + ", export to bigquery will begin once backup is complete."));
  }
 
  private TaskOptions createBackupTaskOptions(String backupName, List<String> kindsToExport, String bucketName, String queueName) {
    TaskOptions t = TaskOptions.Builder.withUrl("/_ah/datastore_admin/backup.create");
    t.param("name", backupName);
    for (String kind : kindsToExport) {
      t.param("kind", kind);
    }
    t.param("filesystem", "gs");
    t.param("gs_bucket_name", bucketName);
View Full Code Here

 
  private TaskOptions createBackupTaskOptions(String backupName, List<String> kindsToExport, String bucketName, String queueName) {
    TaskOptions t = TaskOptions.Builder.withUrl("/_ah/datastore_admin/backup.create");
    t.param("name", backupName);
    for (String kind : kindsToExport) {
      t.param("kind", kind);
    }
    t.param("filesystem", "gs");
    t.param("gs_bucket_name", bucketName);
    t.param("run_as_a_service", Boolean.TRUE.toString());
   
View Full Code Here

    TaskOptions t = TaskOptions.Builder.withUrl("/_ah/datastore_admin/backup.create");
    t.param("name", backupName);
    for (String kind : kindsToExport) {
      t.param("kind", kind);
    }
    t.param("filesystem", "gs");
    t.param("gs_bucket_name", bucketName);
    t.param("run_as_a_service", Boolean.TRUE.toString());
   
    t.param("queue", queueName);
   
View Full Code Here

    t.param("name", backupName);
    for (String kind : kindsToExport) {
      t.param("kind", kind);
    }
    t.param("filesystem", "gs");
    t.param("gs_bucket_name", bucketName);
    t.param("run_as_a_service", Boolean.TRUE.toString());
   
    t.param("queue", queueName);
   
    t.method(Method.GET);
View Full Code Here

    for (String kind : kindsToExport) {
      t.param("kind", kind);
    }
    t.param("filesystem", "gs");
    t.param("gs_bucket_name", bucketName);
    t.param("run_as_a_service", Boolean.TRUE.toString());
   
    t.param("queue", queueName);
   
    t.method(Method.GET);
    t.header("Host", BackendServiceFactory.getBackendService().getBackendAddress(AH_BUILTIN_PYTHON_BUNDLE));
View Full Code Here

    }
    t.param("filesystem", "gs");
    t.param("gs_bucket_name", bucketName);
    t.param("run_as_a_service", Boolean.TRUE.toString());
   
    t.param("queue", queueName);
   
    t.method(Method.GET);
    t.header("Host", BackendServiceFactory.getBackendService().getBackendAddress(AH_BUILTIN_PYTHON_BUNDLE));
   
    return t;
View Full Code Here

      else {
        queue = QueueFactory.getQueue(config.getQueueName());
      }
      TaskOptions t = TaskOptions.Builder.withUrl(TASK_URL);
     
      t.param(AnalysisConstants.LOGS_EXPORTER_CONFIGURATION_PARAM, logsExporterConfigurationClassName);
      t.param(AnalysisConstants.LOG_RANGE_START_MS, Long.toString(logRangeStartMs));
      t.param(AnalysisConstants.LOG_RANGE_END_MS, Long.toString(logRangeEndMs));
      t.etaMillis(logRangeEndMs + AnalysisConstants.MILLIS_TO_DELAY_TASKS_BEFORE_RUNNING);
      t.method(Method.GET);
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.