Refine search
@Override public void handleException(Throwable throwable) { if (throwable instanceof MemberLeftException) { if (LOGGER.isFinestEnabled()) { LOGGER.finest("Member left while waiting for futures...", throwable); } } } };
private static void logFailureToFindUnsafeDueTo(final Throwable reason) { if (LOGGER.isFinestEnabled()) { LOGGER.finest("Unable to get an instance of Unsafe. Unsafe-based operations will be unavailable", reason); } else { LOGGER.warning("Unable to get an instance of Unsafe. Unsafe-based operations will be unavailable"); } } }
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) { if (logger.isFinestEnabled()) { logger.finest("Node is shutting down; discarding the task: " + r); } } }
private static void logFailureToFindUnsafeDueTo(final Throwable reason) { if (LOGGER.isFinestEnabled()) { LOGGER.finest("Unable to get an instance of Unsafe. Unsafe-based operations will be unavailable", reason); } else { LOGGER.warning("Unable to get an instance of Unsafe. Unsafe-based operations will be unavailable"); } } }
private void waitMergeEnd(int mergedCount) { try { long timeoutMillis = Math.max(mergedCount * TIMEOUT_FACTOR, MINIMAL_TIMEOUT_MILLIS); if (!semaphore.tryAcquire(mergedCount, timeoutMillis, MILLISECONDS)) { logger.warning("Split-brain healing didn't finish within the timeout..."); } } catch (InterruptedException e) { logger.finest("Interrupted while waiting for split-brain healing..."); Thread.currentThread().interrupt(); } }
private boolean handleOperationTimeoutException() { if (logger.isFinestEnabled()) { logger.finest("MessageListener " + listener + " on topic: " + topicName + " timed out. " + "Continuing from last known sequence: " + sequence); } return true; }
@Override public void onFailure(Throwable t) { if (operationService.logger.isFinestEnabled()) { operationService.logger.finest(t); } else { operationService.logger.warning(t.getMessage()); } for (Integer partition : requestedPartitions) { retryPartition(partition); } } }
protected void handleExceptionWhileProcessingMetadata(Member member, Exception e) { if (e instanceof IllegalStateException) { // log at finest when // HazelcastInstanceNotActive, HazelcastClientNotActive or HazelcastClientOffline exception logger.finest(e); } else if (logger.isWarningEnabled()) { logger.warning(format("Can't fetch or extract invalidation meta-data of %s", member), e); } }
private static void logFinest(String message) { if (LOGGER.isFinestEnabled()) { LOGGER.finest(message); } }
private MigrationStrategy createMigrationStrategy() { if (Boolean.getBoolean(PROP_MONKEY_BALANCER)) { logger.warning("Using Monkey IO Balancer Strategy. This is for stress tests only. Do not user in production! " + "Disable by not setting the property '" + PROP_MONKEY_BALANCER + "' to true."); return new MonkeyMigrationStrategy(); } else { logger.finest("Using normal IO Balancer Strategy."); return new LoadMigrationStrategy(); } }
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) { if (logger.isFinestEnabled()) { logger.finest("Node is shutting down; discarding the task: " + r); } } }
private boolean handleOperationTimeoutException() { if (logger.isFinestEnabled()) { logger.finest("MessageListener " + listener + " on topic: " + topicName + " timed out. " + "Continuing from last known sequence: " + sequence); } return true; }
private void logException(Exception e) { if (logger.isFinestEnabled()) { logger.finest("While executing callable: " + callableToString, e); } }
public void run() { try { ensureInstance(); } catch (Exception e) { if (LOGGER.isFinestEnabled()) { LOGGER.finest("Cannot connect hazelcast server", e); } } } }, 2 * CLUSTER_CHECK_INTERVAL, CLUSTER_CHECK_INTERVAL, TimeUnit.SECONDS);
private static void logFinest(String message) { if (LOGGER.isFinestEnabled()) { LOGGER.finest(message); } }
private void logProcessingFailure(Throwable throwable) { if (logger.isFinestEnabled()) { if (parameters == null) { logger.finest(throwable.getMessage(), throwable); } else { logger.finest("While executing request: " + parameters + " -> " + throwable.getMessage(), throwable); } } }
private void logProcessingFailure(Throwable throwable) { if (logger.isFinestEnabled()) { if (parameters == null) { logger.finest(throwable.getMessage(), throwable); } else { logger.finest("While executing request: " + parameters + " -> " + throwable.getMessage(), throwable); } } }
public static void logFinest(ILogger logger, String template, Object arg1, Object arg2, Object arg3) { if (logger.isFinestEnabled()) { logger.finest(String.format(template, arg1, arg2, arg3)); } } }
public static void logFinest(ILogger logger, String template, Object arg1, Object arg2) { if (logger.isFinestEnabled()) { logger.finest(String.format(template, arg1, arg2)); } }