Examples of DiscoInput


Examples of org.discoproject.worker.protocol.decoder.types.DiscoInput

    inputDecoder.parse(bb, headerDecoder.parse(bb).getPayloadLength());

    assertTrue(inputDecoder.isDone());

    final List<DiscoInput> inputs = inputDecoder.getInputs();
    final DiscoInput input = inputs.get(0);
    assertEquals(0, input.getId());
    assertEquals(DiscoInputStatus.ok, input.getStatus());

    final List<DiscoInputReplica> replicas = input.getReplicas();
    final DiscoInputReplica replica = replicas.get(0);

    assertEquals(0, replica.getId());
    assertEquals("raw://eyJlbnRyeWV4aXRsZXZlbCI6WyJERUMiLDEuNV0sInFyMiI6WyJERUMiLDFdLCJxcjEiOlsiREVD", replica.getURI().toString());
    assertEquals(DiscoInputReplicaProtocol.raw, replica.getScheme());
View Full Code Here

Examples of org.discoproject.worker.protocol.decoder.types.DiscoInput

    inputDecoder.parse(bb, headerDecoder.parse(bb).getPayloadLength());

    assertTrue(inputDecoder.isDone());

    final List<DiscoInput> inputs = inputDecoder.getInputs();
    final DiscoInput input = inputs.get(0);
    assertEquals(0, input.getId());
    assertEquals(DiscoInputStatus.ok, input.getStatus());

    final List<DiscoInputReplica> replicas = input.getReplicas();
    final DiscoInputReplica replica = replicas.get(0);

    assertEquals(0, replica.getId());
    assertEquals("raw://eyJlbnRyeWV4aXRsZXZlbCI6WyJERUMiLDEuNV0sInFyMiI6WyJERUMiLDFdLCJxcjEiOlsiREVD", replica.getURI().toString());
    assertEquals(DiscoInputReplicaProtocol.raw, replica.getScheme());
View Full Code Here

Examples of org.discoproject.worker.protocol.decoder.types.DiscoInput

    final String statusString = JsonUtils.asString(INPUT_STATUS_INDEX, inputTuple);
    final DiscoInputStatus status = DiscoInputStatus.valueOf(statusString);
    final List<DiscoInputReplica> replicas = JsonDiscoInputReplicaDecoder.toReplicaList(JsonUtils.asArray(inputTuple
            .get(REPLICAS_INDEX)));

    return new DiscoInput(inputId, status, replicas);
  }
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.