Class PerfSigUIUtils
- java.lang.Object
-
- de.tsystems.mms.apm.performancesignature.ui.util.PerfSigUIUtils
-
public final class PerfSigUIUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkForMissingPermission(Item item)
static boolean
checkNotEmptyAndIsNumber(String number)
static boolean
checkNotNullOrEmpty(String string)
static PluginLogger
createLogger(PrintStream printStream)
static String
encodeString(String str)
Escape the given string to be used as URL query value.static String
generateTitle(String measure, String chartDashlet, String aggregation)
static List<FilePath>
getDownloadFiles(String testCase, Run<?,?> build)
static String
getDurationString(float seconds)
static String
getHostFromUrl(String url)
static FilePath
getReportDirectory(Run<?,?> run)
static void
handleIncidents(Run<?,?> run, List<Alert> incidents, PluginLogger logger, int nonFunctionalFailure)
static String
removeExtension(String fileName)
static BigDecimal
round(double d)
static BigDecimal
round(double d, int scale)
static double
roundAsDouble(double d)
static List<ChartDashlet>
sortChartDashletList(List<ChartDashlet> list)
static String
toIndentedString(Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-
-
Method Detail
-
roundAsDouble
public static double roundAsDouble(double d)
-
round
public static BigDecimal round(double d)
-
round
public static BigDecimal round(double d, int scale)
-
getReportDirectory
public static FilePath getReportDirectory(Run<?,?> run) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getDownloadFiles
public static List<FilePath> getDownloadFiles(String testCase, Run<?,?> build) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
createLogger
public static PluginLogger createLogger(PrintStream printStream)
-
generateTitle
public static String generateTitle(String measure, String chartDashlet, String aggregation)
-
sortChartDashletList
public static List<ChartDashlet> sortChartDashletList(List<ChartDashlet> list)
-
encodeString
public static String encodeString(String str)
Escape the given string to be used as URL query value.- Parameters:
str
- String to be escaped- Returns:
- Escaped string
-
getDurationString
public static String getDurationString(float seconds)
-
toIndentedString
public static String toIndentedString(Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
handleIncidents
public static void handleIncidents(Run<?,?> run, List<Alert> incidents, PluginLogger logger, int nonFunctionalFailure) throws AbortException
- Throws:
AbortException
-
checkNotNullOrEmpty
public static boolean checkNotNullOrEmpty(String string)
-
checkNotEmptyAndIsNumber
public static boolean checkNotEmptyAndIsNumber(String number)
-
-