* @return a report of the current status/availability of data for the given time period
*/
public FutureData<HistoricsStatus> status(DateTime start, DateTime end, String... sources) {
FutureData<HistoricsStatus> future = new FutureData<HistoricsStatus>();
URI uri = newParams().forURL(config.newAPIEndpointURI(STATUS));
POST request = config.http().POST(uri, new PageReader(newRequestCallback(future, new HistoricsStatus())))
.form("start", MILLISECONDS.toSeconds(start.getMillis()))
.form("end", MILLISECONDS.toSeconds(end.getMillis()));
if (sources != null && sources.length > 0) {
StringBuilder b = new StringBuilder();
for (String source : sources) {
b.append(source).append(",");
}
request.form("sources", b.toString().substring(0, b.length() - 1));
}
applyConfig(request).execute();
return future;
}