ContainerContext function ( ContainerContext arg0 , ContainerContext arg1 ) { HashMap < String , LocalResource > loc0 = new HashMap < String , LocalResource > ( ) ; loc0 . putAll ( arg0 . getLocalResources ( ) ) ; loc0 . putAll ( arg1 . getLocalResources ( ) ) ; ContainerContext loc1 = new ContainerContext ( loc0 , arg0 . credentials , arg0 . environment , arg0 . javaOpts , arg1 . vertex ) ; return loc1 ; }
create a new containercontext to account for container re-use . on re-use , there is re-localization of additional localresources . also , a task from a different vertex could be run on the given container . only a merge of local resources is needed as : credentials are modified at run-time based on the task spec . the environment for a container can not be changed . a re-used container is always expected to have a super-set . javaopts have to be identical for re-use . vertex should be overridden to account for the new task being scheduled to run on this container context . concode_field_sep Map<String,String> environment concode_elem_sep String javaOpts concode_elem_sep Vertex vertex concode_elem_sep Credentials credentials concode_elem_sep Logger LOG concode_elem_sep Map<String,LocalResource> localResources concode_field_sep boolean isExactMatch concode_elem_sep String getJavaOpts concode_elem_sep boolean localResourcesCompatible concode_elem_sep Credentials getCredentials concode_elem_sep Map<String,String> getEnvironment concode_elem_sep boolean isSuperSet concode_elem_sep boolean isSuperSet concode_elem_sep String toString concode_elem_sep Map<String,LocalResource> getLocalResources