Search in sources :

Example 1 with DurableExecutorPartitionContainer

use of com.hazelcast.durableexecutor.impl.DurableExecutorPartitionContainer in project hazelcast by hazelcast.

the class AbstractDurableExecutorOperation method getExecutorContainer.

public DurableExecutorContainer getExecutorContainer() {
    if (executorContainer == null) {
        DistributedDurableExecutorService service = getService();
        DurableExecutorPartitionContainer partitionContainer = service.getPartitionContainer(getPartitionId());
        executorContainer = partitionContainer.getOrCreateContainer(name);
    }
    return executorContainer;
}
Also used : DistributedDurableExecutorService(com.hazelcast.durableexecutor.impl.DistributedDurableExecutorService) DurableExecutorPartitionContainer(com.hazelcast.durableexecutor.impl.DurableExecutorPartitionContainer)

Example 2 with DurableExecutorPartitionContainer

use of com.hazelcast.durableexecutor.impl.DurableExecutorPartitionContainer in project hazelcast by hazelcast.

the class ReplicationOperation method run.

@Override
public void run() throws Exception {
    DistributedDurableExecutorService service = getService();
    DurableExecutorPartitionContainer partitionContainer = service.getPartitionContainer(getPartitionId());
    for (DurableHolder durableHolder : list) {
        partitionContainer.createExecutorContainer(durableHolder.name, durableHolder.ringBuffer);
    }
}
Also used : DistributedDurableExecutorService(com.hazelcast.durableexecutor.impl.DistributedDurableExecutorService) DurableExecutorPartitionContainer(com.hazelcast.durableexecutor.impl.DurableExecutorPartitionContainer)

Aggregations

DistributedDurableExecutorService (com.hazelcast.durableexecutor.impl.DistributedDurableExecutorService)2 DurableExecutorPartitionContainer (com.hazelcast.durableexecutor.impl.DurableExecutorPartitionContainer)2