Skip to content

Instantly share code, notes, and snippets.

View ghenzler's full-sized avatar
🚀
Launching...

Georg Henzler ghenzler

🚀
Launching...
View GitHub Profile
@ghenzler
ghenzler / breaklet-max-childnodes.groovy
Last active September 9, 2018 16:10
Checks how many child nodes can exist on same level
//-------------------------------------
// *** Max Child Nodes
//-------------------------------------
// Breaklet Config
//-------------------------------------
def breakForDurationInSec = 120
def basePath = "/content/nodetest"
def nodesToCreatePerIteration = 1000
def primaryType = "nt:unstructured" // "oak:Unstructured" => not orderable, "nt:unstructured" => orderable
@ghenzler
ghenzler / breaklet-base.groovy
Last active September 9, 2018 16:02
breaklet-base
// --------------------------------------------------------------------
// Breaklet Base Utilities (to be copied at bottom of other breaklets)
// --------------------------------------------------------------------
import org.apache.jackrabbit.commons.JcrUtils
import org.apache.commons.lang3.StringUtils
import java.util.concurrent.ThreadLocalRandom
import javax.jcr.query.*
import org.apache.sling.jcr.api.*
import org.apache.sling.api.resource.observation.*
import java.util.Properties