Examples of newBuilder()


Examples of com.fasterxml.jackson.jr.ob.impl.CollectionBuilder.newBuilder()

        case SER_LIST:
        case SER_COLLECTION:
        {
            CollectionBuilder b = _collectionBuilder;
            if (type != List.class && type != Collection.class) {
                b = b.newBuilder(type);
            }
            return _readFromArray(b, true);
        }

        case SER_OBJECT_ARRAY:
View Full Code Here

Examples of com.fasterxml.jackson.jr.ob.impl.MapBuilder.newBuilder()

        // Structured types:
        case SER_MAP:
        {
            MapBuilder b = _mapBuilder;
            if (type != Map.class) {
                b = b.newBuilder(type);
            }
            return _readFromObject(b);
        }
           
        case SER_LIST:
View Full Code Here

Examples of com.google.k2crypto.keyversions.KeyVersionRegistry.newBuilder()

        // Type field is required
        throw new InvalidKeyDataException(
            InvalidKeyDataException.Reason.PROTO_PARSE, null);
      }
      try {
        KeyVersion kv = registry.newBuilder(kvData.getType())
            .withData(kvData, protoRegistry).build();
        keyVersions.add(kv);
      } catch (InvalidProtocolBufferException ex) {
        // Throw proto parsing exceptions immediately
        throw new InvalidKeyDataException(
View Full Code Here

Examples of com.shop.cache.api.commands.SCCommand.newBuilder()

    {
      command = null;
    }
    if ( command != null )
    {
      SCDataBuilder    builder = command.newBuilder();
      for ( SCDataBuilderTypeAndCount tc : command.getTypesAndCounts() )
      {
        switch ( tc.type )
        {
          case FIXED_SIZE_VALUE_SET:
View Full Code Here

Examples of io.fabric8.api.ContainerProvider.newBuilder()

            String type = null;
            String parent = fabricService.getCurrentContainerName();
            String jvmOpts = dto.getJvmOpts();

            CreateContainerBasicOptions.Builder builder = containerProvider.newBuilder();

            builder = (CreateContainerBasicOptions.Builder) builder
                    .name(container)
                    .parent(parent)
                    .number(dto.requiredInstances())
View Full Code Here

Examples of org.apache.aurora.gen.JobUpdateSettings.newBuilder()

              "updateOnlyTheseInstances contains instances irrelevant to the update: "
                  + invalidScope);
        }

        JobUpdateInstructions instructions = new JobUpdateInstructions()
            .setSettings(settings.newBuilder())
            .setInitialState(buildInitialState(diff.getReplacedInstances()));
        if (!diff.getReplacementInstances().isEmpty()) {
          instructions.setDesiredState(
              new InstanceTaskConfig()
                  .setTask(request.getTaskConfig().newBuilder())
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.entities.IHostAttributes.newBuilder()

    Snapshot expected = new Snapshot()
        .setTimestamp(NOW)
        .setTasks(IScheduledTask.toBuildersSet(tasks))
        .setQuotaConfigurations(quotas)
        .setHostAttributes(ImmutableSet.of(attribute.newBuilder()))
        .setJobs(ImmutableSet.of(job))
        .setSchedulerMetadata(metadata)
        .setLocks(ILock.toBuildersSet(ImmutableSet.of(lock)));

    assertEquals(expected, snapshotStore.createSnapshot());
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.entities.IJobConfiguration.newBuilder()

      @Override
      protected void setupExpectations() throws Exception {
        storageUtil.expectWriteOperation();
        storageUtil.jobStore.saveAcceptedJob(managerId, jobConfig);
        streamMatcher.expectTransaction(
            Op.saveAcceptedJob(new SaveAcceptedJob(managerId, jobConfig.newBuilder())))
            .andReturn(position);
      }

      @Override
      protected void performMutations(MutableStoreProvider storeProvider) {
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.entities.IJobConfiguration.newBuilder()

  }

  @Test
  public void testJobStoreSameEnvironment() {
    IJobConfiguration templateConfig = makeJob("labrat");
    JobConfiguration prodBuilder = templateConfig.newBuilder();
    prodBuilder.getKey().setEnvironment("prod");
    IJobConfiguration prod = IJobConfiguration.build(prodBuilder);
    JobConfiguration stagingBuilder = templateConfig.newBuilder();
    stagingBuilder.getKey().setEnvironment("staging");
    IJobConfiguration staging = IJobConfiguration.build(stagingBuilder);
View Full Code Here

Examples of org.apache.aurora.scheduler.storage.entities.IJobConfiguration.newBuilder()

  @Test
  public void testPopulateJobConfig() throws Exception {
    IJobConfiguration job = IJobConfiguration.build(makeJob());
    control.replay();

    assertOkResponse(thrift.populateJobConfig(job.newBuilder()));
  }

  @Test
  public void testCreateJobNoLock() throws Exception {
    IJobConfiguration job = IJobConfiguration.build(makeJob());
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.