Examples of ManagementVertexID


Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   * Constructor for serialization/deserialization. Should not be called on other occasions.
   */
  public VertexAssignmentEvent() {
    super();

    this.managementVertexID = new ManagementVertexID();
  }
View Full Code Here

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

  @Override
  public void read(DataInput in) throws IOException {
    super.read(in);

    this.vertexID = new ManagementVertexID();
    this.vertexID.read(in);

    this.profilingInterval = in.readInt();
  }
View Full Code Here

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   * to be called directly.
   */
  public ExecutionStateChangeEvent() {
    super();

    this.managementVertexID = new ManagementVertexID();
    this.newExecutionState = ExecutionState.CREATED;
  }
View Full Code Here

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   *
   * @return the new management vertex ID
   */
  public ManagementVertexID toManagementVertexID() {

    final ManagementVertexID newID = new ManagementVertexID();
    newID.setID(this);

    return newID;
  }
View Full Code Here

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

     */
    @Override
    public void vertexAssignmentChanged(final ExecutionVertexID id, final AllocatedResource newAllocatedResource) {

      // Create a new vertex assignment event
      final ManagementVertexID managementVertexID = id.toManagementVertexID();
      final long timestamp = System.currentTimeMillis();

      final AbstractInstance instance = newAllocatedResource.getInstance();
      VertexAssignmentEvent event;
      if (instance == null) {
View Full Code Here

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   * Tests serialization/deserialization for {@link ExecutionStateChangeEvent}.
   */
  @Test
  public void testExecutionStateChangeEvent() {

    final ExecutionStateChangeEvent orig = new ExecutionStateChangeEvent(TIMESTAMP, new ManagementVertexID(),
      ExecutionState.READY);

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

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

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   * Tests serialization/deserialization for {@link VertexAssignmentEvent}.
   */
  @Test
  public void testVertexAssignmentEvent() {

    final VertexAssignmentEvent orig = new VertexAssignmentEvent(TIMESTAMP, new ManagementVertexID(), "test",
      "standard");
    final VertexAssignmentEvent copy = (VertexAssignmentEvent) ManagementTestUtils.createCopy(orig);

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

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   */
  @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

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   */
  @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

Examples of eu.stratosphere.nephele.managementgraph.ManagementVertexID

   */
  @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
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.