org.apache.falcon.resource
Class ConfigSyncService

java.lang.Object
  extended by org.apache.falcon.resource.AbstractEntityManager
      extended by org.apache.falcon.resource.ConfigSyncService

public class ConfigSyncService
extends AbstractEntityManager

This class provides RESTful API for Entity Configurations.


Field Summary
 
Fields inherited from class org.apache.falcon.resource.AbstractEntityManager
configStore, XML_DEBUG_LEN
 
Constructor Summary
ConfigSyncService()
           
 
Method Summary
 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.
 org.apache.falcon.resource.APIResult submit(javax.servlet.http.HttpServletRequest request, String type, String colo)
          Submit a new entity.
 org.apache.falcon.resource.APIResult update(javax.servlet.http.HttpServletRequest request, String type, String entityName, String colo)
           
 
Methods inherited from class org.apache.falcon.resource.AbstractEntityManager
audit, checkColo, deserializeEntity, getAllColos, getApplicableColos, getApplicableColos, getColosFromExpression, getDependencies, getEntityDefinition, getEntityList, getStatus, getStatus, getWorkflowEngine, submitInternal, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigSyncService

public ConfigSyncService()
Method Detail

submit

public org.apache.falcon.resource.APIResult submit(@Context
                                                   javax.servlet.http.HttpServletRequest request,
                                                   String type,
                                                   String colo)
Description copied from class: AbstractEntityManager
Submit a new entity. Entities can be of type feed, process or data end points. Entity definitions are validated structurally against schema and subsequently for other rules before they are admitted into the system

Entity name acts as the key and an entity once added, can't be added again unless deleted.

Overrides:
submit in class AbstractEntityManager
Parameters:
request - - Servlet Request
type - - entity type - feed, process or data end point
colo - - applicable colo
Returns:
result of the operation

delete

public org.apache.falcon.resource.APIResult delete(@Context
                                                   javax.servlet.http.HttpServletRequest request,
                                                   String type,
                                                   String entity,
                                                   String colo)
Description copied from class: AbstractEntityManager
Deletes a scheduled entity, a deleted entity is removed completely from execution pool.

Overrides:
delete in class AbstractEntityManager
type - entity type
entity - entity name
Returns:
APIResult

update

public org.apache.falcon.resource.APIResult update(@Context
                                                   javax.servlet.http.HttpServletRequest request,
                                                   String type,
                                                   String entityName,
                                                   String colo)
Overrides:
update in class AbstractEntityManager


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