use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class MockAction method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, false));
properties.put("rowKey", new PluginPropertyField("rowKey", "", "string", true, false));
properties.put("columnKey", new PluginPropertyField("columnKey", "", "string", true, false));
properties.put("value", new PluginPropertyField("value", "", "string", true, true));
properties.put("argumentKey", new PluginPropertyField("argumentKey", "", "string", false, false));
properties.put("argumentValue", new PluginPropertyField("argumentValue", "", "string", false, false));
return PluginClass.builder().setName("TableWriterAction").setType(Action.PLUGIN_TYPE).setDescription("").setClassName(MockAction.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class NullAlertTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("field", new PluginPropertyField("field", "", "string", true, false));
return PluginClass.builder().setName(NAME).setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(NullAlertTransform.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class TMSAlertPublisher method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("topic", new PluginPropertyField("topic", "", "string", true, false));
properties.put("topicNamespace", new PluginPropertyField("topicNamespace", "", "string", true, false));
return PluginClass.builder().setName(NAME).setType(AlertPublisher.PLUGIN_TYPE).setDescription("").setClassName(TMSAlertPublisher.class.getName()).setProperties(properties).setConfigFieldName("conf").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class FilterTransform method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("name", new PluginPropertyField("name", "", "string", true, false));
return PluginClass.builder().setName("FilterTransform").setType(Transform.PLUGIN_TYPE).setDescription("").setClassName(FilterTransform.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
use of io.cdap.cdap.api.plugin.PluginPropertyField in project cdap by cdapio.
the class MockRuntimeDatasetSink method getPluginClass.
private static PluginClass getPluginClass() {
Map<String, PluginPropertyField> properties = new HashMap<>();
properties.put("tableName", new PluginPropertyField("tableName", "", "string", true, true));
properties.put("runtimeDatasetName", new PluginPropertyField("runtimeDatasetName", "", "string", true, true));
return PluginClass.builder().setName("MockRuntime").setType(BatchSink.PLUGIN_TYPE).setDescription("").setClassName(MockRuntimeDatasetSink.class.getName()).setProperties(properties).setConfigFieldName("config").build();
}
Aggregations