private void updateManagementGraph ( final JobID jobID , final VertexAssignmentEvent vertexAssignmentEvent ) { synchronized ( this . recentManagementGraphs ) { final ManagementGraph managementGraph = this . recentManagementGraphs . get ( jobID ) ; if ( managementGraph == null ) { return ; } final ManagementVertex vertex = managementGraph . getVertexByID ( vertexAssignmentEvent . getVertexID ( ) ) ; if ( vertex == null ) { return ; } vertex . setInstanceName ( vertexAssignmentEvent . getInstanceName ( ) ) ; vertex . setInstanceType ( vertexAssignmentEvent . getInstanceType ( ) ) ; } }
Applies changes in the vertex assignment to the stored management graph .