本文整理汇总了Java中org.springframework.xd.module.options.spi.ModuleOption类的典型用法代码示例。如果您正苦于以下问题:Java ModuleOption类的具体用法?Java ModuleOption怎么用?Java ModuleOption使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModuleOption类属于org.springframework.xd.module.options.spi包,在下文中一共展示了ModuleOption类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: use
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the name of the logger to use (will use 'xd.sink.throughput.<logger>')")
public void setLogger(String logger) {
this.logger = logger;
}
示例2: setReportEveryMs
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("if positive, will report throughput this every milliseconds")
public void setReportEveryMs(long reportEveryMs) {
this.reportEveryMs = reportEveryMs;
}
示例3: setTimeUnit
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the time unit to use in reports")
public void setTimeUnit(TimeUnit timeUnit) {
this.timeUnit = timeUnit;
}
示例4: setDriverClassName
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the JDBC driver to use")
public void setDriverClassName(String driverClass) {
this.driverClassName = driverClass;
}
示例5: setPassword
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the JDBC password")
public void setPassword(String password) {
this.password = password;
}
示例6: setUrl
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the JDBC URL for the database")
public void setUrl(String url) {
this.url = url;
}
示例7: setUsername
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the JDBC username")
public void setUsername(String username) {
this.username = username;
}
示例8: setSql
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the SQL to execute")
public void setSql(String sql) {
this.sql = sql;
}
示例9: setScript
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the SQL script path to execute")
public void setScript(String script) {
this.script = script;
}
示例10: setRestartable
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("Whether the job should be restartable or not in case of failure. Set this to false if the Job should not be restarted.")
public void setRestartable(boolean restartable) {
this.restartable = restartable;
}
示例11: setTopN
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("The number of entires to include in the top N listing")
public void setTopN(int topN) {
this.topN = topN;
}
示例12: setTimeWindow
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("The length in seconds of the time window")
public void setTimeWindow(int timeWindow) {
this.timeWindow = timeWindow;
}
示例13: to
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption(value = "the name of the metric to contribute to (will be created if necessary)", defaultValue = XD_STREAM_NAME)
public void setName(String name) {
this.name = name;
}
示例14: setPrefix
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the prefix")
public void setPrefix(String prefix) {
this.prefix = prefix;
}
示例15: setSuffix
import org.springframework.xd.module.options.spi.ModuleOption; //导入依赖的package包/类
@ModuleOption("the suffix")
public void setSuffix(String suffix) {
this.suffix = suffix;
}