test_class.declarator: LOG = Logger.getLogger(ConfigurationStoreTest.class)
test_class.modifier: private static
test_class.original_string: private static Logger LOG = Logger.getLogger(ConfigurationStoreTest.class);
test_class.type: Logger
test_class.var_name: LOG
test_class.declarator: store = ConfigurationStore.get()
test_class.modifier: private
test_class.original_string: private ConfigurationStore store = ConfigurationStore.get();
test_class.type: ConfigurationStore
test_class.var_name: store
test_class.file: common/src/test/java/org/apache/ivory/entity/store/ConfigurationStoreTest.java
test_class.identifier: ConfigurationStoreTest
test_case.body: @Test
    public void testRemove() throws Exception {
      Process process = new Process();
      process.setName("remove");
      store.publish(EntityType.PROCESS, process);
      Process p = store.get(EntityType.PROCESS, "remove");
      Assert.assertEquals(p, process);
      store.remove(EntityType.PROCESS, "remove");
      p = store.get(EntityType.PROCESS, "remove");
      Assert.assertNull(p);
    }
test_case.class_method_signature: ConfigurationStoreTest.testRemove()
test_case.full_signature: @Test public void testRemove()
test_case.identifier: testRemove
test_case.invocations: setName publish get assertEquals remove get assertNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRemove()
focal_class.declarator: LOG = Logger.getLogger(ConfigurationStore.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(ConfigurationStore.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: AUDIT = Logger.getLogger("AUDIT")
focal_class.modifier: private static final
focal_class.original_string: private static final Logger AUDIT = Logger.getLogger("AUDIT");
focal_class.type: Logger
focal_class.var_name: AUDIT
focal_class.declarator: UTF_8 = "UTF-8"
focal_class.modifier: private static final
focal_class.original_string: private static final String UTF_8 = "UTF-8";
focal_class.type: String
focal_class.var_name: UTF_8
focal_class.declarator: store = new ConfigurationStore()
focal_class.modifier: private static final
focal_class.original_string: private static final ConfigurationStore store = new ConfigurationStore();
focal_class.type: ConfigurationStore
focal_class.var_name: store
focal_class.declarator: listeners = new LinkedHashSet<ConfigurationChangeListener>()
focal_class.modifier: private
focal_class.original_string: private Set<ConfigurationChangeListener> listeners = new LinkedHashSet<ConfigurationChangeListener>();
focal_class.type: Set<ConfigurationChangeListener>
focal_class.var_name: listeners
focal_class.declarator: updatesInProgress = new ThreadLocal<Entity>()
focal_class.modifier: private
focal_class.original_string: private ThreadLocal<Entity> updatesInProgress = new ThreadLocal<Entity>();
focal_class.type: ThreadLocal<Entity>
focal_class.var_name: updatesInProgress
focal_class.declarator: dictionary = new HashMap<EntityType, ConcurrentHashMap<String, Entity>>()
focal_class.modifier: private final
focal_class.original_string: private final Map<EntityType, ConcurrentHashMap<String, Entity>> dictionary = new HashMap<EntityType, ConcurrentHashMap<String, Entity>>();
focal_class.type: Map<EntityType, ConcurrentHashMap<String, Entity>>
focal_class.var_name: dictionary
focal_class.declarator: fs
focal_class.modifier: private final
focal_class.original_string: private final FileSystem fs;
focal_class.type: FileSystem
focal_class.var_name: fs
focal_class.declarator: storePath
focal_class.modifier: private final
focal_class.original_string: private final Path storePath;
focal_class.type: Path
focal_class.var_name: storePath
focal_class.declarator: NULL = new Entity() {
          @Override
          public String getName() {
              return "NULL";
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final Entity NULL = new Entity() {
          @Override
          public String getName() {
              return "NULL";
          }
      };
focal_class.type: Entity
focal_class.var_name: NULL
focal_class.file: common/src/main/java/org/apache/ivory/entity/store/ConfigurationStore.java
focal_class.identifier: ConfigurationStore
focal_class.interfaces: implements IvoryService
focal_class.class_method_signature: ConfigurationStore.get()
focal_class.full_signature: public static ConfigurationStore get()
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ConfigurationStore
focal_class.signature: ConfigurationStore get()
focal_class.class_method_signature: ConfigurationStore.ConfigurationStore()
focal_class.full_signature: @SuppressWarnings("unchecked") private  ConfigurationStore()
focal_class.identifier: ConfigurationStore
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: ()
focal_class.signature:  ConfigurationStore()
focal_class.class_method_signature: ConfigurationStore.init()
focal_class.full_signature: @Override public void init()
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: ConfigurationStore.registerListener(ConfigurationChangeListener listener)
focal_class.full_signature: public void registerListener(ConfigurationChangeListener listener)
focal_class.identifier: registerListener
focal_class.modifiers: public
focal_class.parameters: (ConfigurationChangeListener listener)
focal_class.return: void
focal_class.signature: void registerListener(ConfigurationChangeListener listener)
focal_class.class_method_signature: ConfigurationStore.publish(EntityType type, Entity entity)
focal_class.full_signature: public synchronized void publish(EntityType type, Entity entity)
focal_class.identifier: publish
focal_class.modifiers: public synchronized
focal_class.parameters: (EntityType type, Entity entity)
focal_class.return: void
focal_class.signature: void publish(EntityType type, Entity entity)
focal_class.class_method_signature: ConfigurationStore.updateInternal(EntityType type, Entity entity)
focal_class.full_signature: private synchronized void updateInternal(EntityType type, Entity entity)
focal_class.identifier: updateInternal
focal_class.modifiers: private synchronized
focal_class.parameters: (EntityType type, Entity entity)
focal_class.return: void
focal_class.signature: void updateInternal(EntityType type, Entity entity)
focal_class.class_method_signature: ConfigurationStore.rollbackUpdate(EntityType type, Entity entity)
focal_class.full_signature: public synchronized void rollbackUpdate(EntityType type, Entity entity)
focal_class.identifier: rollbackUpdate
focal_class.modifiers: public synchronized
focal_class.parameters: (EntityType type, Entity entity)
focal_class.return: void
focal_class.signature: void rollbackUpdate(EntityType type, Entity entity)
focal_class.class_method_signature: ConfigurationStore.update(EntityType type, Entity entity)
focal_class.full_signature: public synchronized void update(EntityType type, Entity entity)
focal_class.identifier: update
focal_class.modifiers: public synchronized
focal_class.parameters: (EntityType type, Entity entity)
focal_class.return: void
focal_class.signature: void update(EntityType type, Entity entity)
focal_class.class_method_signature: ConfigurationStore.onAdd(Entity entity)
focal_class.full_signature: private void onAdd(Entity entity)
focal_class.identifier: onAdd
focal_class.modifiers: private
focal_class.parameters: (Entity entity)
focal_class.return: void
focal_class.signature: void onAdd(Entity entity)
focal_class.class_method_signature: ConfigurationStore.onChange(Entity oldEntity, Entity newEntity)
focal_class.full_signature: private void onChange(Entity oldEntity, Entity newEntity)
focal_class.identifier: onChange
focal_class.modifiers: private
focal_class.parameters: (Entity oldEntity, Entity newEntity)
focal_class.return: void
focal_class.signature: void onChange(Entity oldEntity, Entity newEntity)
focal_class.class_method_signature: ConfigurationStore.initiateUpdate(Entity entity)
focal_class.full_signature: public synchronized void initiateUpdate(Entity entity)
focal_class.identifier: initiateUpdate
focal_class.modifiers: public synchronized
focal_class.parameters: (Entity entity)
focal_class.return: void
focal_class.signature: void initiateUpdate(Entity entity)
focal_class.class_method_signature: ConfigurationStore.get(EntityType type, String name)
focal_class.full_signature: @SuppressWarnings("unchecked") public T get(EntityType type, String name)
focal_class.identifier: get
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (EntityType type, String name)
focal_class.return: T
focal_class.signature: T get(EntityType type, String name)
focal_class.class_method_signature: ConfigurationStore.getEntities(EntityType type)
focal_class.full_signature: public Collection<String> getEntities(EntityType type)
focal_class.identifier: getEntities
focal_class.modifiers: public
focal_class.parameters: (EntityType type)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getEntities(EntityType type)
focal_class.class_method_signature: ConfigurationStore.remove(EntityType type, String name)
focal_class.full_signature: public boolean remove(EntityType type, String name)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (EntityType type, String name)
focal_class.return: boolean
focal_class.signature: boolean remove(EntityType type, String name)
focal_class.class_method_signature: ConfigurationStore.onRemove(Entity entity)
focal_class.full_signature: private void onRemove(Entity entity)
focal_class.identifier: onRemove
focal_class.modifiers: private
focal_class.parameters: (Entity entity)
focal_class.return: void
focal_class.signature: void onRemove(Entity entity)
focal_class.class_method_signature: ConfigurationStore.search(EntityType type, String... keywords)
focal_class.full_signature: public Entity[] search(EntityType type, String... keywords)
focal_class.identifier: search
focal_class.modifiers: public
focal_class.parameters: (EntityType type, String... keywords)
focal_class.return: Entity[]
focal_class.signature: Entity[] search(EntityType type, String... keywords)
focal_class.class_method_signature: ConfigurationStore.persist(EntityType type, Entity entity)
focal_class.full_signature: private void persist(EntityType type, Entity entity)
focal_class.identifier: persist
focal_class.modifiers: private
focal_class.parameters: (EntityType type, Entity entity)
focal_class.return: void
focal_class.signature: void persist(EntityType type, Entity entity)
focal_class.class_method_signature: ConfigurationStore.archive(EntityType type, String name)
focal_class.full_signature: private void archive(EntityType type, String name)
focal_class.identifier: archive
focal_class.modifiers: private
focal_class.parameters: (EntityType type, String name)
focal_class.return: void
focal_class.signature: void archive(EntityType type, String name)
focal_class.class_method_signature: ConfigurationStore.restore(EntityType type, String name)
focal_class.full_signature: @SuppressWarnings("unchecked") private synchronized T restore(EntityType type, String name)
focal_class.identifier: restore
focal_class.modifiers: @SuppressWarnings("unchecked") private synchronized
focal_class.parameters: (EntityType type, String name)
focal_class.return: T
focal_class.signature: T restore(EntityType type, String name)
focal_class.class_method_signature: ConfigurationStore.cleanupUpdateInit()
focal_class.full_signature: public void cleanupUpdateInit()
focal_class.identifier: cleanupUpdateInit
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanupUpdateInit()
focal_class.class_method_signature: ConfigurationStore.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: ConfigurationStore.destroy()
focal_class.full_signature: @Override public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_method.body: public boolean remove(EntityType type, String name) throws IvoryException {
          Map<String, Entity> entityMap = dictionary.get(type);
          if (entityMap.containsKey(name)) {
              try {
                  archive(type, name);
                  onRemove(entityMap.remove(name));
              } catch (IOException e) {
                  throw new StoreAccessException(e);
              }
              AUDIT.info(type + " " + name + " is removed from config store");
              return true;
          }
          return false;
      }
focal_method.class_method_signature: ConfigurationStore.remove(EntityType type, String name)
focal_method.full_signature: public boolean remove(EntityType type, String name)
focal_method.identifier: remove
focal_method.invocations: get containsKey archive onRemove remove info
focal_method.modifiers: public
focal_method.parameters: (EntityType type, String name)
focal_method.return: boolean
focal_method.signature: boolean remove(EntityType type, String name)