use of com.homeaway.datapullclient.data.SimpleResponseEntity in project datapull by homeaway.
the class DataPullRequestHandler method startSimpleDataPull.
@Override
public SimpleResponseEntity startSimpleDataPull(String pipelinename, String awsenv) {
if (log.isDebugEnabled())
log.debug("startSimpleDataPull -> data=" + awsenv);
SimpleResponseEntity entity = null;
try {
service.runSimpleDataPull(awsenv, pipelinename);
entity = new SimpleResponseEntity(HttpStatus.ACCEPTED.value(), "Request Succesfully registered : " + awsenv, "Request Succesfully registered : " + pipelinename);
} catch (ProcessingException e) {
throw new InputException("DataPull application failed for data : " + awsenv + " \n " + e.getMessage());
}
if (log.isDebugEnabled())
log.debug("startSimpleDataPull <- return");
return entity;
}
Aggregations