Search in sources :

Example 1 with CollectionService

use of com.hazelcast.collection.impl.collection.CollectionService in project hazelcast by hazelcast.

the class CollectionReplicationOperation method run.

@Override
public void run() throws Exception {
    CollectionService service = getService();
    for (Map.Entry<String, CollectionContainer> entry : migrationData.entrySet()) {
        String name = entry.getKey();
        CollectionContainer container = entry.getValue();
        container.init(getNodeEngine());
        service.addContainer(name, container);
    }
}
Also used : CollectionService(com.hazelcast.collection.impl.collection.CollectionService) CollectionContainer(com.hazelcast.collection.impl.collection.CollectionContainer) Map(java.util.Map)

Aggregations

CollectionContainer (com.hazelcast.collection.impl.collection.CollectionContainer)1 CollectionService (com.hazelcast.collection.impl.collection.CollectionService)1 Map (java.util.Map)1