public class SummaryInfo extends Object
| Constructor and Description |
|---|
SummaryInfo() |
SummaryInfo(String filePath)
Create a new SummaryInfo from the given summary file path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTest(String testSummary)
Add a test summary string
|
void |
addToDiskUsage(String diskUsageArg)
Add to the disk usage for this regression summary
|
protected String |
combine(String existingInfo,
Set newInfo)
Given existing information and a Set of new information, combine them if
the new information is not already included in the existing information.
|
protected String |
combine(String existingInfo,
String newInfo)
Given existing information and new information, combine them if
the new information is not already included in the existing information.
|
protected StringBuffer |
getHeadingString()
Return the heading string for the summary file.
|
int |
getNumTests()
Return the current number of tests in this summary
|
protected static String |
getReadableBytes(float numBytes)
Convert a number of bytes to a readable string (for example "874M")
|
protected String |
getStringDelimitedBy(String aStr,
String prefixDelim,
String suffixDelim)
Given a string, return the substring delimited by the given prefix and suffix,
or null if a substring cannot be deteremined.
|
protected void |
importFromFile(String filePath)
Import information from the given summary file into this instance of
SummaryInfo.
|
String |
toString()
Return a string represenation of this instance, suitable for
pasting into a regression spreadsheet.
|
void |
updateAndCombine(BatteryTestLogInfo btInfo)
Using information in btInfo and MasterLogInfo, combine information
with the current state of this SummaryInfo.
|
public SummaryInfo(String filePath) throws Exception
filePath - The full directory path and file name of an existing
summary file.Exceptionpublic SummaryInfo()
public int getNumTests()
public void addTest(String testSummary)
public void addToDiskUsage(String diskUsageArg) throws Exception
Exceptionpublic String toString()
public void updateAndCombine(BatteryTestLogInfo btInfo)
protected void importFromFile(String filePath) throws Exception
filePath - The full directory path and file name of an existing
summary file.Exceptionprotected String getStringDelimitedBy(String aStr, String prefixDelim, String suffixDelim)
aStr - The string to get a substring of.prefixDelim - The beginning delimeter to the desired substring.suffisDelim - The ending delimeter to the desired substring.protected StringBuffer getHeadingString()
protected String combine(String existingInfo, String newInfo)
existingInfo - Existing state.newInfo - New state to combine with existingInfo.protected String combine(String existingInfo, Set newInfo)
existingInfo - Existing state.newInfo - New state to combine with existingInfo.protected static String getReadableBytes(float numBytes)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.