Package net.fp.rp.search.mid.feedback

Examples of net.fp.rp.search.mid.feedback.BaseFeedback


                logger.info("Load the feedback event from model" + modelpath);

                try {
                    //read the feedback event model and convert it to a base feedback
                    BaseFeedback feedback = PluginManager.getFeedbackDataStores()
                                                         .read(modelpath);

                    //add the feedback object to the list
                    feedbackEventsList.add(feedback);
                } catch (RpException e) {
                    logger.warn("Error in reading the feedback event", e);
                }
            }
        } else {
            logger.warn("No feedback events in the system");
            readyForFeedbackCalculation = true;
        }

        Thread t = new Thread(new Runnable() {
                    public void run() {
                        //wait till the plugin is mark as ready for feedback re-calculation process
                        while (!readyForFeedbackCalculation);

                        //if there are feedback events accept it to the system
                        logger.info("There are " + feedbackEventsList.size() +
                            " feedback events");

                        for (int i = 0; i < feedbackEventsList.size(); i++) {
                            //get the event object
                            BaseFeedback advice = (BaseFeedback) feedbackEventsList.get(i);

                            //accept the feedback event
                            acceptFeedback(advice);
                        }
                    }
View Full Code Here


      String result;
      String message;
     
      //define the default model;
        Map model = new HashMap();
        BaseFeedback feedback = null;

     
      //validate the request mode 
        String method = request.getMethod();
View Full Code Here

TOP

Related Classes of net.fp.rp.search.mid.feedback.BaseFeedback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.