Long elapsedMins = null;
Long reservedMins = null;
if (this.accountingReader != null) {
final ElapsedAndReservedMinutes elapRes =
this.accountingReader.
totalElapsedAndReservedMinutesTuple(callerID);
final long elapsed = elapRes.getElapsed();
final long reserved = elapRes.getReserved();
if (elapsed < 0 || reserved < 0) {
logger.error("Accounting reader returned negative " +
"value? Aborting.");
throw new ResourceRequestDeniedException(
"Request denied, internal issue");
}
elapsedMins = new Long(elapRes.getElapsed());
reservedMins = new Long(elapRes.getReserved());
}
final int numWorkspaces =
this.currentVMs.countIDsByCaller(callerID);