Package org.apache.falcon

Examples of org.apache.falcon.FalconException


        final CatalogTable table = getTable(cluster, feed);
        if (table != null) {
            return Storage.TYPE.TABLE;
        }

        throw new FalconException("Both catalog and locations are not defined.");
    }
View Full Code Here


                    feedCutOff = endTime;
                }
            }
            return feedCutOff;
        } else {
            throw new FalconException(
                    "Invalid entity while getting cut-off time:"
                            + entity.getName());
        }
    }
View Full Code Here

                        + " for cluster: " + clusterName);
            }
        } catch (ValidationException e) {
            throw new ValidationException(e);
        } catch (Exception e) {
            throw new FalconException(e);
        }
    }
View Full Code Here

            LOG.debug("Enqueued Message:" + event.toString() + "with delay "
                    + event.getDelay(TimeUnit.MILLISECONDS) + " milli sec");
            return true;
        } catch (Exception e) {
            LOG.error("Unable to offer event:" + event + " to activeMqueue", e);
            throw new FalconException("Unable to offer event:" + event + " to activeMqueue", e);
        }
    }
View Full Code Here

                    textMessage.getText());
            LOG.debug("Dequeued Message:" + event.toString());
            return event;
        } catch (Exception e) {
            LOG.error("Error getting the messge from ActiveMqueue: ", e);
            throw new FalconException("Error getting the messge from ActiveMqueue: ", e);
        }
    }
View Full Code Here

        try {
            event = delayQueue.take();
            LOG.debug("Dequeued Message:" + event.toString());
            afterRetry(event);
        } catch (InterruptedException e) {
            throw new FalconException(e);
        }
        return event;
    }
View Full Code Here

                        onAdd(entity, true);
                    }
                }
            }
        } catch (IOException e) {
            throw new FalconException("Unable to restore configurations", e);
        }
    }
View Full Code Here

                ConcurrentHashMap<String, Entity> entityMap = dictionary.get(type);
                Entity oldEntity = entityMap.get(entity.getName());
                onChange(oldEntity, entity);
                entityMap.put(entity.getName(), entity);
            } else {
                throw new FalconException(entity.toShortString() + " doesn't exist");
            }
        } catch (IOException e) {
            throw new StoreAccessException(e);
        }
        AUDIT.info(type + "/" + entity.getName() + " is replaced into config store");
View Full Code Here

    public synchronized void update(EntityType type, Entity entity) throws FalconException {
        if (updatesInProgress.get() == entity) {
            updateInternal(type, entity);
        } else {
            throw new FalconException(entity.toShortString() + " is not initialized for update");
        }
    }
View Full Code Here

        }
    }

    public synchronized void initiateUpdate(Entity entity) throws FalconException {
        if (get(entity.getEntityType(), entity.getName()) == null || updatesInProgress.get() != null) {
            throw new FalconException(
                    "An update for " + entity.toShortString() + " is already in progress or doesn't exist");
        }
        updatesInProgress.set(entity);
    }
View Full Code Here

TOP

Related Classes of org.apache.falcon.FalconException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.