Examples of Sample


Examples of fr.soleil.bean.samplesbean.model.Sample

                        int cellNumber = Integer.valueOf(configList.get(1));
                        for (int k = 2; k < configList.size(); k++) {
                            int order = Integer.valueOf(configList.get(k));
                            orderList.add(order);
                        }
                        result.add(new Sample(name, rackNumber, cellNumber,null, positions, orderList));
                    } catch (Exception e) {
                        JXErrorPane.showDialog(e);
                        JOptionPane.showMessageDialog(null, "The device " + proxy.get_name() + " configuration is inconsistent.\n Please check the properties and relaunch this application.", "Alert", JOptionPane.ERROR_MESSAGE);

                    }
View Full Code Here

Examples of models.Sample

      return check;
    }

    String name = jsonText("name");

    Sample m = new Sample();
    m.setName(name);
   
    Long key = dao.create(m);
    if (log.isDebugEnabled())
      log.debug("key : " + key);
View Full Code Here

Examples of org.apache.jmeter.visualizers.Sample

    */
   @Test
   public void testUpdateGui_Sample()
   {
      System.out.println("updateGui");
      Sample sample = null;
      instance.updateGui(sample);
   }
View Full Code Here

Examples of org.broadinstitute.gatk.engine.samples.Sample

        violationFamilies.clear();
        clearInheritanceMap();

        for(Set<Sample> family : families.values()){
            Iterator<Sample> sampleIterator = family.iterator();
            Sample sample;
            while(sampleIterator.hasNext()){
                sample = sampleIterator.next();
                if(sample.getParents().size() > 0)
                    updateViolations(sample.getFamilyID(),sample.getMaternalID(), sample.getPaternalID(), sample.getID() ,vc);
            }
        }
        return violations_total;
    }
View Full Code Here

Examples of org.eclipse.test.internal.performance.data.Sample

    map = new HashMap<Dimension, Scalar>();
    map.put(Dimension.CPU_TIME, new Scalar((Dim) Dimension.CPU_TIME, (long) performanceResult.getTime() * 1000));
    points[1] = new DataPoint(1, map);

    final Sample sample = new Sample(scenarioId, System.currentTimeMillis(), Collections.EMPTY_MAP, points);
    sample.tagAsSummary(true, performanceResult.getName(), new Dimension[] {Dimension.CPU_TIME}, 0, null);
    Variations variations = PerformanceTestPlugin.getVariations();
    variations.put("browser", suiteName);
    DB.store(variations, sample);

    PerformanceMeter meter = new InternalPerformanceMeter(scenarioId) {
View Full Code Here

Examples of org.jacorb.test.Sample

    }

    @Test
    public void test_ping()
    {
        Sample sample = server.getObject();
        int result = sample.ping (17);
        assertEquals (18, result);
    }
View Full Code Here

Examples of org.jboss.as.console.client.samples.Sample

        return layout;
    }

    private void showSample(String id) {

        Sample match = null;

        for(Sample candidate : samples)
        {
            if(id.equals(candidate.getId()))
            {
                match = candidate;
                break;
            }
        }

        if(null==match)
            throw new RuntimeException("No matching sample: "+id);

        content.clear();
        content.add(match.asWidget(), match.getName());
        content.selectTab(0);

    }
View Full Code Here

Examples of org.jrobin.core.Sample

  public void reset()
  {
    try
    {
      RrdDb rrdDb = _rrdPool.requestRrdDb(_rrdPath);
      Sample sample = rrdDb.createSample();
      sample.setValue("calls", (Integer) _connection.getAttribute(_sessionManger, "callSessions"));
      long totalMemory = __runtime.totalMemory();
      sample.setValue("maxMemory", __runtime.maxMemory());
      sample.setValue("totalMemory", totalMemory);
      sample.setValue("usedMemory", totalMemory - __runtime.freeMemory());
      // No values are set for incomingMessages, outgoingMessages to reset these counters.
      sample.update();
      _rrdPool.release(rrdDb);
    }
    catch (Exception e)
    {
      _logger.warn("Unable to set statistics", e);
View Full Code Here

Examples of org.jrobin.core.Sample

  public void updateDb()
  {
    try
    {
      RrdDb rrdDb = _rrdPool.requestRrdDb(_rrdPath);
      Sample sample = rrdDb.createSample();
      if (_connection.isRegistered(_sessionManger))
        sample.setValue("calls", (Integer) _connection.getAttribute(_sessionManger, "callSessions"));
     
      long totalMemory = __runtime.totalMemory();
      sample.setValue("maxMemory", __runtime.maxMemory());
      sample.setValue("totalMemory", totalMemory);
      sample.setValue("usedMemory", totalMemory - __runtime.freeMemory());
      if (_connection.isRegistered(ConsoleFilter.CONNECTOR_MANAGER))
      {
        sample.setValue("incomingMessages",
            (Long) _connection.getAttribute(ConsoleFilter.CONNECTOR_MANAGER, "messagesReceived"));
        sample.setValue("outgoingMessages",
            (Long) _connection.getAttribute(ConsoleFilter.CONNECTOR_MANAGER, "messagesSent"));
      }
     
      int nbCpu = (Integer) _connection.getAttribute(OPERATING_SYSTEM, "AvailableProcessors");
      if (_cpuStatAvailable)
      {
        long processCpuTime = (Long) _connection.getAttribute(OPERATING_SYSTEM, "ProcessCpuTime");
        sample.setValue("cpu", processCpuTime / nbCpu);
      }
     
      long timeInGc = 0;
      Set<ObjectName> garbageCollections = _connection.queryNames(GARBAGE_COLLECTORS, null);
      for (ObjectName objectName : garbageCollections)
      {
        timeInGc += (Long) _connection.getAttribute(objectName, "CollectionTime");
      }
      sample.setValue("timeInGc", timeInGc / nbCpu);
     
     
      sample.update();
      _rrdPool.release(rrdDb);
    }
    catch (Exception e)
    {
      _logger.warn("Unable to set statistics", e);
View Full Code Here

Examples of org.jrobin.core.Sample

    m_db.close();
  }

  @Test
  public void testRrdUpdate() throws Exception {
    Sample sample = null;
    long startTime = System.currentTimeMillis() - 1000;
//    for (int i = 0; i < 1000000; i++) {
      sample = m_db.createSample();
      sample.setAndUpdate(startTime + ":" + m_random.nextInt());
      //sample.setAndUpdate(startTime++ + ":" + m_random.nextInt());
//    }
  }
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.