Package jmt.engine.QueueNet

Examples of jmt.engine.QueueNet.JobInfo


    int c = job.getJobClass().getId();
    droppedJobs++;
    droppedJobsPerClass[c]++;

    JobInfo jobInfo = jobsList.lookFor(job);
    if (jobInfo != null) {
      //removes job from the jobInfoList of the node section
      jobsList.removeAfterDrop(jobInfo);

      //removes job from the jobInfoList of the node
      this.getOwnerNode().getJobInfoList().removeAfterDrop(jobInfo);
    }

    if (jobsList_node == null) {
      jobsList_node = this.getOwnerNode().getJobInfoList();
    }
    JobInfo jobInfo_node = jobsList_node.lookFor(job);
    if (jobInfo_node != null) {
      //removes job from the jobInfoList of the node
      jobsList_node.removeAfterDrop(jobInfo_node);
    }
    // Removes job from global jobInfoList - Bertoli Marco
View Full Code Here


          // If coolStart is true, this is the first job received or the
          // queue was empty: this job is sent immediately to the next
          // section and coolStart set to false.
          if (coolStart) {
            // No jobs in queue: Refresh jobsList and sends job (don't use put strategy, because queue is empty)
            queueJobInfoList.add(new JobInfo(job));
            //forward without any delay
            forward(queueJobInfoList.removeFirst().getJob());

            coolStart = false;
          } else {
View Full Code Here

      randomClassIndex = (int) Math.floor((randomEng.raw()) * classNumber);

      if (residualClassJobs[randomClassIndex] > 0) {
        //other jobs to be added
        Job newJob = new Job(jobClasses.get(randomClassIndex));
        JobInfo newJobInfo = new JobInfo(newJob);
       
        // Signals to node jobInfoList otherwise measures and Load dependent code are wrong
        this.getOwnerNode().getJobInfoList().add(newJobInfo);
        // Adds this job to the queue jobinfolist
        queueJobInfoList.add(newJobInfo);
View Full Code Here

TOP

Related Classes of jmt.engine.QueueNet.JobInfo

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.