test_class.file: flink-runtime/src/test/java/org/apache/flink/runtime/util/EnvironmentInformationTest.java
test_class.identifier: EnvironmentInformationTest
test_case.body: @Test
  	public void testLogEnvironmentInformation() {
  		try {
  			Logger mockLogger = Mockito.mock(Logger.class);
  			EnvironmentInformation.logEnvironmentInfo(mockLogger, "test", new String[0]);
  			EnvironmentInformation.logEnvironmentInfo(mockLogger, "test", null);
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  			fail(e.getMessage());
  		}
  	}
test_case.class_method_signature: EnvironmentInformationTest.testLogEnvironmentInformation()
test_case.full_signature: @Test public void testLogEnvironmentInformation()
test_case.identifier: testLogEnvironmentInformation
test_case.invocations: mock logEnvironmentInfo logEnvironmentInfo printStackTrace fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLogEnvironmentInformation()
focal_class.declarator: LOG = LoggerFactory.getLogger(EnvironmentInformation.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(EnvironmentInformation.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: UNKNOWN = "<unknown>"
focal_class.modifier: public static final
focal_class.original_string: public static final String UNKNOWN = "<unknown>";
focal_class.type: String
focal_class.var_name: UNKNOWN
focal_class.file: flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java
focal_class.identifier: EnvironmentInformation
focal_class.class_method_signature: EnvironmentInformation.getVersion()
focal_class.full_signature: public static String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: EnvironmentInformation.getRevisionInformation()
focal_class.full_signature: public static RevisionInformation getRevisionInformation()
focal_class.identifier: getRevisionInformation
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: RevisionInformation
focal_class.signature: RevisionInformation getRevisionInformation()
focal_class.class_method_signature: EnvironmentInformation.getUserRunning()
focal_class.full_signature: public static String getUserRunning()
focal_class.identifier: getUserRunning
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUserRunning()
focal_class.class_method_signature: EnvironmentInformation.getMaxJvmHeapMemory()
focal_class.full_signature: public static long getMaxJvmHeapMemory()
focal_class.identifier: getMaxJvmHeapMemory
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getMaxJvmHeapMemory()
focal_class.class_method_signature: EnvironmentInformation.getSizeOfFreeHeapMemoryWithDefrag()
focal_class.full_signature: public static long getSizeOfFreeHeapMemoryWithDefrag()
focal_class.identifier: getSizeOfFreeHeapMemoryWithDefrag
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSizeOfFreeHeapMemoryWithDefrag()
focal_class.class_method_signature: EnvironmentInformation.getSizeOfFreeHeapMemory()
focal_class.full_signature: public static long getSizeOfFreeHeapMemory()
focal_class.identifier: getSizeOfFreeHeapMemory
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSizeOfFreeHeapMemory()
focal_class.class_method_signature: EnvironmentInformation.getJvmVersion()
focal_class.full_signature: public static String getJvmVersion()
focal_class.identifier: getJvmVersion
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJvmVersion()
focal_class.class_method_signature: EnvironmentInformation.getJvmStartupOptions()
focal_class.full_signature: public static String getJvmStartupOptions()
focal_class.identifier: getJvmStartupOptions
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJvmStartupOptions()
focal_class.class_method_signature: EnvironmentInformation.getJvmStartupOptionsArray()
focal_class.full_signature: public static String[] getJvmStartupOptionsArray()
focal_class.identifier: getJvmStartupOptionsArray
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getJvmStartupOptionsArray()
focal_class.class_method_signature: EnvironmentInformation.getTemporaryFileDirectory()
focal_class.full_signature: public static String getTemporaryFileDirectory()
focal_class.identifier: getTemporaryFileDirectory
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTemporaryFileDirectory()
focal_class.class_method_signature: EnvironmentInformation.getOpenFileHandlesLimit()
focal_class.full_signature: public static long getOpenFileHandlesLimit()
focal_class.identifier: getOpenFileHandlesLimit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getOpenFileHandlesLimit()
focal_class.class_method_signature: EnvironmentInformation.logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs)
focal_class.full_signature: public static void logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs)
focal_class.identifier: logEnvironmentInfo
focal_class.modifiers: public static
focal_class.parameters: (Logger log, String componentName, String[] commandLineArgs)
focal_class.return: void
focal_class.signature: void logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs)
focal_class.class_method_signature: EnvironmentInformation.EnvironmentInformation()
focal_class.full_signature: private  EnvironmentInformation()
focal_class.identifier: EnvironmentInformation
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  EnvironmentInformation()
focal_method.body: public static void logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs) {
  		if (log.isInfoEnabled()) {
  			RevisionInformation rev = getRevisionInformation();
  			String version = getVersion();
  			
  			String user = getUserRunning();
  			
  			String jvmVersion = getJvmVersion();
  			String[] options = getJvmStartupOptionsArray();
  			
  			String javaHome = System.getenv("JAVA_HOME");
  			
  			long maxHeapMegabytes = getMaxJvmHeapMemory() >>> 20;
  			
  			log.info("--------------------------------------------------------------------------------");
  			log.info(" Starting " + componentName + " (Version: " + version + ", "
  					+ "Rev:" + rev.commitId + ", " + "Date:" + rev.commitDate + ")");
  			log.info(" Current user: " + user);
  			log.info(" JVM: " + jvmVersion);
  			log.info(" Maximum heap size: " + maxHeapMegabytes + " MiBytes");
  			log.info(" JAVA_HOME: " + (javaHome == null ? "(not set)" : javaHome));
  			log.info(" Hadoop version: " + VersionInfo.getVersion());
  
  			if (options.length == 0) {
  				log.info(" JVM Options: (none)");
  			}
  			else {
  				log.info(" JVM Options:");
  				for (String s: options) {
  					log.info("    " + s);
  				}
  			}
  
  			if (commandLineArgs == null || commandLineArgs.length == 0) {
  				log.info(" Program Arguments: (none)");
  			}
  			else {
  				log.info(" Program Arguments:");
  				for (String s: commandLineArgs) {
  					log.info("    " + s);
  				}
  			}
  
  			log.info(" Classpath: " + System.getProperty("java.class.path"));
  
  			log.info("--------------------------------------------------------------------------------");
  		}
  	}
focal_method.class_method_signature: EnvironmentInformation.logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs)
focal_method.full_signature: public static void logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs)
focal_method.identifier: logEnvironmentInfo
focal_method.invocations: isInfoEnabled getRevisionInformation getVersion getUserRunning getJvmVersion getJvmStartupOptionsArray getenv getMaxJvmHeapMemory info info info info info info info getVersion info info info info info info info getProperty info
focal_method.modifiers: public static
focal_method.parameters: (Logger log, String componentName, String[] commandLineArgs)
focal_method.return: void
focal_method.signature: void logEnvironmentInfo(Logger log, String componentName, String[] commandLineArgs)