|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.falcon.resource.AbstractEntityManager
public abstract class AbstractEntityManager
A base class for managing Entity operations.
Field Summary | |
---|---|
protected ConfigurationStore |
configStore
|
protected static int |
XML_DEBUG_LEN
|
Constructor Summary | |
---|---|
AbstractEntityManager()
|
Method Summary | |
---|---|
protected void |
audit(javax.servlet.http.HttpServletRequest request,
String entity,
String type,
String action)
|
protected void |
checkColo(String colo)
|
org.apache.falcon.resource.APIResult |
delete(javax.servlet.http.HttpServletRequest request,
String type,
String entity,
String colo)
Deletes a scheduled entity, a deleted entity is removed completely from execution pool. |
protected Entity |
deserializeEntity(javax.servlet.http.HttpServletRequest request,
EntityType entityType)
|
protected Set<String> |
getAllColos()
|
protected Set<String> |
getApplicableColos(String type,
Entity entity)
|
protected Set<String> |
getApplicableColos(String type,
String name)
|
protected Set<String> |
getColosFromExpression(String coloExpr,
String type,
String entity)
|
org.apache.falcon.resource.EntityList |
getDependencies(String type,
String entityName)
Returns dependencies. |
String |
getEntityDefinition(String type,
String entityName)
Returns the entity definition as an XML based on name. |
org.apache.falcon.resource.EntityList |
getEntityList(String type,
String fieldStr)
Returns the list of entities registered of a given type. |
protected org.apache.falcon.resource.AbstractEntityManager.EntityStatus |
getStatus(Entity entity,
EntityType type)
|
org.apache.falcon.resource.APIResult |
getStatus(String type,
String entity,
String colo)
Returns the status of requested entity. |
protected AbstractWorkflowEngine |
getWorkflowEngine()
|
org.apache.falcon.resource.APIResult |
submit(javax.servlet.http.HttpServletRequest request,
String type,
String colo)
Submit a new entity. |
protected Entity |
submitInternal(javax.servlet.http.HttpServletRequest request,
String type)
|
org.apache.falcon.resource.APIResult |
update(javax.servlet.http.HttpServletRequest request,
String type,
String entityName,
String colo)
|
org.apache.falcon.resource.APIResult |
validate(javax.servlet.http.HttpServletRequest request,
String type)
Post an entity XML with entity type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int XML_DEBUG_LEN
protected ConfigurationStore configStore
Constructor Detail |
---|
public AbstractEntityManager()
Method Detail |
---|
protected void checkColo(String colo)
protected Set<String> getAllColos()
protected Set<String> getColosFromExpression(String coloExpr, String type, String entity)
protected Set<String> getApplicableColos(String type, String name)
protected Set<String> getApplicableColos(String type, Entity entity)
public org.apache.falcon.resource.APIResult submit(javax.servlet.http.HttpServletRequest request, String type, String colo)
request
- - Servlet Requesttype
- - entity type - feed, process or data end pointcolo
- - applicable colo
public org.apache.falcon.resource.APIResult validate(javax.servlet.http.HttpServletRequest request, String type)
type
- entity type
public org.apache.falcon.resource.APIResult delete(javax.servlet.http.HttpServletRequest request, String type, String entity, String colo)
type
- entity typeentity
- entity name
public org.apache.falcon.resource.APIResult update(javax.servlet.http.HttpServletRequest request, String type, String entityName, String colo)
protected Entity submitInternal(javax.servlet.http.HttpServletRequest request, String type) throws IOException, FalconException
IOException
FalconException
protected Entity deserializeEntity(javax.servlet.http.HttpServletRequest request, EntityType entityType) throws IOException, FalconException
IOException
FalconException
protected void audit(javax.servlet.http.HttpServletRequest request, String entity, String type, String action)
public org.apache.falcon.resource.APIResult getStatus(String type, String entity, String colo)
type
- entity typeentity
- entity name
protected org.apache.falcon.resource.AbstractEntityManager.EntityStatus getStatus(Entity entity, EntityType type) throws FalconException
FalconException
public org.apache.falcon.resource.EntityList getDependencies(String type, String entityName)
type
- entity typeentityName
- entity name
public org.apache.falcon.resource.EntityList getEntityList(String type, String fieldStr)
type
- entity typefieldStr
- fields that the query is interested in, separated by commatype
- entity type
public String getEntityDefinition(String type, String entityName)
type
- entity typeentityName
- entity name
protected AbstractWorkflowEngine getWorkflowEngine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |