Public Member Functions | |
void | open (final String file) throws IOException |
void | printInfo (PrintStream out) |
void | dispose () throws IOException |
Protected Member Functions | |
void | readHeader (String file, FileInputStream fis, ByteBuffer buffer) throws IOException |
abstract boolean | isTypeFormatCorrect (long type) |
abstract boolean | isFileHeaderCorrect (String header) |
abstract boolean | readNext (FileChannel input) throws IOException |
Protected Attributes | |
long | format |
long | num_threads |
long | num_cctid |
long | num_metric |
String | filename |
Private Member Functions | |
void | throw_exception (FileInputStream input, String message) throws IOException |
Static Private Attributes | |
static final int | HEADER_COMMON_SIZE = 256 |
static final int | MESSAGE_SIZE = 32 |
static final int | MAGIC = 0x06870630 |
Definition at line 15 of file DataCommon.java.
void edu.rice.cs.hpc.data.db.DataCommon.dispose | ( | ) | throws IOException |
Reimplemented in edu.rice.cs.hpc.viewer.db.DataSummary.
Definition at line 78 of file DataCommon.java.
abstract boolean edu.rice.cs.hpc.data.db.DataCommon.isFileHeaderCorrect | ( | String | header | ) | [protected, pure virtual] |
Implemented in edu.rice.cs.hpc.traceviewer.data.db.DataTrace, and edu.rice.cs.hpc.viewer.db.DataSummary.
abstract boolean edu.rice.cs.hpc.data.db.DataCommon.isTypeFormatCorrect | ( | long | type | ) | [protected, pure virtual] |
Implemented in edu.rice.cs.hpc.traceviewer.data.db.DataTrace, and edu.rice.cs.hpc.viewer.db.DataSummary.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.readHeader().
void edu.rice.cs.hpc.data.db.DataCommon.open | ( | final String | file | ) | throws IOException |
Reimplemented in edu.rice.cs.hpc.viewer.db.DataSummary.
Definition at line 34 of file DataCommon.java.
References edu.rice.cs.hpc.data.db.DataCommon.filename, edu.rice.cs.hpc.data.db.DataCommon.HEADER_COMMON_SIZE, edu.rice.cs.hpc.data.db.DataCommon.readHeader(), and edu.rice.cs.hpc.data.db.DataCommon.readNext().
Referenced by edu.rice.cs.hpc.traceviewer.data.db.DataTrace.main().
void edu.rice.cs.hpc.data.db.DataCommon.printInfo | ( | PrintStream | out | ) |
Reimplemented in edu.rice.cs.hpc.traceviewer.data.db.DataTrace, and edu.rice.cs.hpc.viewer.db.DataSummary.
Definition at line 66 of file DataCommon.java.
References edu.rice.cs.hpc.data.db.DataCommon.format, edu.rice.cs.hpc.data.db.DataCommon.num_cctid, edu.rice.cs.hpc.data.db.DataCommon.num_metric, and edu.rice.cs.hpc.data.db.DataCommon.num_threads.
void edu.rice.cs.hpc.data.db.DataCommon.readHeader | ( | String | file, | |
FileInputStream | fis, | |||
ByteBuffer | buffer | |||
) | throws IOException [protected] |
Definition at line 92 of file DataCommon.java.
References edu.rice.cs.hpc.data.db.DataCommon.format, edu.rice.cs.hpc.data.db.DataCommon.isTypeFormatCorrect(), edu.rice.cs.hpc.data.db.DataCommon.MAGIC, edu.rice.cs.hpc.data.db.DataCommon.MESSAGE_SIZE, edu.rice.cs.hpc.data.db.DataCommon.num_cctid, edu.rice.cs.hpc.data.db.DataCommon.num_metric, edu.rice.cs.hpc.data.db.DataCommon.num_threads, and edu.rice.cs.hpc.data.db.DataCommon.throw_exception().
Referenced by edu.rice.cs.hpc.data.db.DataCommon.open().
abstract boolean edu.rice.cs.hpc.data.db.DataCommon.readNext | ( | FileChannel | input | ) | throws IOException [protected, pure virtual] |
Implemented in edu.rice.cs.hpc.traceviewer.data.db.DataTrace, and edu.rice.cs.hpc.viewer.db.DataSummary.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.open().
void edu.rice.cs.hpc.data.db.DataCommon.throw_exception | ( | FileInputStream | input, | |
String | message | |||
) | throws IOException [private] |
Definition at line 165 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.readHeader().
String edu.rice.cs.hpc.data.db.DataCommon.filename [protected] |
Definition at line 26 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.main(), edu.rice.cs.hpc.data.db.DataCommon.open(), and edu.rice.cs.hpc.viewer.db.DataSummary.open_internal().
long edu.rice.cs.hpc.data.db.DataCommon.format [protected] |
Definition at line 21 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
final int edu.rice.cs.hpc.data.db.DataCommon.HEADER_COMMON_SIZE = 256 [static, private] |
Definition at line 17 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.open().
final int edu.rice.cs.hpc.data.db.DataCommon.MAGIC = 0x06870630 [static, private] |
Definition at line 19 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.readHeader().
final int edu.rice.cs.hpc.data.db.DataCommon.MESSAGE_SIZE = 32 [static, private] |
Definition at line 18 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.readHeader().
long edu.rice.cs.hpc.data.db.DataCommon.num_cctid [protected] |
Definition at line 23 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
long edu.rice.cs.hpc.data.db.DataCommon.num_metric [protected] |
Definition at line 24 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
long edu.rice.cs.hpc.data.db.DataCommon.num_threads [protected] |
Definition at line 22 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().