类 AbstractCmdbSelector<T extends Instance>
java.lang.Object
com.alibaba.nacos.api.selector.AbstractCmdbSelector<T>
- 所有已实现的接口:
Selector<List<T>,,CmdbContext<T>, String> Serializable
public abstract class AbstractCmdbSelector<T extends Instance>
extends Object
implements Selector<List<T>,CmdbContext<T>,String>
AbstractCmdbSelector will provide one default implement of Selector, users can implement it to use the CmdbContext.
And return the result as default subclass of Instance.- 作者:
- chenglu
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract voidThe real parse logic implement by sub class.doSelect(CmdbContext<T> context) The real select implement by subclass.Get the select context which used bySelector.select(Object).parse the selector, build the inner info which used bySelector.select(Object).select(CmdbContext<T> context) select the target result.voidsetExpression(String expression)
-
字段详细资料
-
expression
the labels expression.
-
-
构造器详细资料
-
AbstractCmdbSelector
public AbstractCmdbSelector()
-
-
方法详细资料
-
getExpression
-
setExpression
-
parse
从接口复制的说明:Selectorparse the selector, build the inner info which used bySelector.select(Object).- 指定者:
parse在接口中Selector<List<T extends Instance>,CmdbContext<T extends Instance>, String> - 参数:
expression- expression.- 返回:
- selector.
- 抛出:
NacosException- parse failed exception.
-
doParse
The real parse logic implement by sub class.- 参数:
expression- expression.- 抛出:
NacosException- parse failed exception.
-
select
从接口复制的说明:Selectorselect the target result. -
doSelect
The real select implement by subclass.- 参数:
context- selector contextCmdbContext.- 返回:
- the select result.
-
getContextType
从接口复制的说明:SelectorGet the select context which used bySelector.select(Object).- 指定者:
getContextType在接口中Selector<List<T extends Instance>,CmdbContext<T extends Instance>, String> - 返回:
- selector context type.
-