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 booleancheckForMissingPermission(Item item)static booleancheckNotEmptyAndIsNumber(String number)static booleancheckNotNullOrEmpty(String string)static PluginLoggercreateLogger(PrintStream printStream)static StringencodeString(String str)Escape the given string to be used as URL query value.static StringgenerateTitle(String measure, String chartDashlet, String aggregation)static List<FilePath>getDownloadFiles(String testCase, Run<?,?> build)static StringgetDurationString(float seconds)static StringgetHostFromUrl(String url)static FilePathgetReportDirectory(Run<?,?> run)static voidhandleIncidents(Run<?,?> run, List<Alert> incidents, PluginLogger logger, int nonFunctionalFailure)static StringremoveExtension(String fileName)static BigDecimalround(double d)static BigDecimalround(double d, int scale)static doubleroundAsDouble(double d)static List<ChartDashlet>sortChartDashletList(List<ChartDashlet> list)static StringtoIndentedString(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:
IOExceptionInterruptedException
-
getDownloadFiles
public static List<FilePath> getDownloadFiles(String testCase, Run<?,?> build) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
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)
-
-