Examples of Probe


Examples of org.mule.tck.probe.Probe

    {
        createSampleFeedFileInWorkDirectory();

        final EntryReceiver component = (EntryReceiver) getComponent("feedSplitterConsumer");
        Prober prober = new PollingProber(10000, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                return component.getCount() == SampleFeed.ENTRIES_IN_RSS_FEED;
            }
View Full Code Here

Examples of org.mule.tck.probe.Probe

    }
   
    private void assertAttachmentWasSaved()
    {
        Prober prober = new PollingProber(10000, 100);
        prober.check(new Probe()
        {
            public boolean isSatisfied()
            {
                // FIXME DZ: don't know why these are empty, so just compare the saved email
                // file to the expected content
View Full Code Here

Examples of org.olat.testutils.codepoints.client.Probe

          codepointClient.getCodepoint("org.olat.core.util.cache.n.impl.cluster.ClusterCacher.sendChangedKeys").getHitCount()));

      Set<Entry<String, Probe>> s = probes_.entrySet();
      for (Iterator<Entry<String, Probe>> it = s.iterator(); it.hasNext();) {
        Entry<String, Probe> entry = it.next();
        Probe p = entry.getValue();
        ll.add(
            new PerfItem(
                entry.getKey(),
                p.getStatValue(StatId.MIN_TIME_ELAPSED),
                p.getStatValue(StatId.MAX_TIME_ELAPSED),
                p.getStatValue(StatId.LAST_TIME_ELAPSED),
                p.getStatValue(StatId.TOTAL_AVERAGE_TIME_ELAPSED),
                p.getStatValue(StatId.LAST_10MEASUREMENT_AVERAGE_TIME_ELAPSED),
                p.getStatValue(StatId.LAST_100MEASUREMENT_AVERAGE_TIME_ELAPSED),
                p.getStatValue(StatId.LAST_1000MEASUREMENT_AVERAGE_TIME_ELAPSED),
                p.getStatValue(StatId.TOTAL_FREQUENCY),
                p.getStatValue(StatId.LAST_10_FREQUENCY),
                p.getStatValue(StatId.LAST_100_FREQUENCY),
                p.getStatValue(StatId.LAST_1000_FREQUENCY),
                p.getStart().getHitCount()));
      }
    } catch (CommunicationException e) {
      ll.add(new PerfItem("Codepoint problem - no stats available there", -1,-1,-1,-1,-1, -1, -1, -1, -1, -1, -1, -1 ));
    }
    return ll;
View Full Code Here

Examples of org.olat.testutils.codepoints.client.Probe

    if (isStarted_) {
      // then stop
      isStarted_ = false;
      for (Iterator<Probe> it = probes_.values().iterator(); it
          .hasNext();) {
        Probe p = it.next();
        try{
          p.close();
        } catch(CommunicationException e) {
          // ignore
        }
      }
      probes_.clear();
View Full Code Here

Examples of org.wso2.carbon.discovery.messages.Probe

     * @throws DiscoveryException if an error occured while contacting the WS-D proxy
     */
    public TargetService[] probe(QName[] types, URI[] scopes, String matchBy)
            throws DiscoveryException {

        Probe probe = new Probe();
        probe.setTypes(types);
        probe.setScopes(scopes);

        if (matchBy == null) {
            matchBy = DiscoveryConstants.SCOPE_MATCH_RULE_DEAULT;
        }
        probe.setMatchBy(URI.create(matchBy));

        serviceClient.getOptions().setAction(DiscoveryConstants.WS_DISCOVERY_PROBE_ACTION);

        try {
            OMElement probeMatch = serviceClient.sendReceive(DiscoveryOMUtils.toOM(probe,
View Full Code Here

Examples of org.wso2.carbon.discovery.messages.Probe

                        "axis2ns1:MyType yt:YourType</wsd:Types>" +
                        "<wsd:Scopes>" + getURIList(scopes) + "</wsd:Scopes>" +
                        "</wsd:Probe>";
        System.out.println(getURIList(xaddr));
        OMElement original = AXIOMUtil.stringToOM(input);
        Probe probe = DiscoveryOMUtils.getProbeFromOM(original);
        assertURIArrayEquals(scopes, probe.getScopes());
        assertQNameArrayEquals(types, probe.getTypes());

        OMElement serialization = DiscoveryOMUtils.toOM(probe, OMAbstractFactory.getSOAP11Factory());
        System.out.println(serialization.toString());
        assertXMLEquals(input, serialization);  
    }
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.