org.exoplatform.services.jcr.ext.replication.test.bandwidth
Class BandwidthAllocationTestCase

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
      extended by org.exoplatform.services.jcr.ext.replication.test.bandwidth.BandwidthAllocationTestCase

public class BandwidthAllocationTestCase
extends BaseReplicationTestCase

Created by The eXo Platform SAS.

Version:
$Id: BandwidthAllocationTestCase.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
BandwidthAllocationTestCase(RepositoryService repositoryService, java.lang.String reposytoryName, java.lang.String workspaceName, java.lang.String userName, java.lang.String password)
          BandwidthAllocationTestCase constructor.
 
Method Summary
 java.lang.StringBuffer addBinaryPropertyOnly(java.lang.String repoPath, java.lang.String nodeName, java.lang.Long size, long iterations)
          addBinaryPropertyOnly.
 java.lang.StringBuffer addEmptyNode(java.lang.String repoPath, java.lang.String nodeName, long iterations)
          addEmptyNode.
 java.lang.StringBuffer addStringPropertyOnly(java.lang.String repoPath, java.lang.String nodeName, java.lang.Long size, long iterations)
          addStringPropertyOnly.
 java.lang.StringBuffer createBaseNode(java.lang.String repoPath, java.lang.String nodeName)
          createBaseNode.
 
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

BandwidthAllocationTestCase

public BandwidthAllocationTestCase(RepositoryService repositoryService,
                                   java.lang.String reposytoryName,
                                   java.lang.String workspaceName,
                                   java.lang.String userName,
                                   java.lang.String password)
BandwidthAllocationTestCase constructor.

Parameters:
repositoryService - the RepositoryService.
reposytoryName - the repository name
workspaceName - the workspace name
userName - the user name
password - the password
Method Detail

createBaseNode

public java.lang.StringBuffer createBaseNode(java.lang.String repoPath,
                                             java.lang.String nodeName)
createBaseNode.

Parameters:
repoPath - the repository path
nodeName - the node name
Returns:
StringBuffer return the responds {'ok', 'fail'}

addEmptyNode

public java.lang.StringBuffer addEmptyNode(java.lang.String repoPath,
                                           java.lang.String nodeName,
                                           long iterations)
addEmptyNode.

Parameters:
repoPath - the repository path
nodeName - the node name
iterations - how many iterations adding the empty node
Returns:
StringBuffer return the responds {'ok', 'fail'}

addStringPropertyOnly

public java.lang.StringBuffer addStringPropertyOnly(java.lang.String repoPath,
                                                    java.lang.String nodeName,
                                                    java.lang.Long size,
                                                    long iterations)
addStringPropertyOnly.

Parameters:
repoPath - the repository path
nodeName - the node name
size - the size of string property
iterations - how many iterations adding the string property
Returns:
StringBuffer return the responds {'ok', 'fail'}

addBinaryPropertyOnly

public java.lang.StringBuffer addBinaryPropertyOnly(java.lang.String repoPath,
                                                    java.lang.String nodeName,
                                                    java.lang.Long size,
                                                    long iterations)
addBinaryPropertyOnly.

Parameters:
repoPath - the repository path
nodeName - the node name
size - the size of binary property
iterations - how many iterations adding the binary property
Returns:
StringBuffer return the responds {'ok', 'fail'}


Copyright © 2012 eXo Platform SAS. All Rights Reserved.