Examples of startTimer()


Examples of org.apache.sling.api.request.RequestProgressTracker.startTimer()

        Resource resource = request.getResource();

        // start tracking servlet resolution
        RequestProgressTracker tracker = request.getRequestProgressTracker();
        String timerName = "resolverServlet(" + resource + ")";
        tracker.startTimer(timerName);

        Servlet servlet = null;

        final String type = resource.getResourceType();
        if(log.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.sling.api.request.RequestProgressTracker.startTimer()

        }

        // start tracker
        RequestProgressTracker tracker = request.getRequestProgressTracker();
        String timerName = "handleError:status=" + status;
        tracker.startTimer(timerName);

        try {

            // find the error handler component
            Resource resource = getErrorResource(request);
View Full Code Here

Examples of org.apache.sling.api.request.RequestProgressTracker.startTimer()

        // start tracker
        RequestProgressTracker tracker = request.getRequestProgressTracker();
        String timerName = "handleError:throwable="
            + throwable.getClass().getName();
        tracker.startTimer(timerName);

        try {

            // find the error handler component
            Servlet servlet = null;
View Full Code Here

Examples of org.auraframework.service.LoggingService.startTimer()

     * @throws QuickFixException
     */
    public BaseComponentImpl(DefDescriptor<D> descriptor, Map<String, Object> attributes) throws QuickFixException {
        this(descriptor, null, (Map<String, Object>) null, null, null);
        LoggingService loggingService = Aura.getLoggingService();
        loggingService.startTimer(LoggingService.TIMER_COMPONENT_CREATION);
        try {
            this.attributeSet.set(attributes);
            finishInit();
        } finally {
            loggingService.stopTimer(LoggingService.TIMER_COMPONENT_CREATION);
View Full Code Here

Examples of org.auraframework.system.LoggingContext.startTimer()

    @Override
    public void startTimer(String name) {
        LoggingContext lc = getLoggingContext();
        if (lc != null) {
            lc.startTimer(name);
        }
    }

    @Override
    public void startAction(String actionName) {
View Full Code Here

Examples of org.auto.comet.SocketManager.startTimer()

  }

  protected void initSocketManager(CometConfigMetadata cometConfig)
      throws ServletException {
    SocketManager socketManager = creatSocketManager();
    socketManager.startTimer();
    Integer timeout = cometConfig.getTimeout();
    if (null != timeout) {
      long asyncTimeout = (long) (60000l * timeout);
      socketManager.setAsyncTimeout(asyncTimeout);
    }
 
View Full Code Here

Examples of org.jboss.test.timer.interfaces.TimerEntity.startTimer()

   public void testEntityBeanTimer()
      throws Exception
   {
      TimerEntityHome home = (TimerEntityHome) getEJBHome(TimerEntityHome.JNDI_NAME);
      TimerEntity entity = home.create(new Integer(111));
      entity.startTimer(SHORT_PERIOD);
      Thread.sleep(12 * SHORT_PERIOD);
      entity.stopTimer();
      int lCount = entity.getTimeoutCount();
      assertTrue("Timeout was expected to be called at least 10 times but was "
         + "only called: " + lCount + " times",
View Full Code Here

Examples of org.jboss.test.timer.interfaces.TimerEntity.startTimer()

      throws Exception
   {
      login();
      TimerEntityHome home = (TimerEntityHome) getEJBHome(TimerEntityHome.SECURED_JNDI_NAME);
      TimerEntity entity = home.create(new Integer(111));
      entity.startTimer(SHORT_PERIOD);
      Thread.sleep(12 * SHORT_PERIOD);
      entity.stopTimer();
      int count = entity.getTimeoutCount();
      assertTrue("Timeout was expected to be called at least 10 times but was "
         + "only called: " + count + " times",
View Full Code Here

Examples of org.jboss.test.timer.interfaces.TimerEntity.startTimer()

   public void testEntityBeanTimer()
      throws Exception
   {
      TimerEntityHome home = (TimerEntityHome) getEJBHome(TimerEntityHome.JNDI_NAME);
      TimerEntity entity = home.create(new Integer(111));
      entity.startTimer(SHORT_PERIOD);
      Thread.sleep(12 * SHORT_PERIOD);
      entity.stopTimer();
      int lCount = entity.getTimeoutCount();
      assertTrue("Timeout was expected to be called at least 10 times but was "
         + "only called: " + lCount + " times",
View Full Code Here

Examples of org.jboss.test.timer.interfaces.TimerEntityExt.startTimer()

   public void testEntityBeanTimerHasTimerServiceAfterCancellationStd() throws Exception
   {
      String jndi = "ejb/test/timer/TimerEntityExtStd";
      TimerEntityExtHome home = (TimerEntityExtHome) getEJBHome(jndi);
      TimerEntityExt entity = home.create(new Integer(333));
      entity.startTimer(SHORT_PERIOD);
      Thread.sleep(12 * SHORT_PERIOD);
      assertTrue("Timer service should be associated with bean." , entity.hasTimerService(jndi));
      entity.stopTimer();
      int lCount = entity.getTimeoutCount();
      assertTrue("Timeout was expected to be called at least 10 times but was "
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.