org.rundeck.api
Class NodeFiltersBuilder

java.lang.Object
  extended by org.rundeck.api.NodeFiltersBuilder

public class NodeFiltersBuilder
extends Object

Builder for node filters

Author:
Vincent Behar

Constructor Summary
NodeFiltersBuilder()
          Build a new instance.
 
Method Summary
 NodeFiltersBuilder excludeHostname(String hostname)
          Exclude nodes matching the given hostname
 NodeFiltersBuilder excludeName(String name)
          Exclude nodes matching the given name
 NodeFiltersBuilder excludeOsArch(String osArch)
          Exclude nodes matching the given OS-arch
 NodeFiltersBuilder excludeOsFamily(String osFamily)
          Exclude nodes matching the given OS-family
 NodeFiltersBuilder excludeOsName(String osName)
          Exclude nodes matching the given OS-name
 NodeFiltersBuilder excludeOsVersion(String osVersion)
          Exclude nodes matching the given OS-version
 NodeFiltersBuilder excludePrecedence(boolean excludePrecedence)
          Whether exclusion filters take precedence (default to yes).
 NodeFiltersBuilder excludeTags(String tags)
          Exclude nodes matching the given tags
 NodeFiltersBuilder excludeType(String type)
          Exclude nodes matching the given type
 NodeFiltersBuilder hostname(String hostname)
          Include nodes matching the given hostname
 NodeFiltersBuilder name(String name)
          Include nodes matching the given name
 NodeFiltersBuilder osArch(String osArch)
          Include nodes matching the given OS-arch
 NodeFiltersBuilder osFamily(String osFamily)
          Include nodes matching the given OS-family
 NodeFiltersBuilder osName(String osName)
          Include nodes matching the given OS-name
 NodeFiltersBuilder osVersion(String osVersion)
          Include nodes matching the given OS-version
 NodeFiltersBuilder tags(String tags)
          Include nodes matching the given tags
 Properties toProperties()
           
 NodeFiltersBuilder type(String type)
          Include nodes matching the given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFiltersBuilder

public NodeFiltersBuilder()
Build a new instance. At the end, use toProperties().

Method Detail

hostname

public NodeFiltersBuilder hostname(String hostname)
Include nodes matching the given hostname

Parameters:
hostname -
Returns:
this, for method chaining
See Also:
excludeHostname(String)

type

public NodeFiltersBuilder type(String type)
Include nodes matching the given type

Parameters:
type -
Returns:
this, for method chaining
See Also:
excludeType(String)

tags

public NodeFiltersBuilder tags(String tags)
Include nodes matching the given tags

Parameters:
tags -
Returns:
this, for method chaining
See Also:
excludeTags(String)

name

public NodeFiltersBuilder name(String name)
Include nodes matching the given name

Parameters:
name -
Returns:
this, for method chaining
See Also:
excludeName(String)

osName

public NodeFiltersBuilder osName(String osName)
Include nodes matching the given OS-name

Parameters:
osName -
Returns:
this, for method chaining
See Also:
excludeOsName(String)

osFamily

public NodeFiltersBuilder osFamily(String osFamily)
Include nodes matching the given OS-family

Parameters:
osFamily -
Returns:
this, for method chaining
See Also:
excludeOsFamily(String)

osArch

public NodeFiltersBuilder osArch(String osArch)
Include nodes matching the given OS-arch

Parameters:
osArch -
Returns:
this, for method chaining
See Also:
excludeOsArch(String)

osVersion

public NodeFiltersBuilder osVersion(String osVersion)
Include nodes matching the given OS-version

Parameters:
osVersion -
Returns:
this, for method chaining
See Also:
excludeOsVersion(String)

excludeHostname

public NodeFiltersBuilder excludeHostname(String hostname)
Exclude nodes matching the given hostname

Parameters:
hostname -
Returns:
this, for method chaining
See Also:
hostname(String), excludePrecedence(boolean)

excludeType

public NodeFiltersBuilder excludeType(String type)
Exclude nodes matching the given type

Parameters:
type -
Returns:
this, for method chaining
See Also:
type(String), excludePrecedence(boolean)

excludeTags

public NodeFiltersBuilder excludeTags(String tags)
Exclude nodes matching the given tags

Parameters:
tags -
Returns:
this, for method chaining
See Also:
tags(String), excludePrecedence(boolean)

excludeName

public NodeFiltersBuilder excludeName(String name)
Exclude nodes matching the given name

Parameters:
name -
Returns:
this, for method chaining
See Also:
name(String), excludePrecedence(boolean)

excludeOsName

public NodeFiltersBuilder excludeOsName(String osName)
Exclude nodes matching the given OS-name

Parameters:
osName -
Returns:
this, for method chaining
See Also:
osName(String), excludePrecedence(boolean)

excludeOsFamily

public NodeFiltersBuilder excludeOsFamily(String osFamily)
Exclude nodes matching the given OS-family

Parameters:
osFamily -
Returns:
this, for method chaining
See Also:
osFamily(String), excludePrecedence(boolean)

excludeOsArch

public NodeFiltersBuilder excludeOsArch(String osArch)
Exclude nodes matching the given OS-arch

Parameters:
osArch -
Returns:
this, for method chaining
See Also:
osArch(String), excludePrecedence(boolean)

excludeOsVersion

public NodeFiltersBuilder excludeOsVersion(String osVersion)
Exclude nodes matching the given OS-version

Parameters:
osVersion -
Returns:
this, for method chaining
See Also:
osVersion(String), excludePrecedence(boolean)

excludePrecedence

public NodeFiltersBuilder excludePrecedence(boolean excludePrecedence)
Whether exclusion filters take precedence (default to yes).

Parameters:
excludePrecedence -
Returns:
this, for method chaining

toProperties

public Properties toProperties()
Returns:
a new Properties instance


Copyright © 2011. All Rights Reserved.