Class ChartExportPrinter.JSONPrinter
- java.lang.Object
-
- jetbrains.buildServer.web.statistics.graph.ChartExportPrinter.JSONPrinter
-
- All Implemented Interfaces:
ChartExportPrinter.Printer
- Enclosing class:
- ChartExportPrinter
public static class ChartExportPrinter.JSONPrinter extends Object implements ChartExportPrinter.Printer
-
-
Constructor Summary
Constructors Constructor Description JSONPrinter(List<BuildValue> list, BuildGraphBean buildGraphBean, boolean hideBuildsData, ProjectManager projectManager, AgentTypeFinder agentTypeFinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getData()
Encodes graph data to a JSON stringcom.google.gson.JsonObject
getJson()
void
writeData(OutputStream outputStream)
Writes statistic data in JSON format.void
writeData(JsonWriterAdapter writer)
-
-
-
Constructor Detail
-
JSONPrinter
public JSONPrinter(@NotNull List<BuildValue> list, @NotNull BuildGraphBean buildGraphBean, boolean hideBuildsData, @NotNull ProjectManager projectManager, @NotNull AgentTypeFinder agentTypeFinder)
-
-
Method Detail
-
writeData
public void writeData(@NotNull OutputStream outputStream) throws IOException
Writes statistic data in JSON format.
- Specified by:
writeData
in interfaceChartExportPrinter.Printer
- Parameters:
outputStream
- Stream to write data to- Throws:
IOException
-
writeData
public void writeData(@NotNull JsonWriterAdapter writer) throws IOException
- Throws:
IOException
-
getData
public String getData()
Encodes graph data to a JSON string
- Specified by:
getData
in interfaceChartExportPrinter.Printer
- Returns:
- JSON-formatted statistic data
-
getJson
public com.google.gson.JsonObject getJson()
-
-