public TaskDeploymentDescriptor constructDeploymentDescriptor ( ) { final SerializableArrayList < GateDeploymentDescriptor > ogd = new SerializableArrayList < GateDeploymentDescriptor > ( this . outputGates . length ) ; for ( int i = 0 ; i < this . outputGates . length ; ++ i ) { final ExecutionGate eg = this . outputGates [ i ] ; final List < ChannelDeploymentDescriptor > cdd = new ArrayList < ChannelDeploymentDescriptor > ( eg . getNumberOfEdges ( ) ) ; final int numberOfOutputChannels = eg . getNumberOfEdges ( ) ; for ( int j = 0 ; j < numberOfOutputChannels ; ++ j ) { final ExecutionEdge ee = eg . getEdge ( j ) ; cdd . add ( new ChannelDeploymentDescriptor ( ee . getOutputChannelID ( ) , ee . getInputChannelID ( ) ) ) ; } ogd . add ( new GateDeploymentDescriptor ( eg . getGateID ( ) , eg . getChannelType ( ) , cdd ) ) ; } final SerializableArrayList < GateDeploymentDescriptor > igd = new SerializableArrayList < GateDeploymentDescriptor > ( this . inputGates . length ) ; for ( int i = 0 ; i < this . inputGates . length ; ++ i ) { final ExecutionGate eg = this . inputGates [ i ] ; final List < ChannelDeploymentDescriptor > cdd = new ArrayList < ChannelDeploymentDescriptor > ( eg . getNumberOfEdges ( ) ) ; final int numberOfInputChannels = eg . getNumberOfEdges ( ) ; for ( int j = 0 ; j < numberOfInputChannels ; ++ j ) { final ExecutionEdge ee = eg . getEdge ( j ) ; cdd . add ( new ChannelDeploymentDescriptor ( ee . getOutputChannelID ( ) , ee . getInputChannelID ( ) ) ) ; } igd . add ( new GateDeploymentDescriptor ( eg . getGateID ( ) , eg . getChannelType ( ) , cdd ) ) ; } final TaskDeploymentDescriptor tdd = new TaskDeploymentDescriptor ( this . executionGraph . getJobID ( ) , this . vertexID , this . groupVertex . getName ( ) , this . indexInVertexGroup , this . groupVertex . getCurrentNumberOfGroupMembers ( ) , this . executionGraph . getJobConfiguration ( ) , this . groupVertex . getConfiguration ( ) , this . groupVertex . getInvokableClass ( ) , ogd , igd ) ; return tdd ; }
Constructs a new task deployment descriptor for this vertex .