public class TraceReporter extends Object
| Constructor and Description |
|---|
TraceReporter()
create reporter.
|
| Modifier and Type | Method and Description |
|---|---|
<Y> void |
addX(String name,
Y value)
add sample value on Y axis y axis s auto incremented by 1.
|
<X> void |
addY(String name,
X value)
add sample value on X axis y axis s auto incremented by 1.
|
String |
chartsEnv() |
reactor.core.publisher.Mono<Void> |
createChart(String tracesFolder,
String chartsFolder,
String chartTemplate)
create a chart report and upload to jsonbin.
|
reactor.core.publisher.Mono<Void> |
dumpTo(OutputStream output,
Object json)
dump trace data to output stream.
|
reactor.core.publisher.Mono<Void> |
dumpTo(String folder)
Dump traces state in to a file.
|
reactor.core.publisher.Mono<Void> |
dumpToFile(String fullName,
Object json)
Dump the trace state in to a file.
|
reactor.core.publisher.Mono<Void> |
dumpToFile(String folder,
String file,
Object json)
Dump the trace state in to a file.
|
ScheduledFuture<?> |
scheduleDumpTo(Duration duration,
String folder)
Schedule periodic dump to folder.
|
reactor.core.publisher.Flux<JsonbinResponse> |
sendToJsonbin() |
reactor.core.publisher.Mono<JsonbinResponse> |
sendToJsonbin(Object data) |
reactor.core.publisher.Flux<JsonbinResponse> |
sendToJsonbin(String secret,
String collectionId)
send all collected data to json bin service.
|
reactor.core.publisher.Mono<JsonbinResponse> |
sendToJsonbin(String secret,
String collectionId,
Object body)
send to jsonbin a given data.
|
String |
teplateFileEnv() |
<X,Y> TraceData<X,Y> |
trace(String name)
get or create a trace line with a given name.
|
String |
tracesEnv() |
public String tracesEnv()
public String chartsEnv()
public String teplateFileEnv()
public <X,Y> TraceData<X,Y> trace(String name)
name - of the trace.public <X> void addY(String name, X value)
name - of tracevalue - to add.public <Y> void addX(String name, Y value)
name - of tracevalue - to add.public reactor.core.publisher.Mono<Void> dumpToFile(String fullName, Object json)
fullName - path and file name of the file.json - data to store to file.IOException - on file errors.public reactor.core.publisher.Mono<Void> dumpToFile(String folder, String file, Object json)
folder - path and file name of the file.file - path and file name of the file.json - data to store to file.IOException - on file errors.public reactor.core.publisher.Mono<Void> dumpTo(OutputStream output, Object json)
output - stream to dump to.json - data to dump.public reactor.core.publisher.Mono<Void> dumpTo(String folder)
folder - path and file name of the file .public reactor.core.publisher.Flux<JsonbinResponse> sendToJsonbin()
public reactor.core.publisher.Mono<JsonbinResponse> sendToJsonbin(Object data)
public reactor.core.publisher.Flux<JsonbinResponse> sendToJsonbin(String secret, String collectionId)
secret - optional nullable.collectionId - optional nullable.public reactor.core.publisher.Mono<JsonbinResponse> sendToJsonbin(String secret, String collectionId, Object body)
secret - optional nullable.collectionId - optional nullable.body - mandatory.public ScheduledFuture<?> scheduleDumpTo(Duration duration, String folder)
duration - periodic dump duration.folder - target where .json files are created.public reactor.core.publisher.Mono<Void> createChart(String tracesFolder, String chartsFolder, String chartTemplate) throws Exception
tracesFolder - where is the data.chartsFolder - where chart is created.chartTemplate - the basis template of chart.Exception - in error case.Copyright © 2015–2019. All rights reserved.