Package eu.stratosphere.nephele.jobgraph

Examples of eu.stratosphere.nephele.jobgraph.JobID


    File inputFile1 = null;
    File inputFile2 = null;
    File outputFile1 = null;
    File outputFile2 = null;
    JobID jobID = null;

    try {

      inputFile1 = ServerTestUtils.createInputFile(0);
      inputFile2 = ServerTestUtils.createInputFile(0);
View Full Code Here


    final String crossTaskName = "Self Cross Task";
    final String outputTaskName = "Self Cross Output";
    final int degreeOfParallelism = 4;
    File inputFile1 = null;
    File outputFile1 = null;
    JobID jobID = null;

    try {

      inputFile1 = ServerTestUtils.createInputFile(0);
      outputFile1 = new File(ServerTestUtils.getRandomFilename());
View Full Code Here

  public void testInstanceSharing() {

    final int degreeOfParallelism = 4;
    File inputFile1 = null;
    File outputFile1 = null;
    JobID jobID = null;

    try {

      inputFile1 = ServerTestUtils.createInputFile(0);
      outputFile1 = new File(ServerTestUtils.getRandomFilename());
View Full Code Here

   */
  @Test
  public void testAccounting() {
    // check whether the accounting of capacity works correctly
    final ClusterInstance host = createTestClusterInstance();
    final JobID jobID = new JobID();
    final int numComputeUnits = 8 / 8;
    final int numCores = 8 / 8;
    final int memorySize = 32 * 1024 / 8;
    final int diskCapacity = 200 / 8;
    final InstanceType type = InstanceTypeFactory.construct("dummy", numComputeUnits, numCores, memorySize,
View Full Code Here

  @Test
  public void testTermination() {
   
    // check whether the accounting of capacity works correctly if terminateAllInstances is called
    final ClusterInstance host = createTestClusterInstance();
    final JobID jobID = new JobID();
    final int numComputeUnits = 8 / 8;
    final int numCores = 8 / 8;
    final int memorySize = 32 * 1024 / 8;
    final int diskCapacity = 200 / 8;
    final InstanceType type = InstanceTypeFactory.construct("dummy", numComputeUnits, numCores, memorySize,
View Full Code Here

  @Test
  public void testInstanceSummaryProfilingEvent() {

    final InstanceSummaryProfilingEvent orig = new InstanceSummaryProfilingEvent(PROFILING_INTERVAL, IOWAIT_CPU,
      IDLE_CPU, USER_CPU, SYSTEM_CPU, HARD_IRQ_CPU, SOFT_IRQ_CPU, TOTAL_MEMORY, FREE_MEMORY, BUFFERED_MEMORY,
      CACHED_MEMORY, CACHED_SWAP_MEMORY, RECEIVED_BYTES, TRANSMITTED_BYTES, new JobID(), TIMESTAMP,
      PROFILING_TIMESTAMP);

    final InstanceSummaryProfilingEvent copy = (InstanceSummaryProfilingEvent) ManagementTestUtils.createCopy(orig);

    assertEquals(orig.getProfilingInterval(), copy.getProfilingInterval());
View Full Code Here

  @Test
  public void testSingleInstanceProfilingEvent() {

    final SingleInstanceProfilingEvent orig = new SingleInstanceProfilingEvent(PROFILING_INTERVAL, IOWAIT_CPU,
      IDLE_CPU, USER_CPU, SYSTEM_CPU, HARD_IRQ_CPU, SOFT_IRQ_CPU, TOTAL_MEMORY, FREE_MEMORY, BUFFERED_MEMORY,
      CACHED_MEMORY, CACHED_SWAP_MEMORY, RECEIVED_BYTES, TRANSMITTED_BYTES, new JobID(), TIMESTAMP,
      PROFILING_TIMESTAMP, INSTANCE_NAME);

    final SingleInstanceProfilingEvent copy = (SingleInstanceProfilingEvent) ManagementTestUtils.createCopy(orig);

    assertEquals(orig.getProfilingInterval(), copy.getProfilingInterval());
View Full Code Here

   */
  @Test
  public void testInputGateProfilingEvent() {

    final InputGateProfilingEvent orig = new InputGateProfilingEvent(GATE_INDEX, NO_RECORD_AVAILABLE_COUNTER,
      new ManagementVertexID(), PROFILING_INTERVAL, new JobID(), TIMESTAMP, PROFILING_TIMESTAMP);

    final InputGateProfilingEvent copy = (InputGateProfilingEvent) ManagementTestUtils.createCopy(orig);

    assertEquals(orig.getGateIndex(), copy.getGateIndex());
    assertEquals(orig.getNoRecordsAvailableCounter(), copy.getNoRecordsAvailableCounter());
View Full Code Here

   */
  @Test
  public void testOutputGateProfilingEvent() {

    final OutputGateProfilingEvent orig = new OutputGateProfilingEvent(GATE_INDEX, CHANNEL_CAPACITY_EXHAUSTED,
      new ManagementVertexID(), PROFILING_INTERVAL, new JobID(), TIMESTAMP, PROFILING_TIMESTAMP);

    final OutputGateProfilingEvent copy = (OutputGateProfilingEvent) ManagementTestUtils.createCopy(orig);

    assertEquals(orig.getGateIndex(), copy.getGateIndex());
    assertEquals(orig.getChannelCapacityExhausted(), copy.getChannelCapacityExhausted());
View Full Code Here

   */
  @Test
  public void testThreadProfilingEvent() {

    final ThreadProfilingEvent orig = new ThreadProfilingEvent(USER_TIME, SYSTEM_TIME, BLOCKED_TIME, WAITED_TIME,
      new ManagementVertexID(), PROFILING_INTERVAL, new JobID(), TIMESTAMP, PROFILING_TIMESTAMP);

    final ThreadProfilingEvent copy = (ThreadProfilingEvent) ManagementTestUtils.createCopy(orig);

    assertEquals(orig.getUserTime(), copy.getUserTime());
    assertEquals(orig.getSystemTime(), copy.getSystemTime());
View Full Code Here

TOP

Related Classes of eu.stratosphere.nephele.jobgraph.JobID

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.