src/main/java/de/tub/benchmarkscheduler/service/workload/DefaultWorkloadStrategy.java
/**
     * Generates benchmark request from sampledata
     *
     * @param data
     * @return
     */
Generates benchmark request from sampledata
@param data
@return
Generates benchmark request from sampledata @param data @return
private BenchmarkRequest makeRequest(SampleData data) {
        BenchmarkRequest request = new BenchmarkRequest();
        ValidResponse response = new ValidResponse();
        response.setResponseBody(data.getResponseBody());
        response.setResponseCode(data.getResponseCode());
        response.setResponseHeader(data.getResponseHeader());
        response.setResponseLength(data.getResponseLength());
        response.setId(data.getId());
        request.setMethod(data.getMethod());
        request.setPath(data.getPath());
        request.setRequestHeader(data.getRequestHeader());
        request.getRequestHeader().put("X-Benchmark", Arrays.asList("VDC_Benchmark"));
        request.setValidResponse(response);
        return request;
    }
private BenchmarkRequest makeRequest ( SampleData data ) { BenchmarkRequest request = new BenchmarkRequest ( ) ; ValidResponse response = new ValidResponse ( ) ; response . setResponseBody ( data . getResponseBody ( ) ) ; response . setResponseCode ( data . getResponseCode ( ) ) ; response . setResponseHeader ( data . getResponseHeader ( ) ) ; response . setResponseLength ( data . getResponseLength ( ) ) ; response . setId ( data . getId ( ) ) ; request . setMethod ( data . getMethod ( ) ) ; request . setPath ( data . getPath ( ) ) ; request . setRequestHeader ( data . getRequestHeader ( ) ) ; request . getRequestHeader ( ) . put ( "X-Benchmark" , Arrays . asList ( "VDC_Benchmark" ) ) ; request . setValidResponse ( response ) ; return request ; }
Generates benchmark request from sampledata
 @param data
 @return
Generates benchmark request from sampledata @param data @return
//build valid response //build request