MultiMapContainerSupport(String name, NodeEngine nodeEngine) { this.name = name; this.nodeEngine = nodeEngine; this.config = nodeEngine.getConfig().findMultiMapConfig(name); }
AtomicLongContainerCollector(NodeEngine nodeEngine, ConcurrentMap<String, AtomicLongContainer> containers) { super(nodeEngine, containers); this.config = nodeEngine.getConfig(); this.containerNames = createConcurrentHashMap(containers.size()); this.containerPolicies = createConcurrentHashMap(containers.size()); }
AtomicReferenceContainerCollector(NodeEngine nodeEngine, ConcurrentMap<String, AtomicReferenceContainer> containers) { super(nodeEngine, containers); this.config = nodeEngine.getConfig(); this.containerNames = createConcurrentHashMap(containers.size()); this.containerPolicies = createConcurrentHashMap(containers.size()); }
AtomicReferenceContainerCollector(NodeEngine nodeEngine, ConcurrentMap<String, AtomicReferenceContainer> containers) { super(nodeEngine, containers); this.config = nodeEngine.getConfig(); this.containerNames = createConcurrentHashMap(containers.size()); this.containerPolicies = createConcurrentHashMap(containers.size()); }
@Override public DistributedObject createDistributedObject(String objectName) { ReliableTopicConfig topicConfig = nodeEngine.getConfig().findReliableTopicConfig(objectName); return new ReliableTopicProxy(objectName, nodeEngine, this, topicConfig); }
@Override public Object createNew(String name) { LockConfig lockConfig = nodeEngine.getConfig().findLockConfig(name); String quorumName = lockConfig.getQuorumName(); return quorumName == null ? NULL_OBJECT : quorumName; } };
@Override public Object createNew(String name) { ExecutorConfig executorConfig = nodeEngine.getConfig().findExecutorConfig(name); String quorumName = executorConfig.getQuorumName(); return quorumName == null ? NULL_OBJECT : quorumName; } };
@Override public Object createNew(String name) { final PNCounterConfig counterConfig = nodeEngine.getConfig().findPNCounterConfig(name); final String quorumName = counterConfig.getQuorumName(); return quorumName == null ? Memoizer.NULL_OBJECT : quorumName; } });
@Override public Object createNew(String name) { ListConfig lockConfig = nodeEngine.getConfig().findListConfig(name); String quorumName = lockConfig.getQuorumName(); return quorumName == null ? NULL_OBJECT : quorumName; } };
public ClusterWideConfigurationService(NodeEngine nodeEngine, DynamicConfigListener dynamicConfigListener) { this.nodeEngine = nodeEngine; this.listener = dynamicConfigListener; this.configPatternMatcher = nodeEngine.getConfig().getConfigPatternMatcher(); this.logger = nodeEngine.getLogger(ClusterWideConfigurationService.class); }
@Override public Object createNew(String name) { MultiMapConfig multiMapConfig = nodeEngine.getConfig().findMultiMapConfig(name); String quorumName = multiMapConfig.getQuorumName(); return quorumName == null ? NULL_OBJECT : quorumName; } };
@Override public Object createNew(String name) { ExecutorConfig executorConfig = nodeEngine.getConfig().findExecutorConfig(name); String quorumName = executorConfig.getQuorumName(); return quorumName == null ? NULL_OBJECT : quorumName; } };
@Override public Object createNew(String name) { ListConfig lockConfig = nodeEngine.getConfig().findListConfig(name); String quorumName = lockConfig.getQuorumName(); return quorumName == null ? NULL_OBJECT : quorumName; } };
private boolean hasPooledMemoryAllocator() { NodeEngine nodeEngine = mapServiceContext.getNodeEngine(); NativeMemoryConfig nativeMemoryConfig = nodeEngine.getConfig().getNativeMemoryConfig(); return nativeMemoryConfig != null && nativeMemoryConfig.getAllocatorType() == POOLED; }
TransactionalQueueProxySupport(NodeEngine nodeEngine, QueueService service, String name, Transaction tx) { super(nodeEngine, service, tx); this.name = name; partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); config = nodeEngine.getConfig().findQueueConfig(name); }
@Override public DistributedObject createDistributedObject(String name) { ScheduledExecutorConfig executorConfig = nodeEngine.getConfig().findScheduledExecutorConfig(name); checkScheduledExecutorConfig(executorConfig, nodeEngine.getSplitBrainMergePolicyProvider()); return new ScheduledExecutorServiceProxy(name, nodeEngine, this); }
@Override public CardinalityEstimatorContainer createNew(String name) { CardinalityEstimatorConfig config = nodeEngine.getConfig().findCardinalityEstimatorConfig(name); return new CardinalityEstimatorContainer(config.getBackupCount(), config.getAsyncBackupCount()); } };
@Override public QueueProxyImpl createDistributedObject(String objectId) { QueueConfig queueConfig = nodeEngine.getConfig().findQueueConfig(objectId); checkQueueConfig(queueConfig, nodeEngine.getSplitBrainMergePolicyProvider()); return new QueueProxyImpl(objectId, this, nodeEngine, queueConfig); }
@Override public ScheduledExecutorContainer createNew(String name) { if (logger.isFinestEnabled()) { logger.finest("[Partition:" + partitionId + "]Create new scheduled executor container with name:" + name); } ScheduledExecutorConfig config = nodeEngine.getConfig().findScheduledExecutorConfig(name); return new ScheduledExecutorContainer(name, partitionId, nodeEngine, config.getDurability(), config.getCapacity()); } };
@Override public SemaphoreContainer createNew(String name) { SemaphoreConfig config = nodeEngine.getConfig().findSemaphoreConfig(name); IPartitionService partitionService = nodeEngine.getPartitionService(); int partitionId = partitionService.getPartitionId(getPartitionKey(name)); return new SemaphoreContainer(partitionId, new SemaphoreConfig(config)); } };