use of com.emc.vipr.client.impl.jaxb.ListProcessor in project coprhd-controller by CoprHD.
the class Logs method getAsItems.
/**
* @deprecated Replaced by
* @see #getAsItems(ItemProcessor, Collection, Collection, Collection, Integer, String, String, String, Integer)
*/
@Deprecated
public void getAsItems(ItemProcessor<LogMessage> processor, Collection<String> nodeIds, Collection<String> logNames, Integer severity, String start, String end, String regex, Integer maxCount) {
ListProcessor<LogMessage> listProcessor = new ListProcessor<LogMessage>(LogMessage.class, processor);
InputStream in = getAsStream(nodeIds, logNames, severity, start, end, regex, maxCount);
try {
listProcessor.process(in);
} catch (Exception e) {
throw new ViPRException(e);
} finally {
try {
in.close();
} catch (IOException e) {
// Silently ignore
}
}
}
Aggregations