Package org.apache.flink.runtime.executiongraph

Examples of org.apache.flink.runtime.executiongraph.ExecutionAttemptID


   * Default constructor for serialization/deserialization.
   */
  public TaskDeploymentDescriptor() {
    this.jobID = new JobID();
    this.vertexID = new JobVertexID();
    this.executionId = new ExecutionAttemptID();
    this.jobConfiguration = new Configuration();
    this.taskConfiguration = new Configuration();
    this.outputGates = Collections.emptyList();
    this.inputGates = Collections.emptyList();
    this.requiredJarFiles = new ArrayList<BlobKey>();
View Full Code Here


  @Test
  public void testSerialization() {
    try {
      final JobID jobID = new JobID();
      final JobVertexID vertexID = new JobVertexID();
      final ExecutionAttemptID execId = new ExecutionAttemptID();
      final String taskName = "task name";
      final int indexInSubtaskGroup = 0;
      final int currentNumberOfSubtasks = 1;
      final Configuration jobConfiguration = new Configuration();
      final Configuration taskConfiguration = new Configuration();
View Full Code Here

  @Test
  public void testEqualsHashCode() {
    try {
      final JobID jid = new JobID();
      final ExecutionAttemptID executionId = new ExecutionAttemptID();
      final ExecutionState state = ExecutionState.RUNNING;
      final Throwable error = new RuntimeException("some test error message");
     
      TaskExecutionState s1 = new TaskExecutionState(jid, executionId, state, error);
      TaskExecutionState s2 = new TaskExecutionState(jid, executionId, state, error);
View Full Code Here

 
  @Test
  public void testSerialization() {
    try {
      final JobID jid = new JobID();
      final ExecutionAttemptID executionId = new ExecutionAttemptID();
      final ExecutionState state = ExecutionState.DEPLOYING;
      final Throwable error = new IOException("fubar");
     
      TaskExecutionState original1 = new TaskExecutionState(jid, executionId, state, error);
      TaskExecutionState original2 = new TaskExecutionState(jid, executionId, state);
View Full Code Here

  @Test
  public void testTaskStates() {
    try {
      final JobID jid = new JobID();
      final JobVertexID vid = new JobVertexID();
      final ExecutionAttemptID eid = new ExecutionAttemptID();
     
      final TaskManager taskManager = mock(TaskManager.class);
      final RuntimeEnvironment env = mock(RuntimeEnvironment.class);
     
      Task task = new Task(jid, vid, 2, 7, eid, "TestTask", taskManager);
View Full Code Here

  @Test
  public void testTaskStartFinish() {
    try {
      final JobID jid = new JobID();
      final JobVertexID vid = new JobVertexID();
      final ExecutionAttemptID eid = new ExecutionAttemptID();
     
      final TaskManager taskManager = mock(TaskManager.class);
     
     
      final Task task = new Task(jid, vid, 2, 7, eid, "TestTask", taskManager);
View Full Code Here

  @Test
  public void testTaskFailesInRunning() {
    try {
      final JobID jid = new JobID();
      final JobVertexID vid = new JobVertexID();
      final ExecutionAttemptID eid = new ExecutionAttemptID();
     
      final TaskManager taskManager = mock(TaskManager.class);
     
      final Task task = new Task(jid, vid, 2, 7, eid, "TestTask", taskManager);
     
View Full Code Here

  @Test
  public void testTaskCanceledInRunning() {
    try {
      final JobID jid = new JobID();
      final JobVertexID vid = new JobVertexID();
      final ExecutionAttemptID eid = new ExecutionAttemptID();
     
      final TaskManager taskManager = mock(TaskManager.class);
     
      final Task task = new Task(jid, vid, 2, 7, eid, "TestTask", taskManager);
     
View Full Code Here

  @Test
  public void testTaskWithEnvironment() {
    try {
      final JobID jid = new JobID();
      final JobVertexID vid = new JobVertexID();
      final ExecutionAttemptID eid = new ExecutionAttemptID();
     
      final TaskManager taskManager = mock(TaskManager.class);
     
      TaskDeploymentDescriptor tdd = new TaskDeploymentDescriptor(jid, vid, eid, "TestTask", 2, 7,
          new Configuration(), new Configuration(), TestInvokableCorrect.class.getName(),
View Full Code Here

  @Test
  public void testTaskWithEnvironmentAndException() {
    try {
      final JobID jid = new JobID();
      final JobVertexID vid = new JobVertexID();
      final ExecutionAttemptID eid = new ExecutionAttemptID();
     
      final TaskManager taskManager = mock(TaskManager.class);
     
      TaskDeploymentDescriptor tdd = new TaskDeploymentDescriptor(jid, vid, eid, "TestTask", 2, 7,
          new Configuration(), new Configuration(), TestInvokableWithException.class.getName(),
View Full Code Here

TOP

Related Classes of org.apache.flink.runtime.executiongraph.ExecutionAttemptID

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.