Examples of stop()


Examples of org.jboss.util.TimedCachePolicy.stop()

      tcp.setResolution(2);
      Object value = tcp.get("key");
      assertTrue("key has a value", value != null);
      Thread.sleep(8000);
      value = tcp.get("key");
      tcp.stop();
      assertTrue("key has no value", value == null);
   }

   /**
    Test start/stop/start sequence.
View Full Code Here

Examples of org.jboss.util.threadpool.BasicThreadPool.stop()

         assertEquals(expected, started.tasks);
         assertEquals(expected, completed.tasks);
      }
      finally
      {
         pool.stop(true);
      }
   }

   /**
    * Multiple Basic test
View Full Code Here

Examples of org.jboss.varia.scheduler.SingleScheduleProviderMBean.stop()

                 // JBAS-8382 if (now - startDate) > Integer.MAX_VALUE and period == 1, then skip repeats can be negative and it causes wrong (too much) repetition
                 SingleScheduleProviderMBean pr = (SingleScheduleProviderMBean)
                     MBeanServerInvocationHandler.newProxyInstance(getServer(), provider,
                     SingleScheduleProviderMBean.class, false);
                 pr.setStartDate(String.valueOf(System.currentTimeMillis() - Integer.MAX_VALUE - 1));
                 pr.stop();
                 pr.start();

     Thread.sleep(1000); // just wait for a while
     check(ex, 0, 0); // No repetitions left because start date is in the past and could not be reached by Initial Repetitions * Schedule Period
    
View Full Code Here

Examples of org.jboss.virtual.plugins.cache.CombinedVFSCache.stop()

      }
      finally
      {
         VFSCacheFactory.setInstance(null);
         if(cache != null)
           cache.stop();
      }
   }

   public void testCacheUsage() throws Exception
   {
View Full Code Here

Examples of org.jboss.virtual.plugins.cache.IterableTimedVFSCache.stop()

         doTestClassLoader();
      }
      finally
      {
         VFSCacheFactory.setInstance(null);
         cache.stop();        
      }
   }

   @SuppressWarnings({"unchecked", "deprecation"})
   private void doTestClassLoader() throws IOException
View Full Code Here

Examples of org.jboss.virtual.spi.cache.VFSCache.stop()

      {
         if (cache instanceof CombinedWrapperVFSCache)
         {
            CombinedWrapperVFSCache cwvc = (CombinedWrapperVFSCache)cache;
            VFSCache temp = cwvc.getTemp();
            temp.stop();
         }
         cache.stop();
      }
   }
View Full Code Here

Examples of org.jboss.web.tomcat.service.session.JBossCacheManager.stop()

         clearNotifications(hsl0, hsal0, null, null, SessionSpecListenerAttribute.invocations);
        
        
      }
     
      jbcm1.stop();
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
      }
View Full Code Here

Examples of org.jboss.web.tomcat.service.session.persistent.DataSourcePersistentManager.stop()

         clearNotifications(hsl0, hsal0, null, null, SessionSpecListenerAttribute.invocations);
        
        
      }
     
      mgr1.stop();
     
      if (!notify)
      {
         validateNoNotifications(hsl0, hsal0, hsl1, hsal1);
      }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.LifecycleHandler.stop()

        if (stopServices) {
            final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class);
            for (final Endpoint ep : dep.getService().getEndpoints()) {
                LifecycleHandler lifecycleHandler = getLifecycleHandler(ep, false);
                if (lifecycleHandler != null)
                   lifecycleHandler.stop(ep);
                EndpointService.uninstall(ep, unit);
            }
        } else {
            super.stop(dep);
        }
View Full Code Here

Examples of org.jbpm.job.executor.JobExecutor.stop()

  }

  public void contextDestroyed(ServletContextEvent event) {
    JobExecutor jobExecutor = jbpmConfiguration.getJobExecutor();
    if (jobExecutor != null)
      jobExecutor.stop();
  }

}
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.