Package org.apache.ivory

Examples of org.apache.ivory.IvoryException


      return retry;
    case PROCESS:
      Process process = (Process) entity;
      return process.getRetry();
    default:
      throw new IvoryException("Cannot create Retry for entity:"+entity.getName());
    }
  }
View Full Code Here


      return lateProcess;
    case PROCESS:
      Process process = (Process) entity;
      return process.getLateProcess();
    default:
      throw new IvoryException("Cannot create Late Process for entity:"+entity.getName());
    }
  }
View Full Code Here

        "yyyy'-'MM'-'dd'T'HH':'mm'Z'");
    Date utcDate;
    try {
      utcDate = utcFormat.parse(utc);
    } catch (ParseException e) {
      throw new IvoryException("Unable to parse utc date:", e);
    }
    DateFormat uriFormat = new SimpleDateFormat("yyyy'-'MM'-'dd'-'HH'-'mm");
    return uriFormat.format(utcDate);
  }
View Full Code Here

        if (oldEntity.getEntityType() == EntityType.FEED && affectedEntity.getEntityType() == EntityType.PROCESS) {
            return shouldUpdate((Feed) oldEntity, (Feed) newEntity, (Process) affectedEntity);
        } else {
            LOG.debug(newEntity.toShortString());
            LOG.debug(affectedEntity.toShortString());
            throw new IvoryException("Don't know what to do. Unexpected scenario");
        }
    }
View Full Code Here

        } catch (ValidationException e) {
            throw new ValidationException(e);
        } catch (ConnectException e) {
            throw new ValidationException("Unable to connect to Namenode: " + nameNode + " referenced in cluster: " + clusterName);
        } catch (Exception e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

                throw new ValidationException("Process start time: " + start + " should be before process end time: " + end);
            }
        } catch (ValidationException e) {
            throw new ValidationException(e);
        } catch (Exception e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

    @Override
    public void onChange(Entity oldEntity, Entity newEntity) throws IvoryException {
        if (oldEntity.getEntityType() != EntityType.CLUSTER)
            return;
        throw new IvoryException("change shouldn't be supported on cluster!");
    }
View Full Code Here

                            + " is after the end of feed " + feedValidity.getEnd() + " for cluster " + clusterName);
            }
        } catch (ValidationException e) {
            throw e;
        } catch (Exception e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

                            + " is after the end of feed " + feedValidity.getEnd() + " for cluster" + clusterName);
            }
        } catch (ValidationException e) {
            throw e;
        } catch (Exception e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

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

TOP

Related Classes of org.apache.ivory.IvoryException

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.