Skip to content

Commit

Permalink
GEODE-1184: Removed misplaced System.out and renamed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuynh1 committed Apr 6, 2016
1 parent 36cb06e commit 7413804
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public void testEnd2EndFunctionExecution() {

private void e2eTextSearchForRegionType(RegionShortcut type) {
final String regionName = type.toString();
createPartitionRegionAndIndex(server1, regionName, type);
createRegionAndIndex(server1, regionName, type);
putDataInRegion(server1, regionName);
createPartitionRegionAndIndex(server2, regionName, type);
createRegionAndIndex(server2, regionName, type);
// Make sure we can search from both members
executeTextSearch(server1, regionName);
executeTextSearch(server2, regionName);
Expand All @@ -90,7 +90,7 @@ private void e2eTextSearchForRegionType(RegionShortcut type) {
// Make sure the search still works
executeTextSearch(server1, regionName);
executeTextSearch(server2, regionName);
destroyRegion(server2, regionName);
destroyPartitionRegion(server2, regionName);
}

private void rebalanceRegion(VM vm) {
Expand Down Expand Up @@ -157,8 +157,8 @@ public Object call() throws Exception {
vm.invoke(createSomeData);
}

private void createPartitionRegionAndIndex(VM vm, final String regionName, final RegionShortcut type) {
SerializableCallable<Object> createPartitionRegion = new SerializableCallable<Object>("createRegionAndIndex") {
private void createRegionAndIndex(VM vm, final String regionName, final RegionShortcut type) {
SerializableCallable<Object> createRegion = new SerializableCallable<Object>("createRegionAndIndex") {
private static final long serialVersionUID = 1L;

public Object call() throws Exception {
Expand All @@ -168,7 +168,6 @@ public Object call() throws Exception {
service.createIndex(INDEX_NAME, regionName, "text");
RegionFactory<Object, Object> regionFactory = cache.createRegionFactory(type);
if (regionName.contains("OVERFLOW")) {
System.out.println("yello");
EvictionAttributesImpl evicAttr = new EvictionAttributesImpl().setAction(EvictionAction.OVERFLOW_TO_DISK);
evicAttr.setAlgorithm(EvictionAlgorithm.LRU_ENTRY).setMaximum(1);
regionFactory.setEvictionAttributes(evicAttr);
Expand All @@ -177,11 +176,11 @@ public Object call() throws Exception {
return null;
}
};
vm.invoke(createPartitionRegion);
vm.invoke(createRegion);
}

private void destroyRegion(VM vm, final String regionName) {
SerializableCallable<Object> createPartitionRegion = new SerializableCallable<Object>("destroyRegion") {
private void destroyPartitionRegion(VM vm, final String regionName) {
SerializableCallable<Object> createPartitionRegion = new SerializableCallable<Object>("destroyPartitionRegion") {
private static final long serialVersionUID = 1L;

public Object call() throws Exception {
Expand Down

0 comments on commit 7413804

Please sign in to comment.