|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.PartitionDependencyManagerService
public class PartitionDependencyManagerService
Module that functions like a caching service to maintain partition dependency mappings
| Field Summary | |
|---|---|
static String |
CACHE_MANAGER_IMPL
|
static String |
CONF_PREFIX
|
| Fields inherited from interface org.apache.oozie.service.Service |
|---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
| Constructor Summary | |
|---|---|
PartitionDependencyManagerService()
|
|
| Method Summary | |
|---|---|
void |
addMissingDependency(org.apache.oozie.util.HCatURI hcatURI,
String actionID)
Add a missing partition dependency and the actionID waiting on it |
void |
destroy()
Destroy the service. |
Collection<String> |
getAvailableDependencyURIs(String actionID)
Get a list of available dependency URIs for a actionID |
Class<? extends Service> |
getInterface()
Return the public interface of the service. |
Collection<String> |
getWaitingActions(org.apache.oozie.util.HCatURI hcatURI)
Get the list of actionIDs waiting for a partition |
void |
init(Services services)
Initialize the service. |
void |
partitionAvailable(String server,
String db,
String table,
Map<String,String> partitions)
Mark a partition dependency as available |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONF_PREFIX
public static final String CACHE_MANAGER_IMPL
| Constructor Detail |
|---|
public PartitionDependencyManagerService()
| Method Detail |
|---|
public void init(Services services)
throws ServiceException
ServiceService singleton at start up time.
init in interface Serviceservices - services singleton initializing the service.
ServiceException - thrown if the service could not initialize.public void destroy()
ServiceService singleton at shutdown time.
destroy in interface Servicepublic Class<? extends Service> getInterface()
Service
getInterface in interface Service
public void addMissingDependency(org.apache.oozie.util.HCatURI hcatURI,
String actionID)
hcatURI - dependency URIactionID - ID of action which is waiting for the dependency
public boolean removeMissingDependency(org.apache.oozie.util.HCatURI hcatURI,
String actionID)
hcatURI - dependency URIactionID - ID of action which is waiting for the dependency
public Collection<String> getWaitingActions(org.apache.oozie.util.HCatURI hcatURI)
hcatURI - dependency URI
public void partitionAvailable(String server,
String db,
String table,
Map<String,String> partitions)
server - host:port of the serverdb - name of the databasetable - name of the tablepartitions - list of available partitionspublic Collection<String> getAvailableDependencyURIs(String actionID)
actionID - action id
public boolean removeAvailableDependencyURIs(String actionID,
Collection<String> dependencyURIs)
actionID - action iddependencyURIs - set of dependency URIs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||