Class SendMetrics
- java.lang.Object
-
- edu.isi.pegasus.planner.code.generator.SendMetrics
-
- All Implemented Interfaces:
java.util.concurrent.Callable
class SendMetrics extends java.lang.Object implements java.util.concurrent.Callable
A Send metrics class that is used to send metrics to the metrics server using HTTP POST methods- Author:
- vahi
-
-
Field Summary
Fields Modifier and Type Field Description private PlannerMetrics
mMetrics
private java.lang.String
mURL
-
Constructor Summary
Constructors Constructor Description SendMetrics(PlannerMetrics metrics, java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendMetricsResult
call()
private SendMetricsResult
send(PlannerMetrics metrics, java.lang.String url)
Sends the planner metrics to the metrics server
-
-
-
Field Detail
-
mMetrics
private PlannerMetrics mMetrics
-
mURL
private java.lang.String mURL
-
-
Constructor Detail
-
SendMetrics
public SendMetrics(PlannerMetrics metrics, java.lang.String url)
-
-
Method Detail
-
call
public SendMetricsResult call() throws java.io.IOException
- Specified by:
call
in interfacejava.util.concurrent.Callable
- Throws:
java.io.IOException
-
send
private SendMetricsResult send(PlannerMetrics metrics, java.lang.String url) throws java.io.IOException
Sends the planner metrics to the metrics server- Parameters:
metrics
- the metrics to logurl
- the url to send the metrics to- Throws:
java.io.IOException
-
-