Package org.olat.core.util.coordinate

Examples of org.olat.core.util.coordinate.Syncer


 
  /**
   *
   */
  public void testIncrementLaunchCounter() {
    Syncer syncer = CoordinatorManager.getCoordinator().getSyncer();
    assertTrue("syncer is not of type 'ClusterSyncer'", syncer instanceof ClusterSyncer);
    RepositoryEntry repositoryEntry = createRepository("T1_perf2", new Long(927888101));   
    final Long keyRepo = repositoryEntry.getKey();
    final OLATResourceable resourceable = repositoryEntry.getOlatResource();
    DBFactory.getInstance().closeSession();
View Full Code Here


 
  /**
   *
   */
  public void testIncrementDownloadCounter() {
    Syncer syncer = CoordinatorManager.getCoordinator().getSyncer();
    assertTrue("syncer is not of type 'ClusterSyncer'", syncer instanceof ClusterSyncer);
    RepositoryEntry repositoryEntry = createRepository("T1_perf2", new Long(927888102));   
    final Long keyRepo = repositoryEntry.getKey();
    final OLATResourceable resourceable = repositoryEntry.getOlatResource();
    DBFactory.getInstance().closeSession();
View Full Code Here

   *   1 to call incrementDownloadCounter
   * Breakpoint is set for 'setLastUsageNowFor', all other calls must wait.
   */
  public void testSetLastUsageNowFor() {
    Date lastSetLastUsageDate = null;
    Syncer syncer = CoordinatorManager.getCoordinator().getSyncer();
    assertTrue("syncer is not of type 'ClusterSyncer'", syncer instanceof ClusterSyncer);
    final int loop = 500;
    RepositoryEntry repositoryEntry = createRepository("T1_perf2", new Long(927888103));   
    final Long keyRepo = repositoryEntry.getKey();
    final OLATResourceable resourceable = repositoryEntry.getOlatResource();
View Full Code Here

    System.out.println("START testConcurrentIncrementLaunchCounter");
    System.out.println("**************************");
    final List<Exception> exceptionHolder = Collections.synchronizedList(new ArrayList<Exception>(1));
    final List<Boolean> statusList = Collections.synchronizedList(new ArrayList<Boolean>(1));

    Syncer syncer = CoordinatorManager.getCoordinator().getSyncer();
    assertTrue("syncer is not of type 'ClusterSyncer'", syncer instanceof ClusterSyncer);
    final int loop = 100;
    final int numberOfThreads = 3;
    RepositoryEntry repositoryEntry = createRepository("T1_perf2", new Long(927888104));   
    final Long keyRepo = repositoryEntry.getKey();
View Full Code Here

TOP

Related Classes of org.olat.core.util.coordinate.Syncer

Copyright © 2018 www.massapicom. 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.