public class DoiMonitoring extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<String,DoiMonitoringRecord> |
applications
Hash map of records to compute average time to answer requests.
|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
| Constructor and Description |
|---|
DoiMonitoring() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMeasurement(org.restlet.data.Method name,
String path,
float duration)
Add Measurement.
|
float |
getCurrentAverage(org.restlet.data.Method name,
String path)
Returns the average speed of the measurement.
|
String |
getDescription(org.restlet.data.Method name,
String path)
Returns the description.
|
boolean |
isRegistered(org.restlet.data.Method name,
String path)
Checks if the features is registered.
|
void |
register(org.restlet.data.Method name,
String path,
String description)
Registers the features to monitor.
|
private static final org.apache.logging.log4j.Logger LOG
private final Map<String,DoiMonitoringRecord> applications
public void register(org.restlet.data.Method name,
String path,
String description)
name - Methodpath - path URIdescription - Feature's descriptionpublic void addMeasurement(org.restlet.data.Method name,
String path,
float duration)
name - methodpath - path URIduration - duration in mspublic boolean isRegistered(org.restlet.data.Method name,
String path)
name - methodpath - Path URIpublic float getCurrentAverage(org.restlet.data.Method name,
String path)
name - method namepath - path URICopyright © 2017–2020 CNES. All rights reserved.