Examples of Tracker


Examples of com.google.analytics.tracking.android.Tracker

        if (! trackerStarted ) {
            callbackContext.error("Tracker not started");
            return;
        }

        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        tracker.set("&uid", userId);
        callbackContext.success("Set user id" + userId);
    }
View Full Code Here

Examples of com.taskadapter.redmineapi.bean.Tracker

    Collection<Tracker> trackers = project.getTrackers();
    Assert.assertNotNull("Trackers list must not be NULL", trackers);
    Assert.assertEquals(3, trackers.size());

    Tracker tracker = project.getTrackerByName("Support");
    Assert.assertNotNull("Tracker must be not null", tracker);
    Integer expectedTrackerId = 3;
    Assert.assertEquals("checking id of 'support' tracker",
        expectedTrackerId, tracker.getId());
  }
View Full Code Here

Examples of com.taskadapter.redmineapi.bean.Tracker

        Issue reloadedFromRedmineIssue = issueManager.getIssueById(newIssue.getId());

        assertEquals(
                "Checking if 'get issue by ID' operation returned issue with same 'subject' field",
                originalSubject, reloadedFromRedmineIssue.getSubject());
        Tracker tracker = reloadedFromRedmineIssue.getTracker();
        assertNotNull("Tracker of issue should not be null", tracker);
        assertNotNull("ID of tracker of issue should not be null",
                tracker.getId());
        assertNotNull("Name of tracker of issue should not be null",
                tracker.getName());
    }
View Full Code Here

Examples of com.turn.ttorrent.tracker.Tracker

        return name.endsWith(".torrent");
      }
    };

    try {
      Tracker t = new Tracker(new InetSocketAddress(portValue.intValue()));

      File parent = new File(directory);
      for (File f : parent.listFiles(filter)) {
        logger.info("Loading torrent from " + f.getName());
        t.announce(TrackedTorrent.load(f));
      }

      logger.info("Starting tracker with {} announced torrents...",
        t.getTrackedTorrents().size());
      t.start();
    } catch (Exception e) {
      logger.error("{}", e.getMessage(), e);
      System.exit(2);
    }
  }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Tracker

        m_onDeparture = new Callback(unbind, new Class[] {ServiceReference.class}, false, m_handler.getInstanceManager());
        if (modification != null) {
            m_onModification = new Callback(modification, new Class[] {ServiceReference.class}, false, m_handler.getInstanceManager());
        }
        m_filter = filter;
        m_tracker = new Tracker(handler.getInstanceManager().getContext(), m_filter, this);
    }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Tracker

         */
        public SourceTracker(String name, BundleContext countext) throws ConfigurationException {
            String fil = "(&(" + Constants.OBJECTCLASS + "=" + ContextSource.class.getName() + ")(" + SOURCE_NAME + "=" + name + "))";
            try {
                Filter filter = countext.createFilter(fil);
                m_tracker = new Tracker(countext, filter, this);
            } catch (InvalidSyntaxException e) {
                throw new ConfigurationException("A Context source filter is invalid " + fil, e);
            }
        }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Tracker

    /**
     * Start the registry management.
     */
    public void start() {
        m_tracker = new Tracker(m_global, Factory.class.getName(), this);
        m_tracker.open();
    }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Tracker

            try {
                String filter = "(&(" + Constants.OBJECTCLASS + "=" + HandlerFactory.class.getName() + ")"
                    + "(" + Handler.HANDLER_TYPE_PROPERTY + "=" + CompositeHandler.HANDLER_TYPE + ")"
                    + "(factory.state=1)"
                    + ")";
                m_tracker = new Tracker(m_context, m_context.createFilter(filter), this);
                m_tracker.open();
            } catch (InvalidSyntaxException e) {
                m_logger.log(Logger.ERROR, "A factory filter is not valid: " + e.getMessage());
                stop();
            }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Tracker

    public void starting() {
        if (m_tracker == null) {
            if (m_requiredHandlers.size() != 0) {
                try {
                    String filter = "(&(" + Handler.HANDLER_TYPE_PROPERTY + "=" + PrimitiveHandler.HANDLER_TYPE + ")" + "(factory.state=1)" + ")";
                    m_tracker = new Tracker(m_context, m_context.createFilter(filter), this);
                    m_tracker.open();
                } catch (InvalidSyntaxException e) {
                    m_logger.log(Logger.ERROR, "A factory filter is not valid: " + e.getMessage()); //Holding the lock should not be an issue here.
                    stop();
                }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Tracker

    /**
     * Start the registry management.
     */
    public void start() {
        m_tracker = new Tracker(m_global, Factory.class.getName(), this);
        m_tracker.open();
    }
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.