/** * Acks configuration URL. */ private void ackConfigUrl() { assert log != null; if (log.isInfoEnabled()) log.info("Config URL: " + System.getProperty(GG_CONFIG_URL, "n/a")); }
/** * 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()); } }
/** * 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")); }
/** * 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()) + ']'); }
log.info(NL + 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()); }
log.info("3-rd party licenses can be found at: " + cfg.getGridGainHome() + File.separatorChar + "libs" + File.separatorChar + "licenses");