PNCounterProxy(String name, NodeEngine nodeEngine, PNCounterService service) { super(nodeEngine, service); this.name = name; this.logger = nodeEngine.getLogger(PNCounterProxy.class); }
public ScheduledExecutorMemberBin(NodeEngine nodeEngine) { super(nodeEngine); this.logger = nodeEngine.getLogger(getClass()); this.nodeEngine = nodeEngine; }
ScheduledExecutorPartition(NodeEngine nodeEngine, int partitionId) { super(nodeEngine); this.logger = nodeEngine.getLogger(getClass()); this.partitionId = partitionId; }
CRDTReplicationTask(NodeEngine nodeEngine, int maxTargets, CRDTReplicationMigrationService replicationMigrationService) { this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(getClass()); this.maxTargets = maxTargets; this.replicationMigrationService = replicationMigrationService; }
@Override public ILogger getLogger() { return nodeEngine.getLogger(getClass()); } }
@Override public void init(NodeEngine nodeEngine, Properties properties) { this.nodeEngine = nodeEngine; this.executionService = nodeEngine.getExecutionService(); this.logger = nodeEngine.getLogger(DistributedExecutorService.class); }
public JetMetricsService(NodeEngine nodeEngine) { this.nodeEngine = (NodeEngineImpl) nodeEngine; this.logger = nodeEngine.getLogger(getClass()); this.liveOperationRegistry = new LiveOperationRegistry(); }
@Override public void onFailure(Throwable t) { loadAllTasks.remove(future); getNodeEngine().getLogger(getClass()).warning("Problem in loadAll task", t); } });
Networking(NodeEngine nodeEngine, JobExecutionService jobExecutionService, int flowControlPeriodMs) { this.nodeEngine = (NodeEngineImpl) nodeEngine; this.logger = nodeEngine.getLogger(getClass()); this.jobExecutionService = jobExecutionService; this.flowControlSender = nodeEngine.getExecutionService().scheduleWithRepetition( this::broadcastFlowControlPacket, 0, flowControlPeriodMs, MILLISECONDS); }
protected CollectionService(NodeEngine nodeEngine) { this.nodeEngine = nodeEngine; this.serializationService = nodeEngine.getSerializationService(); this.partitionService = nodeEngine.getPartitionService(); this.logger = nodeEngine.getLogger(getClass()); }
DurableExecutorServiceProxy(NodeEngine nodeEngine, DistributedDurableExecutorService service, String name) { super(nodeEngine, service); this.name = name; this.logger = nodeEngine.getLogger(DurableExecutorServiceProxy.class); this.partitionCount = nodeEngine.getPartitionService().getPartitionCount(); }
protected AbstractContainerMerger(AbstractContainerCollector<C> collector, NodeEngine nodeEngine) { this.collector = collector; this.logger = nodeEngine.getLogger(AbstractContainerMerger.class); this.operationService = nodeEngine.getOperationService(); this.splitBrainMergePolicyProvider = nodeEngine.getSplitBrainMergePolicyProvider(); }
@Override public void run() { ILogger logger = getNodeEngine().getLogger(getClass()); JetMetricsService service = getService(); CompletableFuture<RingbufferSlice<Entry<Long, byte[]>>> future = service.readMetrics(offset); future.whenComplete(withTryCatch(logger, (slice, error) -> doSendResponse(error != null ? error : slice))); }
@Override public CacheMergePolicy createNew(String className) { try { return newInstance(nodeEngine.getConfigClassLoader(), className); } catch (Exception e) { nodeEngine.getLogger(getClass()).severe(e); throw new InvalidConfigurationException("Invalid cache merge policy: " + className, e); } } };
public ClientEndpointManagerImpl(NodeEngine nodeEngine) { this.logger = nodeEngine.getLogger(ClientEndpointManager.class); this.eventService = nodeEngine.getEventService(); MetricsRegistry metricsRegistry = ((NodeEngineImpl) nodeEngine).getMetricsRegistry(); metricsRegistry.scanAndRegister(this, "client.endpoint"); }
public Invalidator(String serviceName, IFunction<EventRegistration, Boolean> eventFilter, NodeEngine nodeEngine) { this.serviceName = serviceName; this.eventFilter = eventFilter; this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(getClass()); this.partitionService = nodeEngine.getPartitionService(); this.eventService = nodeEngine.getEventService(); this.partitionCount = nodeEngine.getPartitionService().getPartitionCount(); this.metaDataGenerator = new MetaDataGenerator(partitionCount); }
@Override public <T> void submitToMembers(Callable<T> task, Collection<Member> members, MultiExecutionCallback callback) { NodeEngine nodeEngine = getNodeEngine(); ExecutionCallbackAdapterFactory executionCallbackFactory = new ExecutionCallbackAdapterFactory( nodeEngine.getLogger(ExecutionCallbackAdapterFactory.class), members, callback); for (Member member : members) { submitToMember(task, member, executionCallbackFactory.<T>callbackFor(member)); } }
LocalRetryableExecution(NodeEngine nodeEngine, Operation op) { this.nodeEngine = nodeEngine; this.logger = nodeEngine.getLogger(LocalRetryableExecution.class); this.invocationMaxRetryCount = nodeEngine.getProperties().getInteger(GroupProperty.INVOCATION_MAX_RETRY_COUNT); this.invocationRetryPauseMillis = nodeEngine.getProperties().getMillis(GroupProperty.INVOCATION_RETRY_PAUSE); this.op = op; op.setOperationResponseHandler(this); }
public XATransaction(NodeEngine nodeEngine, Xid xid, String txOwnerUuid, int timeout, boolean originatedFromClient) { this.nodeEngine = nodeEngine; this.transactionLog = new TransactionLog(); this.timeoutMillis = SECONDS.toMillis(timeout); this.txnId = UuidUtil.newUnsecureUuidString(); this.xid = new SerializableXID(xid.getFormatId(), xid.getGlobalTransactionId(), xid.getBranchQualifier()); this.txOwnerUuid = txOwnerUuid == null ? nodeEngine.getLocalMember().getUuid() : txOwnerUuid; ILogger logger = nodeEngine.getLogger(getClass()); this.commitExceptionHandler = logAllExceptions(logger, "Error during commit!", Level.WARNING); this.rollbackExceptionHandler = logAllExceptions(logger, "Error during rollback!", Level.WARNING); this.originatedFromClient = originatedFromClient; }
private void prepareOperation(Operation op) { int partitionId = getPartitionId(); int replicaIndex = getReplicaIndex(); NodeEngine nodeEngine = getNodeEngine(); ILogger opLogger = nodeEngine.getLogger(op.getClass()); OperationResponseHandler responseHandler = createErrorLoggingResponseHandler(opLogger); op.setNodeEngine(nodeEngine).setPartitionId(partitionId) .setReplicaIndex(replicaIndex).setOperationResponseHandler(responseHandler); }