private int calculateSize(JobID jobId, ArchivedExecutionGraph serializableExecutionGraph) {
		final File archivedExecutionGraphFile = getExecutionGraphFile(jobId);

		if (archivedExecutionGraphFile.exists()) {
			return Math.toIntExact(archivedExecutionGraphFile.length());
		} else {
			LOG.debug("Could not find archived execution graph file for {}. Estimating the size instead.", jobId);
			return serializableExecutionGraph.getAllVertices().size() * 1000 +
				serializableExecutionGraph.getAccumulatorsSerialized().size() * 1000;
		}
	}
private int calculateSize ( JobID jobId , ArchivedExecutionGraph serializableExecutionGraph ) { final File archivedExecutionGraphFile = getExecutionGraphFile ( jobId ) ; if ( archivedExecutionGraphFile . exists ( ) ) { return Math . toIntExact ( archivedExecutionGraphFile . length ( ) ) ; } else { LOG . debug ( "Could not find archived execution graph file for {}. Estimating the size instead." , jobId ) ; return serializableExecutionGraph . getAllVertices ( ) . size ( ) * 1000 + serializableExecutionGraph . getAccumulatorsSerialized ( ) . size ( ) * 1000 ; } }
--------------------------------------------------------------