org.apache.falcon.resource
Class SchedulableEntityManager

java.lang.Object
  extended by org.apache.falcon.resource.AbstractEntityManager
      extended by org.apache.falcon.resource.AbstractSchedulableEntityManager
          extended by org.apache.falcon.resource.SchedulableEntityManager

public class SchedulableEntityManager
extends AbstractSchedulableEntityManager

Entity management operations as REST API for feed and process.


Field Summary
 
Fields inherited from class org.apache.falcon.resource.AbstractEntityManager
configStore, XML_DEBUG_LEN
 
Constructor Summary
SchedulableEntityManager()
           
 
Method Summary
 org.apache.falcon.resource.EntityList getDependencies(String type, String entity)
          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 fields)
          Returns the list of entities registered of a given type.
 org.apache.falcon.resource.APIResult getStatus(String type, String entity, String colo)
          Returns the status of requested entity.
 org.apache.falcon.resource.APIResult resume(javax.servlet.http.HttpServletRequest request, String type, String entity, String colo)
          Resumes a suspended entity.
 org.apache.falcon.resource.APIResult schedule(javax.servlet.http.HttpServletRequest request, String type, String entity, String colo)
          Schedules an submitted entity immediately.
 org.apache.falcon.resource.APIResult suspend(javax.servlet.http.HttpServletRequest request, String type, String entity, String colo)
          Suspends a running entity.
 
Methods inherited from class org.apache.falcon.resource.AbstractSchedulableEntityManager
submitAndSchedule
 
Methods inherited from class org.apache.falcon.resource.AbstractEntityManager
audit, checkColo, delete, deserializeEntity, getAllColos, getApplicableColos, getApplicableColos, getColosFromExpression, getStatus, getWorkflowEngine, submit, submitInternal, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulableEntityManager

public SchedulableEntityManager()
Method Detail

getStatus

public org.apache.falcon.resource.APIResult getStatus(String type,
                                                      String entity,
                                                      String colo)
Description copied from class: AbstractEntityManager
Returns the status of requested entity.

Overrides:
getStatus in class AbstractEntityManager
Parameters:
type - entity type
entity - entity name
Returns:
String

getDependencies

public org.apache.falcon.resource.EntityList getDependencies(String type,
                                                             String entity)
Description copied from class: AbstractEntityManager
Returns dependencies.

Overrides:
getDependencies in class AbstractEntityManager
Parameters:
type - entity type
entity - entity name
Returns:
EntityList

getEntityList

public org.apache.falcon.resource.EntityList getEntityList(String type,
                                                           String fields)
Description copied from class: AbstractEntityManager
Returns the list of entities registered of a given type.

Overrides:
getEntityList in class AbstractEntityManager
Parameters:
type - entity type
fields - fields that the query is interested in, separated by comma
Returns:
String

getEntityDefinition

public String getEntityDefinition(String type,
                                  String entityName)
Description copied from class: AbstractEntityManager
Returns the entity definition as an XML based on name.

Overrides:
getEntityDefinition in class AbstractEntityManager
Parameters:
type - entity type
entityName - entity name
Returns:
String

schedule

public org.apache.falcon.resource.APIResult schedule(@Context
                                                     javax.servlet.http.HttpServletRequest request,
                                                     String type,
                                                     String entity,
                                                     String colo)
Description copied from class: AbstractSchedulableEntityManager
Schedules an submitted entity immediately.

Overrides:
schedule in class AbstractSchedulableEntityManager
Returns:
APIResult

suspend

public org.apache.falcon.resource.APIResult suspend(@Context
                                                    javax.servlet.http.HttpServletRequest request,
                                                    String type,
                                                    String entity,
                                                    String colo)
Description copied from class: AbstractSchedulableEntityManager
Suspends a running entity.

Overrides:
suspend in class AbstractSchedulableEntityManager
Returns:
APIResult

resume

public org.apache.falcon.resource.APIResult resume(@Context
                                                   javax.servlet.http.HttpServletRequest request,
                                                   String type,
                                                   String entity,
                                                   String colo)
Description copied from class: AbstractSchedulableEntityManager
Resumes a suspended entity.

Overrides:
resume in class AbstractSchedulableEntityManager
Returns:
APIResult


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