org.apache.falcon.entity.v0
Class EntityGraph

java.lang.Object
  extended by org.apache.falcon.entity.v0.EntityGraph
All Implemented Interfaces:
ConfigurationChangeListener

public final class EntityGraph
extends Object
implements ConfigurationChangeListener

An in-memory graph of entities and relationship among themselves.


Method Summary
static EntityGraph get()
           
 Set<Entity> getDependents(Entity entity)
           
 void onAdd(Entity entity, boolean ignoreFailure)
           
 void onChange(Entity oldEntity, Entity newEntity)
           
 void onRemove(Entity entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static EntityGraph get()

getDependents

public Set<Entity> getDependents(Entity entity)
                          throws FalconException
Throws:
FalconException

onAdd

public void onAdd(Entity entity,
                  boolean ignoreFailure)
           throws FalconException
Specified by:
onAdd in interface ConfigurationChangeListener
Throws:
FalconException

onRemove

public void onRemove(Entity entity)
              throws FalconException
Specified by:
onRemove in interface ConfigurationChangeListener
Throws:
FalconException

onChange

public void onChange(Entity oldEntity,
                     Entity newEntity)
              throws FalconException
Specified by:
onChange in interface ConfigurationChangeListener
Throws:
FalconException


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.