use of com.ibm.dtfj.corereaders.NewAixDump in project openj9 by eclipse.
the class DTFJLibraryAdapter method getLibraryList.
public ArrayList<String> getLibraryList(final File coreFile) {
if (moduleNames == null) {
moduleNames = new ArrayList<String>();
try {
_parentDir = coreFile.getParentFile();
logger.fine("Creating DTFJ core file reader");
ClosingFileReader closingFile = new ClosingFileReader(coreFile);
ICoreFileReader reader = DumpFactory.createDumpForCore(closingFile);
isAIX = (reader instanceof NewAixDump);
logger.fine("Extracting modules");
reader.extract(this);
} catch (FileNotFoundException e) {
logger.log(SEVERE, "Could not open core file " + coreFile.getAbsolutePath(), e);
errorMessages.add(e.getMessage());
} catch (IOException e) {
logger.log(SEVERE, "Error processing core file " + coreFile.getAbsolutePath(), e);
errorMessages.add(e.getMessage());
}
}
return moduleNames;
}
use of com.ibm.dtfj.corereaders.NewAixDump in project openj9 by eclipse.
the class DTFJLibraryAdapter method isLibraryCollectionRequired.
public boolean isLibraryCollectionRequired(File coreFile) {
ICoreFileReader reader = null;
try {
ClosingFileReader closingFile = new ClosingFileReader(coreFile);
reader = DumpFactory.createDumpForCore(closingFile);
} catch (Exception e) {
logger.log(SEVERE, "Could not determine if library collection is required for " + coreFile.getAbsolutePath(), e);
errorMessages.add(e.getMessage());
// if this fails, then so would any collection attempt as well
return false;
}
if (reader instanceof NewElfDump) {
return true;
}
if (reader instanceof NewAixDump) {
return true;
}
return false;
}
Aggregations