Groovy Documentation

org.linkedin.glu.provisioner.core.model
[Groovy] Class SystemFilterBuilder

java.lang.Object
  org.linkedin.glu.provisioner.core.model.SystemFilterBuilder

class SystemFilterBuilder

DSL for SystemFilter.

 // in the code
 def filter = new SystemFilterBuilder().and {
   metadata.product = 'p1' // can use =
   initParameters.skeleton == 's1' // or ==
   tags = 't1;t2' // same as tags.hasAny('t1;t2')
   not {
     or {
       agent = 'h1'
       c('myClosure) {
         // this is a real closure: 'it' is of type SystemEntry!
         it.initParameters.war == 'w1'
       }
     }
   }
 }

 // as a String (call parse method)
 """
   metadata.product = 'p1' // can use =
   tags = 't1;t2' // same as tags.hasAny('t1;t2')
   initParameters.skeleton == 's1' // or ==
   not {
     or {
       agent = 'h1'
       c('myClosure) {
         // this is a real closure: 'it' is of type SystemEntry!
         it.initParameters.war == 'w1'
       }
     }
   }
"""
 
Authors:
ypujante@linkedin.com


Property Summary
LogicSystemFilterChain filter

 
Method Summary
SystemFilter addNewFilter(SystemFilter newFilter)

SystemFilter and(groovy.lang.Closure cl)

SystemFilter c(groovy.lang.Closure cl)

SystemFilter c(java.lang.String name, groovy.lang.Closure cl)

SystemFilter not(groovy.lang.Closure cl)

SystemFilter or(groovy.lang.Closure cl)

static SystemFilter parse(java.lang.String dsl)

Parses the dsl (see documentation)

java.lang.Object propertyMissing(java.lang.String name)

void propertyMissing(java.lang.String name, java.lang.Object value)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

filter

LogicSystemFilterChain filter


 
Method Detail

addNewFilter

SystemFilter addNewFilter(SystemFilter newFilter)


and

SystemFilter and(groovy.lang.Closure cl)


c

SystemFilter c(groovy.lang.Closure cl)


c

SystemFilter c(java.lang.String name, groovy.lang.Closure cl)


not

SystemFilter not(groovy.lang.Closure cl)


or

SystemFilter or(groovy.lang.Closure cl)


parse

static SystemFilter parse(java.lang.String dsl)
Parses the dsl (see documentation)


propertyMissing

java.lang.Object propertyMissing(java.lang.String name)


propertyMissing

void propertyMissing(java.lang.String name, java.lang.Object value)


 

Groovy Documentation