Class InstanceMatch.Builder<B extends InstanceMatch.Builder<?>>
- java.lang.Object
-
- com.tick42.glue.core.interop.discovery.InstanceMatch.Builder<B>
-
- Direct Known Subclasses:
ServerQuery
- Enclosing class:
- InstanceMatch
public static class InstanceMatch.Builder<B extends InstanceMatch.Builder<?>> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bapplication(String application)Bapplication(Predicate<String> application)Predicate<Instance>asMatchPredicate()InstanceMatchbuild()BlocalOnly(boolean localOnly)Flag whether or not the search should include remote instances.Bmachine(String machine)Bmachine(Predicate<String> machine)Bquery(Map<String,Object> query)Can be used to guarantee specific fields within the instance match.Buser(String user)Buser(Predicate<String> user)
-
-
-
Method Detail
-
query
public B query(Map<String,Object> query)
Can be used to guarantee specific fields within the instance match.- Parameters:
query- contains fields to be matched- Returns:
- this builder, never
null - Since:
- 1.3
-
localOnly
public B localOnly(boolean localOnly)
Flag whether or not the search should include remote instances.trueis the default setting and only includes local instances in the search. Likewise,falseoverrides it and expands the search to include remote instances.- Parameters:
localOnly- if only local instances should be considered in search- Returns:
- this builder, never
null - Since:
- 1.3
-
build
public InstanceMatch build()
-
-