Examples of LoadInfo


Examples of q_impress.pmi.lib.jmt.LoadInfo

  /**
   * Routes the requests for a specific user class through the service centers network.
   * @param userClass the user class to route.
   */
  public void routeUserClass(UserClass userClass) {
    LoadInfo loadInfo = userClass.getPath().getLoadInfos().get(associatedDevice);
   
    Map<String,Double> routes = new HashMap<String,Double>();
    if (loadInfo != null) { // route through server
      routes.put(skipConnection.getTarget(), 0d);
      routes.put(inputConnection.getTarget(), 1d);
View Full Code Here

Examples of q_impress.pmi.lib.jmt.LoadInfo

       
        Artifact artifact = actionDec.getImplementingArtifact();
        if (artifact != null) { // update loads
          ArtifactDecorator artifactDec = (ArtifactDecorator) decFactory.getDecorator(artifact);
         
          LoadInfo loadInfo = loadInfos.get(artifactDec.getDeploymentDevice());
          if (loadInfo == null) {
            loadInfo = new LoadInfo(artifactDec.getDeploymentDevice());
            loadInfos.put(loadInfo.getTargetDevice(), loadInfo);
          }
          loadInfo.updateLoad(demands);
        }
      } catch (InvalidContextException e) { // never happens
      } catch (ClassNotFoundException e) { // never happens
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.