Skip to content

Commit

Permalink
Fix Terracotta-OSS#20: Expose new methods through IClientTestEnvironment
Browse files Browse the repository at this point in the history
-getNumberOfStripes() and getNumberOfServersPerStripe()
-note that most users of this class don't support creating multi-stripe test environments
  • Loading branch information
jd0-sag committed Dec 20, 2016
1 parent 0333aa7 commit 87a80de
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ public interface IClientTestEnvironment {
* @return {@link IClusterInfo} which provides information about connecting cluster
*/
public IClusterInfo getClusterInfo();

/**
* @return The number of stripes in the current environment (always > 0).
*/
public int getNumberOfStripes();

/**
* @return The number of servers within a given stripe in the current environment (always > 0).
*/
public int getNumberOfServersPerStripe();
}

0 comments on commit 87a80de

Please sign in to comment.