@Override public ILogger getLogger(Class clazz) { return loggingService.getLogger(clazz); }
@Override public ILogger getLogger(Class clazz) { return loggingService.getLogger(clazz); }
public ILogger getLogger(Class clazz) { return loggingService.getLogger(clazz); }
static ILogger getLogger(String name) { return LOGGING_SERVICE.getLogger(name); }
public ILogger getLogger(String name) { return loggingService.getLogger(name); }
static ILogger getLogger(Class clazz) { return LOGGING_SERVICE.getLogger(clazz); }
@Override public ILogger getLogger(String name) { return loggingService.getLogger(name); }
@Override public ILogger getLogger(String name) { return loggingService.getLogger(name); }
public ILogger getLogger(String name) { return loggingService.getLogger(name); }
public ILogger getLogger(Class clazz) { return loggingService.getLogger(clazz); }
InvokeOnPartitions(OperationServiceImpl operationService, String serviceName, OperationFactory operationFactory, Map<Address, List<Integer>> memberPartitions) { this.operationService = operationService; this.serviceName = serviceName; this.operationFactory = operationFactory; this.memberPartitions = memberPartitions; this.logger = operationService.node.loggingService.getLogger(getClass()); int partitionCount = operationService.nodeEngine.getPartitionService().getPartitionCount(); // this is the total number of partitions for which we actually have operation int actualPartitionCount = 0; for (List<Integer> mp : memberPartitions.values()) { actualPartitionCount += mp.size(); } this.partitionResults = new AtomicReferenceArray<Object>(partitionCount); this.latch = new AtomicInteger(actualPartitionCount); this.future = new SimpleCompletableFuture(operationService.nodeEngine); }
public TimedMemberStateFactory(HazelcastInstanceImpl instance) { this.instance = instance; if (instance.node.getProperties().get("hazelcast.mc.max.visible.instance.count") != null) { instance.node.loggingService.getLogger(getClass()) .warning("hazelcast.mc.max.visible.instance.count property is removed."); } cacheServiceEnabled = isCacheServiceEnabled(); }
public AbstractJoiner(Node node) { this.node = node; this.logger = node.loggingService.getLogger(getClass()); this.config = node.config; this.clusterService = node.getClusterService(); this.clusterJoinManager = clusterService.getClusterJoinManager(); this.mergeNextRunDelayMs = node.getProperties().getMillis(GroupProperty.MERGE_NEXT_RUN_DELAY_SECONDS); }
public AbstractJoiner(Node node) { this.node = node; this.logger = node.loggingService.getLogger(getClass()); this.config = node.config; this.clusterService = node.getClusterService(); this.clusterJoinManager = clusterService.getClusterJoinManager(); this.mergeNextRunDelayMs = node.getProperties().getMillis(GroupProperty.MERGE_NEXT_RUN_DELAY_SECONDS); }
public TimedMemberStateFactory(HazelcastInstanceImpl instance) { this.instance = instance; if (instance.node.getProperties().get("hazelcast.mc.max.visible.instance.count") != null) { instance.node.loggingService.getLogger(getClass()) .warning("hazelcast.mc.max.visible.instance.count property is removed."); } cacheServiceEnabled = isCacheServiceEnabled(); }
private Diagnostics newDiagnostics() { Address address = node.getThisAddress(); String addressString = address.getHost().replace(":", "_") + "_" + address.getPort(); String name = "diagnostics-" + addressString + "-" + currentTimeMillis(); return new Diagnostics( name, loggingService.getLogger(Diagnostics.class), getHazelcastInstance().getName(), node.getProperties()); }
private Diagnostics newDiagnostics() { Address address = node.getThisAddress(); String addressString = address.getHost().replace(":", "_") + "_" + address.getPort(); String name = "diagnostics-" + addressString + "-" + currentTimeMillis(); return new Diagnostics( name, loggingService.getLogger(Diagnostics.class), getHazelcastInstance().getName(), node.getProperties()); }
private boolean authenticate(JoinRequest joinRequest) { if (!joiningMembers.containsKey(joinRequest.getAddress())) { try { secureLogin(joinRequest); } catch (Exception e) { ILogger securityLogger = node.loggingService.getLogger("com.hazelcast.security"); nodeEngine.getOperationService().send(new AuthenticationFailureOp(), joinRequest.getAddress()); securityLogger.severe(e); return false; } } return true; }
private boolean authenticate(JoinRequest joinRequest) { if (!joiningMembers.containsKey(joinRequest.getAddress())) { try { secureLogin(joinRequest); } catch (Exception e) { ILogger securityLogger = node.loggingService.getLogger("com.hazelcast.security"); nodeEngine.getOperationService().send(new AuthenticationFailureOp(), joinRequest.getAddress()); securityLogger.severe(e); return false; } } return true; }
private Networking createNetworking(Node node, NodeIOService ioService) { ChannelInitializer initializer = node.getNodeExtension().createChannelInitializer(ioService); LoggingServiceImpl loggingService = node.loggingService; ChannelErrorHandler errorHandler = new TcpIpConnectionChannelErrorHandler(loggingService.getLogger(TcpIpConnectionChannelErrorHandler.class)); HazelcastProperties props = node.getProperties(); return new NioNetworking( new NioNetworking.Context() .loggingService(loggingService) .metricsRegistry(node.nodeEngine.getMetricsRegistry()) .threadNamePrefix(node.hazelcastInstance.getName()) .errorHandler(errorHandler) .inputThreadCount(props.getInteger(IO_INPUT_THREAD_COUNT)) .outputThreadCount(props.getInteger(IO_OUTPUT_THREAD_COUNT)) .balancerIntervalSeconds(props.getInteger(IO_BALANCER_INTERVAL_SECONDS)) .channelInitializer(initializer)); } }