public ServiceManagerImpl(final NodeEngineImpl nodeEngine) { this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(ServiceManagerImpl.class); }
public ProxyServiceImpl(NodeEngineImpl nodeEngine) { this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(ProxyService.class.getName()); }
public StatisticsAwareMetricsSet(ServiceManager serviceManager, NodeEngineImpl nodeEngine) { this.serviceManager = serviceManager; this.logger = nodeEngine.getLogger(getClass()); }
public DurableExecutorContainer(NodeEngineImpl nodeEngine, String name, int partitionId, int durability, TaskRingBuffer ringBuffer) { this.name = name; this.nodeEngine = nodeEngine; this.executionService = nodeEngine.getExecutionService(); this.partitionId = partitionId; this.logger = nodeEngine.getLogger(DurableExecutorContainer.class); this.durability = durability; this.ringBuffer = ringBuffer; }
private void logException(Exception e) { ILogger logger = nodeEngine.getLogger(AbstractExecutorServiceCancelMessageTask.class); logger.warning(e); }
public SlowOperationPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(SlowOperationPlugin.class)); this.operationService = nodeEngine.getOperationService(); this.periodMillis = getPeriodMillis(nodeEngine); }
@Override public void run() { for (PartitionAwareService service : nodeEngine.getServices(PartitionAwareService.class)) { try { service.onPartitionLost(event); } catch (Exception e) { final ILogger logger = nodeEngine.getLogger(InternalPartitionLostEventPublisher.class); logger.warning("Handling partitionLostEvent failed. Service: " + service.getClass() + " Event: " + event, e); } } }
@Override public void run() { for (PartitionAwareService service : nodeEngine.getServices(PartitionAwareService.class)) { try { service.onPartitionLost(event); } catch (Exception e) { final ILogger logger = nodeEngine.getLogger(InternalPartitionLostEventPublisher.class); logger.warning("Handling partitionLostEvent failed. Service: " + service.getClass() + " Event: " + event, e); } } }
public TransactionManagerServiceImpl(NodeEngineImpl nodeEngine) { this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(TransactionManagerService.class); this.finalizeExceptionHandler = logAllExceptions(logger, "Error while rolling-back tx!", Level.WARNING); nodeEngine.getMetricsRegistry().scanAndRegister(this, "transactions"); }
public TransactionManagerServiceImpl(NodeEngineImpl nodeEngine) { this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(TransactionManagerService.class); this.finalizeExceptionHandler = logAllExceptions(logger, "Error while rolling-back tx!", Level.WARNING); nodeEngine.getMetricsRegistry().scanAndRegister(this, "transactions"); }
public OverloadedConnectionsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OverloadedConnectionsPlugin.class)); this.nodeEngine = nodeEngine; this.serializationService = nodeEngine.getSerializationService(); this.defaultFormat.setMinimumFractionDigits(3); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); this.samples = props.getInteger(SAMPLES); }
public OverloadedConnectionsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OverloadedConnectionsPlugin.class)); this.nodeEngine = nodeEngine; this.serializationService = nodeEngine.getSerializationService(); this.defaultFormat.setMinimumFractionDigits(3); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); this.samples = props.getInteger(SAMPLES); }
@Override public void run() { final NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine(); final Node node = nodeEngine.getNode(); final ILogger logger = nodeEngine.getLogger("com.hazelcast.security"); logger.severe("Node could not join cluster. Authentication failed on master node! Node is going to shutdown now!"); node.shutdown(true); }
@Override public void run() { final NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine(); final Node node = nodeEngine.getNode(); final ILogger logger = nodeEngine.getLogger("com.hazelcast.security"); logger.severe("Node could not join cluster. Authentication failed on master node! Node is going to shutdown now!"); node.shutdown(true); }
@Override public void run() { NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine(); Node node = nodeEngine.getNode(); ILogger logger = nodeEngine.getLogger("com.hazelcast.cluster"); logger.severe("Node could not join cluster. A Configuration mismatch was detected: " + msg + " Node is going to shutdown now!"); node.shutdown(true); }
@Override public void writeResponse(ManagementCenterService mcs, JsonObject out) throws Exception { String resultString = "SUCCESS"; try { mcs.getHazelcastInstance().getCluster().shutdown(); } catch (Exception e) { ILogger logger = mcs.getHazelcastInstance().node.nodeEngine.getLogger(getClass()); logger.warning("Cluster can not be shutdown: ", e); resultString = e.getMessage(); } JsonObject result = new JsonObject().add("result", resultString); out.add("result", result); }
public PendingInvocationsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(PendingInvocationsPlugin.class)); InternalOperationService operationService = nodeEngine.getOperationService(); this.invocationRegistry = ((OperationServiceImpl) operationService).getInvocationRegistry(); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); }
@Override public void run() { final NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine(); final Node node = nodeEngine.getNode(); if (node.getClusterService().isJoined()) { throw new IllegalStateException("Node is already joined but received a termination message! " + "Reason: " + failReasonMsg); } final ILogger logger = nodeEngine.getLogger("com.hazelcast.security"); logger.severe("Node could not join cluster. Before join check failed node is going to shutdown now!"); logger.severe("Reason of failure for node join: " + failReasonMsg); node.shutdown(true); }
public OperationThreadSamplerPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OperationThreadSamplerPlugin.class)); this.nodeEngine = nodeEngine; InternalOperationService operationService = nodeEngine.getOperationService(); this.executor = ((OperationServiceImpl) operationService).getOperationExecutor(); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.samplerPeriodMillis = props.getMillis(SAMPLER_PERIOD_MILLIS); this.includeName = props.getBoolean(INCLUDE_NAME); }
public InvocationPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(PendingInvocationsPlugin.class)); InternalOperationService operationService = nodeEngine.getOperationService(); this.invocationRegistry = ((OperationServiceImpl) operationService).getInvocationRegistry(); HazelcastProperties props = nodeEngine.getProperties(); this.samplePeriodMillis = props.getMillis(SAMPLE_PERIOD_SECONDS); this.thresholdMillis = props.getMillis(SLOW_THRESHOLD_SECONDS); this.maxCount = props.getInteger(SLOW_MAX_COUNT); }