org.apache.sling.testing.tools.sling
Class SlingInstanceManager

java.lang.Object
  extended by org.apache.sling.testing.tools.sling.SlingInstanceManager
All Implemented Interfaces:
Iterable<SlingInstance>

public class SlingInstanceManager
extends Object
implements Iterable<SlingInstance>

Helper class for running tests against multiple Sling instances, takes care of starting the Sling instances and waiting for them to be ready.


Constructor Summary
SlingInstanceManager(Properties systemProperties, String... instanceNames)
          Get configuration but do not start server yet, that's done on demand
SlingInstanceManager(String... instanceNames)
           
 
Method Summary
 SlingInstance getInstance(String instanceName)
           
 Iterator<SlingInstance> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlingInstanceManager

public SlingInstanceManager(String... instanceNames)

SlingInstanceManager

public SlingInstanceManager(Properties systemProperties,
                            String... instanceNames)
Get configuration but do not start server yet, that's done on demand

Method Detail

getInstance

public SlingInstance getInstance(String instanceName)

iterator

public Iterator<SlingInstance> iterator()
Specified by:
iterator in interface Iterable<SlingInstance>


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.