if (hiveProcesserFieldSet == null) {
hiveProcesserFieldSet = new FieldSet();
hiveProcesserFieldSet.setCollapsible(true);
hiveProcesserFieldSet.setHeadingText("辅助功能配置");
hiveProcesserFieldSet.setHeight(160);
VerticalLayoutContainer container = new VerticalLayoutContainer();
outputTableField = new TextField();
outputTableField.setWidth(550);
outputTableField.setAutoValidate(true);
outputTableField
.setEmptyText("多个表用','分隔,用于产出检查和历史分区清理。只支持第一个分区字段为pt且最新分区为昨天的表");
ToolTipConfig outputTableToolTip = new ToolTipConfig();
outputTableToolTip = new ToolTipConfig();
outputTableToolTip
.setBodyHtml("<span style=\"display:inline;word-wrap:break-word;\">多个表用英文逗号分隔。用于产出检查和历史分区清理。</span>");
outputTableToolTip.setTitleHtml("产出的表");
outputTableToolTip.setMouseOffset(new int[] { 0, 0 });
outputTableToolTip.setAnchor(Side.BOTTOM);
outputTableToolTip.setMaxWidth(280);
outputTableToolTip.setHideDelay(3000);
// outputTableField.setToolTipConfig(outputTableToolTip);
syncTableField = new TextField();
syncTableField.setWidth(550);
syncTableField.setAutoValidate(true);
syncTableField.setEmptyText("多个表用';'分隔。参数之间用','分隔。");
syncTableField
.setToolTip("可选参数依次为 1.分区下子分区数目(默认1)2.要同步的日期与当天的差值(默认-1,也就是昨天);<br/>如r_auction_auctions,2;ds_fdi_atplog_base,70,-5");
ToolTipConfig syncTableToolTip = new ToolTipConfig();
syncTableToolTip
.setBodyHtml("<span style=\"display:inline;word-wrap:break-word;\">多个表用英文分号';'分隔。可选参数依次为分区下子分区数目,要同步的日期,参数之间用英文逗号分隔。用于同步天网表。</span>");
syncTableToolTip.setTitleHtml("要同步的天网表");
syncTableToolTip.setMouseOffset(new int[] { 0, 0 });
syncTableToolTip.setAnchor(Side.TOP);
syncTableToolTip.setMaxWidth(280);
syncTableToolTip.setHideDelay(3000);
// syncTableField.setToolTipConfig(syncTableToolTip);
keepDaysField = new NumberField<Integer>(
new IntegerPropertyEditor());
keepDaysField.setEmptyText("天数之前的分区会自动删除");
keepDaysField.setAutoValidate(true);
driftPercentField = new NumberField<Integer>(
new IntegerPropertyEditor());
driftPercentField.setEmptyText("百分比(如30)");
driftPercentField.setToolTip("分区没有正常产出或者分区大小变化超过这个比例会发出报警");
driftPercentField.setAutoValidate(true);
outputTableLabel = new FieldLabel(outputTableField, "产出的表名");
outputTableLabel.setHeight(30);
syncTableLabel = new FieldLabel(syncTableField, "阻塞同步的天网表");
syncTableLabel.setHeight(30);
keepDaysLabel = new FieldLabel(keepDaysField, "分区保留天数");
keepDaysLabel.setHeight(30);
driftPercentLabel = new FieldLabel(driftPercentField, "产出数据浮动报警");
driftPercentLabel.setHeight(30);
container.add(syncTableLabel);
container.add(outputTableLabel);
container.add(driftPercentLabel);
container.add(keepDaysLabel);
hiveProcesserFieldSet.add(container);
}
return hiveProcesserFieldSet;
}