class SendMetrics
extends java.lang.Object
implements java.util.concurrent.Callable
Modifier and Type | Field and Description |
---|---|
private PlannerMetrics |
mMetrics |
private java.lang.String |
mURL |
Constructor and Description |
---|
SendMetrics(PlannerMetrics metrics,
java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
SendMetricsResult |
call() |
private SendMetricsResult |
send(PlannerMetrics metrics,
java.lang.String url)
Sends the planner metrics to the metrics server
|
private PlannerMetrics mMetrics
private java.lang.String mURL
public SendMetrics(PlannerMetrics metrics, java.lang.String url)
public SendMetricsResult call() throws java.io.IOException
call
in interface java.util.concurrent.Callable
java.io.IOException
private SendMetricsResult send(PlannerMetrics metrics, java.lang.String url) throws java.io.IOException
metrics
- the metrics to logurl
- the url to send the metrics tojava.io.IOException