/** */ private void logNodeLeft(UUID nodeId) { if (log.isInfoEnabled()) { log.info("Failed during partition counters delivery to remote node. " + "Node left cluster (will ignore) [futId=" + futId + ", node=" + nodeId + ']'); } }
/** * @throws IgniteCheckedException If failed. */ public void activate() throws IgniteCheckedException { long time = System.currentTimeMillis(); for (IgniteChangeGlobalStateSupport mgr : stateAwareMgrs) mgr.onActivate(kernalCtx); if (msgLog.isInfoEnabled()) msgLog.info("Components activation performed in " + (System.currentTimeMillis() - time) + " ms."); }
/** * Processes a response from a remote peer. Completes a mini future for that peer. * * @param nodeId Remote peer node id. */ public void onResult(UUID nodeId) { if (log.isInfoEnabled()) log.info("Remote peer acked partition counters delivery [futId=" + futId + ", node=" + nodeId + ']'); completeMini(nodeId); }
@Override public void doLog(IgniteLogger log, String msg, Throwable e, boolean quiet) { if (quiet) U.quietAndInfo(log, msg); else { if (log.isInfoEnabled()) log.info(msg); } } };
@Override public void applyx(IgniteInternalFuture<?> future) throws IgniteCheckedException { try { if (log != null && log.isInfoEnabled()) log.info("Server socket closed " + ch.getLocalAddress()); ch.close(); } catch (Exception ex) { U.error(log, "Fail close socket.", ex); throw new IgniteCheckedException(ex); } } });
/** {@inheritDoc} */ @Override public String reduce(List<ComputeJobResult> results) { if (log.isInfoEnabled()) log.info("Aggregating job [job=" + this + ", results=" + results + ']'); if (results.size() != SPLIT_COUNT) fail("Invalid results size."); return "interrupt-task-data"; } }
@Override public Serializable execute() { if (log.isInfoEnabled()) log.info("Computing job [job=" + this + ']'); return null; } });
/** {@inheritDoc} */ @Override public void stop() { stopJetty(); httpSrv = null; jettyHnd = null; if (log.isInfoEnabled()) log.info(stopInfo()); }
@Override public Serializable execute() { if (log.isInfoEnabled()) log.info("Executing grid job: " + this); return null; } }, node);
/** * Shows progress group of eviction. */ private void showProgress() { if (log.isInfoEnabled()) log.info("Group eviction in progress [grpName=" + grp.cacheOrGroupName()+ ", grpId=" + grp.groupId() + ", remainingPartsToEvict=" + (totalTasks.get() - taskInProgress) + ", partsEvictInProgress=" + taskInProgress + ", totalParts= " + grp.topology().localPartitions().size() + "]"); } }
/** {@inheritDoc} */ @Override public void stop() { if (srv != null) { ctx.ports().deregisterPorts(getClass()); srv.stop(); } if (log.isInfoEnabled()) log.info(stopInfo()); }
/** {@inheritDoc} */ @Override public void onReadyForReadWrite(ReadWriteMetastorage metastorage) throws IgniteCheckedException { this.metastorage = metastorage; if (compatibilityMode) { if (log.isInfoEnabled()) log.info("BaselineTopology won't be stored as this node is running in compatibility mode"); return; } writeBaselineTopology(globalState.baselineTopology(), null); bltHist.flushHistoryItems(metastorage); }
/** {@inheritDoc} */ @Override void onPreviousNodeFail() { if (log.isInfoEnabled()) log.info("Watched node failed, check if there are alive servers [locId=" + locNode.id() + ']'); rtState.zkClient.getChildrenAsync(zkPaths.aliveNodesDir, null, new CheckClientsStatusCallback(rtState)); } }
/** * Stops this router. */ @Override public void stop() { if (srv != null) srv.stop(); if (client != null) client.stop(true); unregisterMBean(); if (log.isInfoEnabled()) log.info("TCP router successfully stopped."); }
/** {@inheritDoc} */ @Override public void spiStop() throws IgniteSpiException { // Ack stop. if (log.isInfoEnabled()) log.info(stopInfo()); }
/** {@inheritDoc} */ @Override public void onReadyForRead(ReadOnlyMetastorage metastorage) throws IgniteCheckedException { BaselineTopology blt = (BaselineTopology) metastorage.read(METASTORE_CURR_BLT_KEY); if (blt != null) { if (log.isInfoEnabled()) U.log(log, "Restoring history for BaselineTopology[id=" + blt.id() + "]"); bltHist.restoreHistory(metastorage, blt.id()); } onStateRestored(blt); }
@Override public Serializable execute() { if (log.isInfoEnabled()) log.info("Executing job [index=" + argument(0) + ']'); return argument(0); } });
/** {@inheritDoc} */ @Override public Serializable execute() { if (log.isInfoEnabled()) log.info("Executing job [job=" + this + ", arg=" + argument(0) + ']'); if (argument(0) != null && argument(0) == FailType.EXECUTE) { // Throw exception. throw new RuntimeException("GridTaskFailedTestJob expected exception."); } return true; } }
/** {@inheritDoc} */ @Override public void spiStart(String igniteInstanceName) throws IgniteSpiException { // Start SPI start stopwatch. startStopwatch(); // Ack start. if (log.isInfoEnabled()) log.info(startInfo()); }
@Override public Object execute() { assert taskSes != null; if (log.isInfoEnabled()) { log.info("Computing job [job=" + this + ", arg=" + argument(0) + ']'); log.info("Set attribute 'testName'."); } taskSes.setAttribute("testName", "testVal"); return 1; } });