public class ApmMockServer extends Object
| Constructor and Description |
|---|
ApmMockServer() |
| Modifier and Type | Method and Description |
|---|---|
List<Span> |
getSpans() |
List<org.hawkular.apm.api.model.trace.Trace> |
getTraces() |
static void |
main(String[] args)
Main for the test app.
|
void |
run() |
void |
setHost(String host)
This method sets the host to bind at.
|
void |
setPort(int port)
This method sets the port.
|
void |
setShutdownTimer(int timer)
This method sets the shutdown timer.
|
void |
setSpans(List<Span> spans) |
void |
setTestConfig(org.hawkular.apm.api.model.config.CollectorConfiguration testConfig)
This method sets the test configuration.
|
void |
setTraces(List<org.hawkular.apm.api.model.trace.Trace> traces) |
void |
shutdown() |
public static void main(String[] args)
args - The argumentspublic List<org.hawkular.apm.api.model.trace.Trace> getTraces()
public void setTraces(List<org.hawkular.apm.api.model.trace.Trace> traces)
traces - the traces to setpublic void setShutdownTimer(int timer)
timer - The shutdown timer (in milliseconds), or -1 to disablepublic void setPort(int port)
port - The portpublic void setHost(String host)
host - The host to bindpublic void setTestConfig(org.hawkular.apm.api.model.config.CollectorConfiguration testConfig)
testConfig - The test collector configurationpublic void run()
public void shutdown()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.