|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.dependency.hcat.EhcacheHCatDependencyCache
public class EhcacheHCatDependencyCache
Field Summary | |
---|---|
static String |
CONF_CACHE_NAME
|
Constructor Summary | |
---|---|
EhcacheHCatDependencyCache()
|
Method Summary | |
---|---|
void |
addMissingDependency(org.apache.oozie.util.HCatURI hcatURI,
String actionID)
Add a missing partition dependency and the actionID waiting on it |
Object |
clone()
|
void |
destroy()
Destroy the cache |
void |
dispose()
|
Collection<String> |
getAvailableDependencyURIs(String actionID)
Get a list of available dependency URIs for a actionID |
Collection<String> |
getWaitingActions(org.apache.oozie.util.HCatURI hcatURI)
Get the list of actionIDs waiting for a partition |
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the cache with configuration |
Collection<String> |
markDependencyAvailable(String server,
String db,
String table,
Map<String,String> partitions)
Mark a partition dependency as available |
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
|
void |
notifyElementPut(net.sf.ehcache.Ehcache arg0,
net.sf.ehcache.Element arg1)
|
void |
notifyElementRemoved(net.sf.ehcache.Ehcache arg0,
net.sf.ehcache.Element arg1)
|
void |
notifyElementUpdated(net.sf.ehcache.Ehcache arg0,
net.sf.ehcache.Element arg1)
|
void |
notifyRemoveAll(net.sf.ehcache.Ehcache arg0)
|
boolean |
removeAvailableDependencyURIs(String actionID,
Collection<String> dependencyURIs)
Remove the list of available dependency URIs for a actionID once the missing dependencies are processed. |
boolean |
removeMissingDependency(org.apache.oozie.util.HCatURI hcatURI,
String actionID)
Remove a missing partition dependency associated with a actionID |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String CONF_CACHE_NAME
Constructor Detail |
---|
public EhcacheHCatDependencyCache()
Method Detail |
---|
public void init(org.apache.hadoop.conf.Configuration conf)
HCatDependencyCache
init
in interface HCatDependencyCache
conf
- configurationpublic void addMissingDependency(org.apache.oozie.util.HCatURI hcatURI, String actionID)
HCatDependencyCache
addMissingDependency
in interface HCatDependencyCache
hcatURI
- dependency URIactionID
- ID of action which is waiting for the dependencypublic boolean removeMissingDependency(org.apache.oozie.util.HCatURI hcatURI, String actionID)
HCatDependencyCache
removeMissingDependency
in interface HCatDependencyCache
hcatURI
- dependency URIactionID
- ID of action which is waiting for the dependency
public Collection<String> getWaitingActions(org.apache.oozie.util.HCatURI hcatURI)
HCatDependencyCache
getWaitingActions
in interface HCatDependencyCache
hcatURI
- dependency URI
public Collection<String> markDependencyAvailable(String server, String db, String table, Map<String,String> partitions)
HCatDependencyCache
markDependencyAvailable
in interface HCatDependencyCache
server
- host:port of the serverdb
- name of the databasetable
- name of the tablepartitions
- list of available partitions
public Collection<String> getAvailableDependencyURIs(String actionID)
HCatDependencyCache
getAvailableDependencyURIs
in interface HCatDependencyCache
actionID
- action id
public boolean removeAvailableDependencyURIs(String actionID, Collection<String> dependencyURIs)
HCatDependencyCache
removeAvailableDependencyURIs
in interface HCatDependencyCache
actionID
- action iddependencyURIs
- set of dependency URIs
public void destroy()
HCatDependencyCache
destroy
in interface HCatDependencyCache
public Object clone() throws CloneNotSupportedException
clone
in interface net.sf.ehcache.event.CacheEventListener
clone
in class Object
CloneNotSupportedException
public void dispose()
dispose
in interface net.sf.ehcache.event.CacheEventListener
public void notifyElementExpired(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
notifyElementExpired
in interface net.sf.ehcache.event.CacheEventListener
public void notifyElementPut(net.sf.ehcache.Ehcache arg0, net.sf.ehcache.Element arg1) throws net.sf.ehcache.CacheException
notifyElementPut
in interface net.sf.ehcache.event.CacheEventListener
net.sf.ehcache.CacheException
public void notifyElementRemoved(net.sf.ehcache.Ehcache arg0, net.sf.ehcache.Element arg1) throws net.sf.ehcache.CacheException
notifyElementRemoved
in interface net.sf.ehcache.event.CacheEventListener
net.sf.ehcache.CacheException
public void notifyElementUpdated(net.sf.ehcache.Ehcache arg0, net.sf.ehcache.Element arg1) throws net.sf.ehcache.CacheException
notifyElementUpdated
in interface net.sf.ehcache.event.CacheEventListener
net.sf.ehcache.CacheException
public void notifyRemoveAll(net.sf.ehcache.Ehcache arg0)
notifyRemoveAll
in interface net.sf.ehcache.event.CacheEventListener
public void notifyElementEvicted(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
notifyElementEvicted
in interface net.sf.ehcache.event.CacheEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |