org.exoplatform.services.jcr.ext.replication.test.concurrent
Class ConcurrentModificationTestCase

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
      extended by 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

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
BUFFER_SIZE, DIVIDER, log, ONE_SECONDS, repository, rootNode, session
 
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 org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
addNodePath, compareStream, compareStream, getNormalizePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 name
workspaceName - the workspace name
userName - the user name
password - the password
Method Detail

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 path
fileName - the file name
iterations - how many iterations for simple content
simpleContent - 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 path
srcFileName - the source file name
destRepoPath - the destination repository path
destFileName - 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 name
destRepoPath - the destination repository path
destFileName - the destination file name
iterations - how many iterations the thread
Returns:
StringBuffer return the responds {'ok', 'fail'}


Copyright © 2011 eXo Platform SAS. All Rights Reserved.