Package org.discoproject.worker.protocol.encoder

Examples of org.discoproject.worker.protocol.encoder.OutputEncoder


    assertEquals("MSG 13 \"The message\"\n", encodedString);
  }

  @Test
  public void testOutputEncoder() {
    final OutputEncoder encoder = new OutputEncoder();
    final File jobHome = new File("dir/jobHome/");
    final File outputLocation = new File("dir/outputLocation/");
    final OutputType outputType = OutputType.disco;
    final String label = "thelabel";
    encoder.set(jobHome, outputLocation, outputType, label);
    final String encodedString = encoder.toString();
    assertEquals("OUTPUT 41 [\"dir/outputLocation\",\"disco\",\"thelabel\"]\n", encodedString);
  }
View Full Code Here


    this.map = null;
    this.reduce = null;

    this.workerAnnounceEncoder = new WorkerAnnounceEncoder();
    this.requestTaskEncoder = new RequestTaskEncoder();
    this.outputEncoder = new OutputEncoder();
    this.doneEncoder = new DoneEncoder();
    this.errorEncoder = new ErrorEncoder();
    this.fatalEncoder = new FatalEncoder();
    this.messageEncoder = new MessageEncoder();
  }
View Full Code Here

TOP

Related Classes of org.discoproject.worker.protocol.encoder.OutputEncoder

Copyright © 2018 www.massapicom. 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.