logger.warn(e.getMessage(), e);
throw new RemoteException("Invalid request ID.");
}
}
DescribeSpotInstanceRequestsResponseType dsirrt = new DescribeSpotInstanceRequestsResponseType();
if(spotRequests != null){
SpotInstanceRequestSetItemType[] sirsti = new SpotInstanceRequestSetItemType[spotRequests.length];
for (int i = 0; i < spotRequests.length; i++) {
try {
sirsti[i] = translateSpotInfo(spotRequests[i]);
} catch (Exception e) {
final String err = "Problem translating valid spot instance " +
"request into elastic protocol." +
" Error: " + e.getMessage();
logger.warn(err, e);
}
}
SpotInstanceRequestSetType sirst = new SpotInstanceRequestSetType();
sirst.setItem(sirsti);
dsirrt.setSpotInstanceRequestSet(sirst);
}
return dsirrt;
}