blob: 3dc1d087713b52137f4ac8be469024749643bab8 [file] [log] [blame]
package net.floodlightcontroller.flowcache.web;
import net.floodlightcontroller.flowcache.IFlowService;
import net.floodlightcontroller.util.FlowId;
import org.openflow.util.HexString;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MeasurementGetInstallPathsTimeNsecFlowResource extends ServerResource {
protected static Logger log = LoggerFactory.getLogger(MeasurementGetInstallPathsTimeNsecFlowResource.class);
@Get("json")
public Long retrieve() {
Long result = null;
IFlowService flowService =
(IFlowService)getContext().getAttributes().
get(IFlowService.class.getCanonicalName());
if (flowService == null) {
log.debug("ONOS Flow Service not found");
return result;
}
// Extract the arguments
// Process the request
result = flowService.measurementGetInstallPathsTimeNsec();
log.debug("Measurement Get Install Paths Time (nsec): " + result);
return result;
}
}