public static Properties getHeaderAsProperties ( ) { Properties result = new Properties ( ) ; if ( customProps != null ) { result . putAll ( customProps ) ; } result . put ( ServerInstanceLogRecordList . HEADER_PROCESSID , processId ) ; result . put ( ServerInstanceLogRecordList . HEADER_SERVER_TIMEZONE , TimeZone . getDefault ( ) . getID ( ) ) ; result . put ( ServerInstanceLogRecordList . HEADER_SERVER_LOCALE_LANGUAGE , Locale . getDefault ( ) . getLanguage ( ) ) ; result . put ( ServerInstanceLogRecordList . HEADER_SERVER_LOCALE_COUNTRY , Locale . getDefault ( ) . getCountry ( ) ) ; addSystemPropertyIfPresent ( result , "java.fullversion" ) ; addSystemPropertyIfPresent ( result , "java.version" ) ; addSystemPropertyIfPresent ( result , "os.name" ) ; addSystemPropertyIfPresent ( result , "os.version" ) ; addSystemPropertyIfPresent ( result , "java.compiler" ) ; addSystemPropertyIfPresent ( result , "java.vm.name" ) ; // addSystemPropertyIfPresent(result, "was.install.root"); // WAS specific // addSystemPropertyIfPresent(result, "user.install.root"); // WAS specific addSystemPropertyIfPresent ( result , "java.home" ) ; // addSystemPropertyIfPresent(result, "ws.ext.dirs"); // WAS specific addSystemPropertyIfPresent ( result , "java.class.path" ) ; addSystemPropertyIfPresent ( result , "java.library.path" ) ; // Add property to know if server is configured to convert depricated // messages or not. // addSystemPropertyIfPresent(result, "com.ibm.websphere.logging.messageId.version");// WAS specific // Add CBE related values addSystemPropertyIfPresent ( result , "os.arch" ) ; // try { // addIfPresent(result, ServerInstanceLogRecordList.HEADER_HOSTNAME, // getHostName()); // } catch (Throwable t) { // // Ignore just don't put anything. // } addIfPresent ( result , ServerInstanceLogRecordList . HEADER_ISZOS , isZOS ? "Y" : null ) ; // addIfPresent(result, ServerInstanceLogRecordList.HEADER_ISSERVER, // RasHelper.isServer() ? "Y" : null); // addIfPresent(result, ServerInstanceLogRecordList.HEADER_ISTHINCLIENT, // ManagerAdmin.isThinClient() ? "Y" : null); // if (isZos) { // addIfPresent(result, ServerInstanceLogRecordList.HEADER_PROCESSNAME, // ZRasHelper.ProcessInfo.getPId()); // addIfPresent(result, // ServerInstanceLogRecordList.HEADER_ADDRESSSPACEID, // ZRasHelper.ProcessInfo.getAddressSpaceId()); // addIfPresent(result, ServerInstanceLogRecordList.HEADER_JOBNAME, // ZRasHelper.ProcessInfo.getJobName()); // addIfPresent(result, ServerInstanceLogRecordList.HEADER_SERVER_NAME, // ZRasHelper.ProcessInfo.getServer()); // addIfPresent(result, ServerInstanceLogRecordList.HEADER_JOBID, // ZRasHelper.ProcessInfo.getSystemJobId()); // addIfPresent(result, ServerInstanceLogRecordList.HEADER_SYSTEMNAME, // ZRasHelper.ProcessInfo.getSystemName()); // } return result ; }
Gets Header information as a Propeties instance .