Examples of clearAll()


Examples of com.avaje.ebean.cache.ServerCacheManager.clearAll()

    Ebean.runCacheWarming(Country.class);
    Assert.assertTrue(countryCache.size() > 0);

    ServerCacheManager serverCacheManager = Ebean.getServerCacheManager();
    serverCacheManager.clearAll();
    Assert.assertEquals(0, countryCache.size());

    Ebean.runCacheWarming(Country.class);
    Assert.assertTrue(countryCache.size() > 0);
View Full Code Here

Examples of com.avaje.ebean.cache.ServerCacheManager.clearAll()

  private void init() {
   
    ResetBasicData.reset();
   
    ServerCacheManager serverCacheManager = Ebean.getServer(null).getServerCacheManager();
    serverCacheManager.clearAll();
    serverCacheManager.setCaching(Order.class, false);   
  }
 
  @Test
  public void withSelectNull() {
View Full Code Here

Examples of com.google.appengine.api.memcache.MemcacheService.clearAll()

    return memcacheService.deleteAll(counterNames);
  }

  public static void clearMemCache() {
    MemcacheService memcacheService = MemcacheServiceFactory.getMemcacheService(NAMESPACE);
    memcacheService.clearAll();
  }

  @SuppressWarnings("unchecked")
  private static <T> Future<Set<T>> futureEmptySet() {
    return (Future<Set<T>>) _futureEmptySet;
View Full Code Here

Examples of com.google.appengine.api.memcache.MemcacheService.clearAll()

    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        MemcacheService memcacheService = MemcacheServiceFactory.getMemcacheService();
        Stats stats = memcacheService.getStatistics();
        long itemCount = stats.getItemCount();
        logger.info("Clearing memcache, item count in cache: {}", itemCount);
        memcacheService.clearAll();
        resp.getWriter().write("OK, " + itemCount);
    }
}
View Full Code Here

Examples of com.google.appengine.api.memcache.MemcacheService.clearAll()

  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws IOException {
    response.setContentType("text/plain");
    MemcacheService ms = MemcacheServiceFactory.getMemcacheService();
    ms.clearAll();

    String chapterId = request.getParameter("id");
    Chapter chapter = retrieveChapter(chapterId);

    if (chapter == null) {
View Full Code Here

Examples of com.google.appengine.api.memcache.MemcacheService.clearAll()

public class ClearMemcacheServlet extends HttpServlet {

  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws IOException {
    MemcacheService ms = MemcacheServiceFactory.getMemcacheService();
    ms.clearAll();

    response.sendRedirect("/");
  }
}
View Full Code Here

Examples of com.ike.rwdccalc.Objects.Coordinates.clearAll()

          totalDistance.add(new DoubleObject(distance));
         
          // Let's set B to A, and clear B, so B can be set on the next iteration
          A.clearAll();
          A.set(B);
          B.clearAll();
        }
      }
    }
   
    // Add in the distance of the outside circle that the plane will have to travel as well
View Full Code Here

Examples of com.netflix.bdp.s3mper.alert.impl.AlertJanitor.clearAll()

        switch(cmd) {
            case LOG:
                janitor.writeLogs(queue, new Path(cmdline.getArgs()[2]));
                break;
            case PURGE:
                janitor.clearAll(queue);
                break;
            default:
                usage();
        }
    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.file.FileStore.clearAll()

            "Backup persistent store for HA cluster " + clusterID);

        FileStore fileStore = new FileStore(backupDir, false);

        // for backup, need to clear the store before storing anything.
        fileStore.clearAll(false);

        JDBCStore jdbcStore = null;
        try {
            jdbcStore = (JDBCStore)StoreManager.getStore();
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.file.FileStore.clearAll()

                FileStore bkrFS = null;
                JMSBridgeStore jmsbridgeStore = null;
                try {
                    String instanceRootDir = backupDir + File.separator + brokerID;
                    bkrFS = new FileStore(instanceRootDir, false);
                    bkrFS.clearAll(false);

                    // Destination table.
                    Destination[] dstArray = jdbcStore.getAllDestinations(brokerID);
                    for (int i = 0, len = dstArray.length; i < len; i++) {
                        DestinationUID did = dstArray[i].getDestinationUID();
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.