bda-controller/src/main/java/gr/ntua/ece/cslab/selis/bda/controller/resources/DatastoreResource.java
@POST
    @Path("{slug}/boot")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response bootstrap(@PathParam("slug") String slug,
                                     MasterData masterData) {
        try {
            new StorageBackend(slug).init(masterData);
        } catch (Exception e) {
            e.printStackTrace();
            return Response.serverError().entity(
                    new RequestResponse("ERROR", "Could not insert master data.")
            ).build();
        }
        return Response.ok(
                new RequestResponse("OK", "")
        ).build();
    }
/**
     * Responsible for datastore bootstrapping
     * @param masterData the schema of the dimension tables along with their content
     * @return a response for the status of bootstrapping
     */
Responsible for datastore bootstrapping
@param masterData the schema of the dimension tables along with their content
@return a response for the status of bootstrapping
Responsible for datastore bootstrapping @param masterData the schema of the dimension tables along with their content @return a response for the status of bootstrapping
@POST
    @Path("{slug}/boot")
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
    public Response bootstrap(@PathParam("slug") String slug,
                                     MasterData masterData) {
        try {
            new StorageBackend(slug).init(masterData);
        } catch (Exception e) {
            e.printStackTrace();
            return Response.serverError().entity(
                    new RequestResponse("ERROR", "Could not insert master data.")
            ).build();
        }
        return Response.ok(
                new RequestResponse("OK", "")
        ).build();
    }
@ POST @ Path ( "{slug}/boot" ) @ Produces ( { MediaType . APPLICATION_JSON , MediaType . APPLICATION_XML } ) @ Consumes ( { MediaType . APPLICATION_JSON , MediaType . APPLICATION_XML } ) public Response bootstrap ( @ PathParam ( "slug" ) String slug , MasterData masterData ) { try { new StorageBackend ( slug ) . init ( masterData ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return Response . serverError ( ) . entity ( new RequestResponse ( "ERROR" , "Could not insert master data." ) ) . build ( ) ; } return Response . ok ( new RequestResponse ( "OK" , "" ) ) . build ( ) ; }
Responsible for datastore bootstrapping
 @param masterData the schema of the dimension tables along with their content
 @return a response for the status of bootstrapping
Responsible for datastore bootstrapping @param masterData the schema of the dimension tables along with their content @return a response for the status of bootstrapping