All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brooklyn.entity.rebind.PersisterDeltaImpl Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
package brooklyn.entity.rebind;

import java.util.Collection;

import brooklyn.mementos.BrooklynMementoPersister.Delta;
import brooklyn.mementos.EntityMemento;
import brooklyn.mementos.LocationMemento;
import brooklyn.mementos.PolicyMemento;

import com.google.common.collect.Sets;

class PersisterDeltaImpl implements Delta {
    Collection locations = Sets.newLinkedHashSet();
    Collection entities = Sets.newLinkedHashSet();
    Collection policies = Sets.newLinkedHashSet();
    Collection  removedLocationIds = Sets.newLinkedHashSet();
    Collection  removedEntityIds = Sets.newLinkedHashSet();
    Collection  removedPolicyIds = Sets.newLinkedHashSet();
    
    @Override
    public Collection locations() {
        return locations;
    }

    @Override
    public Collection entities() {
        return entities;
    }

    @Override
    public Collection policies() {
        return policies;
    }

    @Override
    public Collection removedLocationIds() {
        return removedLocationIds;
    }

    @Override
    public Collection removedEntityIds() {
        return removedEntityIds;
    }
    
    @Override
    public Collection removedPolicyIds() {
        return removedPolicyIds;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy