/** * Acks configuration URL. */ private void ackConfigUrl() { assert log != null; if (log.isInfoEnabled()) log.info("Config URL: " + System.getProperty(GG_CONFIG_URL, "n/a")); }
/** * Prints all user attributes in info mode. */ private void logNodeUserAttributes() { assert log != null; if (log.isInfoEnabled()) for (Map.Entry<?, ?> attr : cfg.getUserAttributes().entrySet()) log.info("Local node user attribute [" + attr.getKey() + '=' + attr.getValue() + ']'); }
/** * Acks daemon mode status. */ private void ackDaemon() { assert log != null; if (log.isInfoEnabled()) log.info("Daemon mode: " + (isDaemon() ? "on" : "off")); }
/** * Logs out OS information. */ private void ackOsInfo() { assert log != null; if (log.isInfoEnabled()) { log.info("OS: " + U.osString()); log.info("OS user: " + System.getProperty("user.name")); } }
/** * Prints out VM arguments and GRIDGAIN_HOME in info mode. * * @param rtBean Java runtime bean. */ private void ackVmArguments(RuntimeMXBean rtBean) { assert log != null; // Ack GRIDGAIN_HOME and VM arguments. if (log.isInfoEnabled()) { log.info("GRIDGAIN_HOME=" + cfg.getGridGainHome()); log.info("VM arguments: " + rtBean.getInputArguments()); } }
/** * Logs out language runtime. */ private void ackLanguageRuntime() { assert log != null; if (log.isInfoEnabled()) { log.info("Language runtime: " + getLanguage()); log.info("VM information: " + U.jdkString()); log.info("VM total memory: " + U.heapSize(2) + "GB"); } }
/** * Prints security status. * * @param ctx Kernal context. */ private void ackSecurity(GridKernalContext ctx) { assert log != null; if (log.isInfoEnabled()) log.info("Security status [authentication=" + onOff(ctx.security().enabled()) + ", " + "secure-session=" + onOff(ctx.secureSession().enabled()) + ']'); }
if (log.isInfoEnabled()) { log.info(NL + NL + ">>> _____ _ _______ _ " + NL +
/** * Prints out SMTP configuration. */ private void ackSmtpConfiguration() { assert log != null; String host = cfg.getSmtpHost(); boolean ssl = cfg.isSmtpSsl(); int port = cfg.getSmtpPort(); if (host == null) { U.warn(log, "SMTP is not configured - email notifications are off."); return; } String from = cfg.getSmtpFromEmail(); if (log.isQuiet()) U.quiet(false, "SMTP enabled [host=" + host + ":" + port + ", ssl=" + (ssl ? "on" : "off") + ", from=" + from + ']'); if (log.isInfoEnabled()) { String[] adminEmails = cfg.getAdminEmails(); log.info("SMTP enabled [host=" + host + ", port=" + port + ", ssl=" + ssl + ", from=" + from + ']'); log.info("Admin emails: " + (!isAdminEmailsSet() ? "N/A" : Arrays.toString(adminEmails))); } if (!isAdminEmailsSet()) U.warn(log, "Admin emails are not set - automatic email notifications are off."); }
/** * Acks remote management. */ private void ackRemoteManagement() { assert log != null; if (!log.isInfoEnabled()) return; SB sb = new SB(); sb.a("Remote Management ["); boolean on = isJmxRemoteEnabled(); sb.a("restart: ").a(onOff(isRestartEnabled())).a(", "); sb.a("REST: ").a(onOff(isRestEnabled())).a(", "); sb.a("JMX ("); sb.a("remote: ").a(onOff(on)); if (on) { sb.a(", "); sb.a("port: ").a(System.getProperty("com.sun.management.jmxremote.port", "<n/a>")).a(", "); sb.a("auth: ").a(onOff(Boolean.getBoolean("com.sun.management.jmxremote.authenticate"))).a(", "); // By default SSL is enabled, that's why additional check for null is needed. // See http://docs.oracle.com/javase/6/docs/technotes/guides/management/agent.html sb.a("ssl: ").a(onOff(Boolean.getBoolean("com.sun.management.jmxremote.ssl") || System.getProperty("com.sun.management.jmxremote.ssl") == null)); } sb.a(")"); sb.a(']'); log.info(sb.toString()); }
if (log.isInfoEnabled()) { log.info("");
if (log.isInfoEnabled()) { log.info("Non-loopback local IPs: " + (F.isEmpty(ips) ? "N/A" : ips)); log.info("Enabled local MACs: " + (F.isEmpty(macs) ? "N/A" : macs));
if (log.isInfoEnabled()) if (!errOnStop) { String ack = "GridGain ver. " + COMPOUND_VER + '#' + BUILD_TSTAMP_STR + "-sha1:" + REV_HASH +
if (log.isInfoEnabled() && cfg.getGridGainHome() != null) log.info("3-rd party licenses can be found at: " + cfg.getGridGainHome() + File.separatorChar + "libs" + File.separatorChar + "licenses");