Examples of method()


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

  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);
    }
    Queue queue;
    if (!AnalysisUtility.areParametersValid(exporterConfig.getQueueName())) {
View Full Code Here

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

    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

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

     
      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);
     
      String name = LogExportDirectToBigqueryTask.class.getSimpleName() + "_" + Long.toString(logRangeStartMs) + "_" + Long.toString(logRangeEndMs);
      log.warning("exportTaskName: " + name);
     
      t.taskName(name);
View Full Code Here

Examples of com.google.sitebricks.headless.Request.method()

    //chain to embedded page (widget), with arguments
    EmbeddedRespond embed = factory.get(arguments);

    Request req = request.get();
    try {
      page.doMethod(req.method(), pageObject, "", req);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }

    page.widget().render(pageObject, embed);
View Full Code Here

Examples of com.google.wave.api.OperationType.method()

            new WaveletParticipantsChangedEvent(null, null, participant.getAddress(),
                System.currentTimeMillis(), rootBlipId, participantsAdded, participantsRemoved);
        break;
      default:
        throw new UnsupportedOperationException(
            "This OperationService does not implement operation of type " + type.method());
    }

    // Process the participant event.
    context.processEvent(operation, event);
  }
View Full Code Here

Examples of com.google.wave.api.OperationType.method()

      case BLIP_DELETE:
        delete(operation, context, participant, conversation);
        break;
      default:
        throw new UnsupportedOperationException(
            "This OperationService does not implement operation of type " + type.method());
    }
  }

  /**
   * Implementation of the {@link OperationType#BLIP_CONTINUE_THREAD} method. It
View Full Code Here

Examples of com.helger.jcodemodel.JDefinedClass.method()

        for (JTypeVar visitorTypeParameter: visitorInterface.getValueTypeParameters()) {
            Types.generifyWithBoundsFrom(acceptingInterface, visitorTypeParameter.name(), visitorTypeParameter);
        }

        JMethod acceptMethod = acceptingInterface.method(JMod.PUBLIC, types._void, "accept");

        JTypeVar visitorResultType = visitorInterface.getResultTypeParameter();
        JTypeVar resultType = Types.generifyWithBoundsFrom(acceptMethod, visitorResultType.name(), visitorResultType);
        acceptMethod.type(resultType);
View Full Code Here

Examples of com.jcabi.http.mock.MkQuery.method()

            MatcherAssert.assertThat(
                query.uri().toString(),
                Matchers.endsWith("/user/keys/1")
            );
            MatcherAssert.assertThat(
                query.method(),
                Matchers.equalTo(Request.DELETE)
            );
        } finally {
            container.stop();
        }
View Full Code Here

Examples of com.jcabi.http.mock.MkQuery.method()

            "unstar"
        );
        gist.unstar();
        final MkQuery query = container.take();
        MatcherAssert.assertThat(
            query.method(),
            Matchers.equalTo(Request.DELETE)
        );
        MatcherAssert.assertThat(
            query.body(),
            Matchers.isEmptyOrNullString()
View Full Code Here

Examples of com.jcabi.http.mock.MkQuery.method()

            new RtPullComments(new ApacheRequest(container.home()), pull);
        try {
            comments.remove(2);
            final MkQuery query = container.take();
            MatcherAssert.assertThat(
                query.method(), Matchers.equalTo(Request.DELETE)
            );
            MatcherAssert.assertThat(
                query.uri().toString(),
                Matchers.endsWith("/repos/johnny/test/pulls/comments/2")
            );
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.