Examples of SamplePackage


Examples of com.pcmsolutions.device.EMU.E4.packaging.SamplePackage

            fc.setAccessory(p);
            fc.addPropertyChangeListener(new PropertyChangeListener() {
                public void propertyChange(PropertyChangeEvent evt) {
                    if (evt.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) {
                        SamplePackage pkg = null;
                        File sf = fc.getSelectedFile();
                        if (sf != null && !sf.isDirectory())
                            try {
                                pkg = PackageFactory.extractSamplePackage(fc.getSelectedFile());
                                phip.setHeader(pkg.getHeader());
                            } catch (CommandFailedException e) {
                                phip.setText("error");
                            }
                        else
                            phip.setHeader(null);
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.packaging.SamplePackage

        if (err != null)
            throw new CommandFailedException(err.getMessage());
    }

    private void createAndSaveSamplePackage(SampleContext sc, Integer[] indexes, String name, String notes, AudioFileFormat.Type format) throws CommandFailedException {
        SamplePackage pkg = null;
        try {
            pkg = PackageFactory.createSamplePackage(sc, indexes, name, notes, null, format);
        } catch (PackageGenerationException e) {
            throw new CommandFailedException("Error saving sample package: " + e.getMessage());
        }
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

                // TODO could these be done earlier (or just once?)
                JMeterContext threadContext = getThreadContext();
                JMeterVariables threadVars = threadContext.getVariables();

                SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
                if (pack == null) {
                    log.warn("Could not fetch SamplePackage");
                } else {
                    SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);
                    // We must set res to null now, before sending the event for the transaction,
                    // so that we can ignore that event in our sampleOccured method
                    res = null;
                    // bug 50032
                    if (!getThreadContext().isReinitializingSubControllers()) {
                        lnf.notifyListeners(event, pack.getSampleListeners());
                    }
                }
            }
        }
        else {
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

         
        //TODO could these be done earlier (or just once?)
        threadContext = getThreadContext();
        threadVars = threadContext.getVariables();
       
        SamplePackage pack = (SamplePackage)
                      threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
        if (pack == null)
        {
          log.warn("Could not fetch SamplePackage");
        }
        else
        {
          lnf.notifyListeners(new SampleEvent(res,getName()),pack.getSampleListeners());
        }
        res=null;
          }
        }
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

        // TODO could these be done earlier (or just once?)
                JMeterContext threadContext = getThreadContext();
                JMeterVariables threadVars = threadContext.getVariables();

        SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
        if (pack == null) {
          log.warn("Could not fetch SamplePackage");
        } else {
                    SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars);
                    // We must set res to null now, before sending the event for the transaction,
                    // so that we can ignore that event in our sampleOccured method
                    res = null;
          lnf.notifyListeners(event, pack.getSampleListeners());
        }
      }
    }
        else {
            // We have sampled one of our children
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

     */
    protected void notifyListeners() {
        // TODO could these be done earlier (or just once?)
        JMeterContext threadContext = getThreadContext();
        JMeterVariables threadVars = threadContext.getVariables();
        SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
        if (pack == null) {
            // If child of TransactionController is a ThroughputController and TPC does
            // not sample its children, then we will have this
            // TODO Should this be at warn level ?
            log.warn("Could not fetch SamplePackage");
        } else {
            SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);
            // We must set res to null now, before sending the event for the transaction,
            // so that we can ignore that event in our sampleOccured method
            res = null;
            // bug 50032
            if (!getThreadContext().isReinitializingSubControllers()) {
                lnf.notifyListeners(event, pack.getSampleListeners());
            }
        }
    }
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

     */
    protected void notifyListeners() {
        // TODO could these be done earlier (or just once?)
        JMeterContext threadContext = getThreadContext();
        JMeterVariables threadVars = threadContext.getVariables();
        SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
        if (pack == null) {
            // If child of TransactionController is a ThroughputController and TPC does
            // not sample its children, then we will have this
            // TODO Should this be at warn level ?
            log.warn("Could not fetch SamplePackage");
        } else {
            SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);
            // We must set res to null now, before sending the event for the transaction,
            // so that we can ignore that event in our sampleOccured method
            res = null;
            // bug 50032
            if (!getThreadContext().isReinitializingSubControllers()) {
                lnf.notifyListeners(event, pack.getSampleListeners());
            }
        }
    }
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

                // TODO could these be done earlier (or just once?)
                JMeterContext threadContext = getThreadContext();
                JMeterVariables threadVars = threadContext.getVariables();

                SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
                if (pack == null) {
                  // If child of TransactionController is a ThroughputController and TPC does
                  // not sample its children, then we will have this
                  // TODO Should this be at warn level ?
                    log.warn("Could not fetch SamplePackage");
                } else {
                    SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);
                    // We must set res to null now, before sending the event for the transaction,
                    // so that we can ignore that event in our sampleOccured method
                    res = null;
                    // bug 50032
                    if (!getThreadContext().isReinitializingSubControllers()) {
                        lnf.notifyListeners(event, pack.getSampleListeners());
                    }
                }
            }
        }
        else {
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

     */
    protected void notifyListeners() {
        // TODO could these be done earlier (or just once?)
        JMeterContext threadContext = getThreadContext();
        JMeterVariables threadVars = threadContext.getVariables();
        SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
        if (pack == null) {
            // If child of TransactionController is a ThroughputController and TPC does
            // not sample its children, then we will have this
            // TODO Should this be at warn level ?
            log.warn("Could not fetch SamplePackage");
        } else {
            SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);
            // We must set res to null now, before sending the event for the transaction,
            // so that we can ignore that event in our sampleOccured method
            res = null;
            // bug 50032
            if (!getThreadContext().isReinitializingSubControllers()) {
                lnf.notifyListeners(event, pack.getSampleListeners());
            }
        }
    }
View Full Code Here

Examples of org.apache.jmeter.threads.SamplePackage

                // TODO could these be done earlier (or just once?)
                JMeterContext threadContext = getThreadContext();
                JMeterVariables threadVars = threadContext.getVariables();

                SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);
                if (pack == null) {
                    log.warn("Could not fetch SamplePackage");
                } else {
                    SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars);
                    // We must set res to null now, before sending the event for the transaction,
                    // so that we can ignore that event in our sampleOccured method
                    res = null;
                    lnf.notifyListeners(event, pack.getSampleListeners());
                }
            }
        }
        else {
            // We have sampled one of our children
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.