Refine search
@Override public void destroyDistributedObject(String objectName) { int partitionId = nodeEngine.getPartitionService().getPartitionId(objectName); Container container = containers[partitionId]; container.destroy(objectName); }
protected MyPriorityQueueServiceProxy(String name, NodeEngine nodeEngine, MyPriorityQueueService myPriorityQueueService) { super(nodeEngine, myPriorityQueueService); this.name = name; this.nodeEngine = nodeEngine; this.partitionId = nodeEngine.getPartitionService().getPartitionId(this.name); }
@Override public CounterProxy createDistributedObject(String objectName) { int partitionId = nodeEngine.getPartitionService().getPartitionId(objectName); Container container = containers[partitionId]; container.init(objectName); return new CounterProxy(objectName, nodeEngine, this); }
@Override public int getPartitionId(Object object) { assert object != null; if (object instanceof Data) { nodeEngine.getPartitionService().getPartitionId((Data) object); } return nodeEngine.getPartitionService().getPartitionId(object); }
public AtomicLongProxy(String name, NodeEngine nodeEngine, AtomicLongService service) { super(nodeEngine, service); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); }
@Override public DistributedObject createDistributedObject(String objectName) { int partitionId = nodeEngine.getPartitionService().getPartitionId(objectName); Container container = containers[partitionId]; container.init(objectName); return new CounterProxy(objectName, nodeEngine, this); }
@Override public DistributedObject createDistributedObject(String objectName) { int partitionId = nodeEngine.getPartitionService().getPartitionId(objectName); Container container = containers[partitionId]; container.init(objectName); return new CounterProxy(objectName, nodeEngine, this); }
@Override public void destroyDistributedObject(String objectName) { int partitionId = nodeEngine.getPartitionService().getPartitionId(objectName); Container container = containers[partitionId]; container.destroy(objectName); }
public CountDownLatchProxy(String name, NodeEngine nodeEngine) { super(nodeEngine, null); this.name = name; Data nameAsPartitionAwareData = getNameAsPartitionAwareData(); this.partitionId = nodeEngine.getPartitionService().getPartitionId(nameAsPartitionAwareData); }
private int getPartitionId(String name) { IPartitionService partitionService = nodeEngine.getPartitionService(); String partitionKey = getPartitionKey(name); return partitionService.getPartitionId(partitionKey); }
CardinalityEstimatorProxy(String name, NodeEngine nodeEngine, CardinalityEstimatorService service) { super(nodeEngine, service); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); }
public AtomicReferenceProxy(String name, NodeEngine nodeEngine, AtomicReferenceService service) { super(nodeEngine, service); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); }
public SemaphoreProxy(String name, SemaphoreService service, NodeEngine nodeEngine) { super(nodeEngine, service); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); }
@Override public void destroyDistributedObject(String objectName) { int partitionId = nodeEngine.getPartitionService().getPartitionId(objectName); Container container = containers[partitionId]; container.destroy(objectName); }
private int getPartitionId(String name) { IPartitionService partitionService = nodeEngine.getPartitionService(); String partitionKey = StringPartitioningStrategy.getPartitionKey(name); return partitionService.getPartitionId(partitionKey); }
protected AbstractCollectionProxyImpl(String name, NodeEngine nodeEngine, S service) { super(nodeEngine, service); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); }
public AtomicReferenceProxy(String name, NodeEngine nodeEngine, AtomicReferenceService service) { super(nodeEngine, service); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); }
private int getPartitionId(String name) { IPartitionService partitionService = nodeEngine.getPartitionService(); String partitionKey = getPartitionKey(name); return partitionService.getPartitionId(partitionKey); }
QueueProxySupport(final String name, final QueueService queueService, NodeEngine nodeEngine, QueueConfig config) { super(nodeEngine, queueService); this.name = name; this.partitionId = nodeEngine.getPartitionService().getPartitionId(getNameAsPartitionAwareData()); this.config = config; }
private <T> int getTaskPartitionId(Callable<T> task) { if (task instanceof PartitionAware) { Object partitionKey = ((PartitionAware) task).getPartitionKey(); if (partitionKey != null) { return getNodeEngine().getPartitionService().getPartitionId(partitionKey); } } return random.nextInt(partitionCount); }