org.exoplatform.services.jcr.ext.replication.test.concurrent
Class ConcurrentModificationTestCase
java.lang.Object
org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
org.exoplatform.services.jcr.ext.replication.test.concurrent.ConcurrentModificationTestCase
public class ConcurrentModificationTestCase
- extends BaseReplicationTestCase
Created by The eXo Platform SAS.
- Version:
- $Id: ConcurrentModificationTestCase.java 35186 2009-08-07 14:23:43Z pnedonosko $
- Author:
- Alex Reshetnyak
|
Constructor Summary |
ConcurrentModificationTestCase(RepositoryService repositoryService,
java.lang.String reposytoryName,
java.lang.String workspaceName,
java.lang.String userName,
java.lang.String password)
ConcurrentModificationTestCase constructor. |
|
Method Summary |
java.lang.StringBuffer |
compareData(java.lang.String srcRepoPath,
java.lang.String srcFileName,
java.lang.String destRepoPath,
java.lang.String destFileName)
compareData. |
java.lang.StringBuffer |
createContent(java.lang.String repoPath,
java.lang.String fileName,
java.lang.Long iterations,
java.lang.String simpleContent)
createContent. |
java.lang.StringBuffer |
startThreadUpdater(java.lang.String srcRepoPath,
java.lang.String srcFileName,
java.lang.String destRepoPath,
java.lang.String destFileName,
java.lang.Long iterations)
startThreadUpdater. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcurrentModificationTestCase
public ConcurrentModificationTestCase(RepositoryService repositoryService,
java.lang.String reposytoryName,
java.lang.String workspaceName,
java.lang.String userName,
java.lang.String password)
- ConcurrentModificationTestCase constructor.
- Parameters:
repositoryService - the RepositoryService.reposytoryName - the repository nameworkspaceName - the workspace nameuserName - the user namepassword - the password
createContent
public java.lang.StringBuffer createContent(java.lang.String repoPath,
java.lang.String fileName,
java.lang.Long iterations,
java.lang.String simpleContent)
- createContent.
- Parameters:
repoPath - the repository pathfileName - the file nameiterations - how many iterations for simple contentsimpleContent - the simple content
- Returns:
- StringBuffer return the responds {'ok', 'fail'}
compareData
public java.lang.StringBuffer compareData(java.lang.String srcRepoPath,
java.lang.String srcFileName,
java.lang.String destRepoPath,
java.lang.String destFileName)
- compareData.
- Parameters:
srcRepoPath - the source repository pathsrcFileName - the source file namedestRepoPath - the destination repository pathdestFileName - the destination file name
- Returns:
- StringBuffer return the responds {'ok', 'fail'}
startThreadUpdater
public java.lang.StringBuffer startThreadUpdater(java.lang.String srcRepoPath,
java.lang.String srcFileName,
java.lang.String destRepoPath,
java.lang.String destFileName,
java.lang.Long iterations)
- startThreadUpdater.
* @param srcRepoPath the source repository path
- Parameters:
srcFileName - the source file namedestRepoPath - the destination repository pathdestFileName - the destination file nameiterations - how many iterations the thread
- Returns:
- StringBuffer return the responds {'ok', 'fail'}
Copyright © 2011 eXo Platform SAS. All Rights Reserved.