本文整理汇总了Java中com.esri.ges.core.property.PropertyDefinition类的典型用法代码示例。如果您正苦于以下问题:Java PropertyDefinition类的具体用法?Java PropertyDefinition怎么用?Java PropertyDefinition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropertyDefinition类属于com.esri.ges.core.property包,在下文中一共展示了PropertyDefinition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SetGeoEventAllowedFields
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
private void SetGeoEventAllowedFields(PropertyDefinition pd) {
Collection<GeoEventDefinition> geodefs = this.manager
.listAllGeoEventDefinitions();
ArrayList<String> names = new ArrayList<String>();
HashMap<String, GeoEventDefinition> defMap = new HashMap<String, GeoEventDefinition>();
Iterator<GeoEventDefinition> it = geodefs.iterator();
GeoEventDefinition geoEventDef;
while (it.hasNext()) {
geoEventDef = it.next();
String defName = geoEventDef.getName();
names.add(defName);
defMap.put(defName, geoEventDef);
}
Collections.sort(names);
for (String name : names) {
geoEventDef = defMap.get(name);
List<FieldDefinition> fldDefs = geoEventDef.getFieldDefinitions();
for (FieldDefinition f : fldDefs) {
pd.addAllowedValue(name + ":" + f.getName());
}
}
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:23,代码来源:QueryReportProcessorDefinition.java
示例2: SetGeoEventAllowedFields
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
private void SetGeoEventAllowedFields(PropertyDefinition pd)
{
Collection<GeoEventDefinition> geodefs = this.manager.listAllGeoEventDefinitions();
Iterator<GeoEventDefinition> it = geodefs.iterator();
GeoEventDefinition geoEventDef;
while (it.hasNext())
{
geoEventDef = it.next();
String defName = geoEventDef.getName();
for(int i = 0; i < geoEventDef.getFieldDefinitions().size(); ++i)
{
String fld = geoEventDef.getFieldDefinitions().get(i).getName();
pd.addAllowedValue(defName + ":" + fld);
}
}
}
示例3: setManager
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "SymbolId Event Field", "Geoevent field containing SymbolId data", true, false);
procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
SetGeoEventAllowedFields(procSymbolIdEvent);
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "SymbolName Event Field", "Geoevent field containing SymbolName data", true, false);
procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
SetGeoEventAllowedFields(procSymbolNameEvent);
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolIdToNameProcessorDefinition.java
示例4: setManager
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "SymbolName Event Field", "Geoevent field containing SymbolName data", true, false);
procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
SetGeoEventAllowedFields(procSymbolNameEvent);
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "SymbolId Event Field", "Geoevent field containing SymbolId data", true, false);
procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
SetGeoEventAllowedFields(procSymbolIdEvent);
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolNameToIdProcessorDefinition.java
示例5: UpdateOnlyProcessorDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public UpdateOnlyProcessorDefinition()
{
try
{
// When defining properties, first create the property definition.
// The first parameter is the internal name of the property and is not exposed to the user.
// The second parameter is the property type, and allows the server to validate property values provided by the user (e.g. "hello" is not a valid integer value).
// The third parameter is the default value, and is shown to the user as a suggested value. This is optional.
// The fourth parameter is the name shown to users when the look at a list of properties for your processor.
// The fifth parameter is the Detailed description, which is shown to users when they hover over the property.
// The sixth parameter specifies if the property is mandatory (must be provided by the user)
// The seventh parameter specifies if the property is read-only, meaning it is shown to the user but cannot be modified.
// Additional parameters can be added to the constructor as a list of allowed values.
PropertyDefinition clearCacheProperty = new PropertyDefinition( CLEAR_CACHE_PROPERTY, PropertyType.Boolean, false, "Clear Cache", "Set this property to clear the cache. For example, if anything has gone wrong in GeoEvent Processing, such that outputs have not been reached their destination(s), then this Processor may prevent those outputs from being re-processed immediately unless the cache is cleared. ", false, false );
// after creating the property definition, put it in the base class's "propertyDefinitions" structure. These definitions will be provided to the
// server when the processor is installed, and provided to client applications on-demand
propertyDefinitions.put( CLEAR_CACHE_PROPERTY, clearCacheProperty );
}
catch (PropertyException e)
{
;
}
}
示例6: toString
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
@Override
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("Property Definitions:\n ");
if (propertyDefinitions != null) {
for (PropertyDefinition pd : propertyDefinitions.values()) {
sb.append(" " + pd.toString());
}
}
sb.append("\nGeoEvent Definitions:\n");
if (geoEventDefinitions != null) {
for (GeoEventDefinition ge : geoEventDefinitions.values()) {
sb.append(" " + ge.toString() + "\n");
}
}
return sb.toString();
}
示例7: setManager
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
/*PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);*/
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_ID_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_ID_FIELD}", true, false);
//procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
/*PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);*/
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_NAME_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_NAME_FIELD}", true, false);
//procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolIdToNameProcessorDefinition.java
示例8: setManager
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public void setManager(GeoEventDefinitionManager m) throws PropertyException {
this.manager = m;
/*PropertyDefinition procSymbolNameSource = new PropertyDefinition("symbolNameSource",
PropertyType.String, "", "SymbolName Source", "Source of SymbolName Value", true, false);
procSymbolNameSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolNameSource.getPropertyName(), procSymbolNameSource);*/
PropertyDefinition procSymbolNameEvent = new PropertyDefinition("symbolNameEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_NAME_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_NAME_FIELD}", true, false);
//procSymbolNameEvent.setDependsOn("symbolNameSource=Event");
//SetGeoEventAllowedFields(procSymbolNameEvent);
propertyDefinitions.put(procSymbolNameEvent.getPropertyName(), procSymbolNameEvent);
/*PropertyDefinition procSymbolIdSource = new PropertyDefinition("symbolIdSource",
PropertyType.String, "", "SymbolId Source", "Source of SymbolId Value", true, false);
procSymbolIdSource.addAllowedValue("Event");
propertyDefinitions.put(procSymbolIdSource.getPropertyName(), procSymbolIdSource);*/
PropertyDefinition procSymbolIdEvent = new PropertyDefinition("symbolIdEvent",
PropertyType.String, "", "${com.esri.geoevent.solutions.processor.symbol-lookup.symbol-lookup-processor.LBL_SYMBOL_ID_FIELD}", "${com.esri.geoevent.solutions.processor.geomessage.geomessage-processor.DESC_SYMBOL_ID_FIELD}", true, false);
//procSymbolIdEvent.setDependsOn("symbolIdSource=Event");
//SetGeoEventAllowedFields(procSymbolIdEvent);
propertyDefinitions.put(procSymbolIdEvent.getPropertyName(), procSymbolIdEvent);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:27,代码来源:SymbolNameToIdProcessorDefinition.java
示例9: EVCProcessorDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public EVCProcessorDefinition()
{
try {
PropertyDefinition pdInterval = new PropertyDefinition("interval", PropertyType.Long, 10000, "Interval (miliseconds)", "Amount of time between which new messages with the same track id will be dropped", true, false);
propertyDefinitions.put(pdInterval.getPropertyName(), pdInterval);
List<LabeledValue> allowedVals = new ArrayList<LabeledValue>();
allowedVals.add(new LabeledValue(allowedValInterval,"byInterval" ));
allowedVals.add(new LabeledValue(allowedValMaxPerInterval, "maxPerInterval"));
PropertyDefinition pdFilterType = new PropertyDefinition("filterType", PropertyType.String, allowedValInterval, lblFilterType, descFilterType, true, false, allowedVals);
propertyDefinitions.put(pdFilterType.getPropertyName(), pdFilterType);
PropertyDefinition pdEPI = new PropertyDefinition("epi", PropertyType.Long, 100, lblMaxPerInterval, descMaxPerInterval, true, false);
pdEPI.setDependsOn("filterType=maxPerInterval");
propertyDefinitions.put(pdEPI.getPropertyName(), pdEPI);
} catch (PropertyException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
示例10: AddXYZProcessorDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public AddXYZProcessorDefinition() throws PropertyException {
PropertyDefinition pdGeometryFieldName = new PropertyDefinition("geofield", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_GEO_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_GEO_FIELD}", true, false);
propertyDefinitions.put(pdGeometryFieldName.getPropertyName(), pdGeometryFieldName);
PropertyDefinition pdGEDName = new PropertyDefinition("gedName", PropertyType.String, "AddXYZDef", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_GEOEVENT_DEFINITION_NAME}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_GEOEVENT_DEFINITION_NAME}", true, false);
propertyDefinitions.put(pdGEDName.getPropertyName(), pdGEDName);
PropertyDefinition pdXField = new PropertyDefinition("xfield", PropertyType.String, "x", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_X_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_X_FIELD}", true, false);
propertyDefinitions.put(pdXField.getPropertyName(), pdXField);
PropertyDefinition pdYField = new PropertyDefinition("yfield", PropertyType.String, "y", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_Y_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_Y_FIELD}", true, false);
propertyDefinitions.put(pdYField.getPropertyName(), pdYField);
PropertyDefinition pdZField = new PropertyDefinition("zfield", PropertyType.String, "z", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.LBL_Z_FIELD}", "${com.esri.geoevent.solutions.processor.addxyz.addxyz-processor.DESC_Z_FIELD}", false, false);
propertyDefinitions.put(pdZField.getPropertyName(), pdZField);
}
示例11: EventJoinerProcessorDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public EventJoinerProcessorDefinition() throws PropertyException{
PropertyDefinition pdJoin = new PropertyDefinition("join", PropertyType.String, "TRACK_ID", lblJoinField, descJoinField, true, false);
propertyDefinitions.put(pdJoin.getPropertyName(), pdJoin);
PropertyDefinition pdInDefs = new PropertyDefinition(
"indefs",
PropertyType.String,
2, lblInDefs,
descInDefs,
true, false);
propertyDefinitions.put(pdInDefs.getPropertyName(), pdInDefs);
PropertyDefinition pdOutDef = new PropertyDefinition(
"outdef", PropertyType.String, "", lblOutDef,
descOutDef, true, false);
propertyDefinitions.put(pdOutDef.getPropertyName(),
pdOutDef);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:18,代码来源:EventJoinerProcessorDefinition.java
示例12: IncrementalPointProcessorDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public IncrementalPointProcessorDefinition() throws PropertyException {
List<LabeledValue> allowedIn = new ArrayList<LabeledValue>();
allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_DISTANCE_LBL}","distance"));
allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_TIME_LBL}","time"));
allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.SEGMENTATION_TYPE_VERTEX_LBL}","vertex"));
PropertyDefinition pdInterval= new PropertyDefinition("intervalType", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_INTERVAL_TYPE}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_INTERVAL_TYPE}",true, false, allowedIn);
propertyDefinitions.put(pdInterval.getPropertyName(), pdInterval);
PropertyDefinition pdTimeInterval = new PropertyDefinition("timeinterval", PropertyType.Long, 600000, "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_TIME_INTERVAL}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_TIME_INTERVAL}", false, false);
pdTimeInterval.setDependsOn("intervalType=time");
propertyDefinitions.put(pdTimeInterval.getPropertyName(),pdTimeInterval);
PropertyDefinition pdDistInterval = new PropertyDefinition("distanceinterval", PropertyType.Double, 0.0, "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_DISTANCE_INTERVAL}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_DISTANCE_INTERVAL}", false, false);
pdDistInterval.setDependsOn("intervalType=distance");
propertyDefinitions.put(pdDistInterval.getPropertyName(),pdDistInterval);
PropertyDefinition pdwkid = new PropertyDefinition("wkid", PropertyType.Integer, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_PROCESS_WKID}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_PROCESS_WKID}",true, false);
propertyDefinitions.put(pdwkid.getPropertyName(), pdwkid);
PropertyDefinition pdOutDef = new PropertyDefinition("outdefname", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.LBL_OUTDEFNAME}", "${com.esri.geoevent.solutions.processor.incrementalPoint.incrementalPoint-processor.DESC_OUTDEFNAME}", true, false);
propertyDefinitions.put(pdOutDef.getPropertyName(), pdOutDef);
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:22,代码来源:IncrementalPointProcessorDefinition.java
示例13: TcpSquirtOutboundTransportDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public TcpSquirtOutboundTransportDefinition()
{
super(TransportType.OUTBOUND);
try
{
propertyDefinitions.put("host", new PropertyDefinition("host", PropertyType.String, "localhost", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_HOST}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_HOST}", false, false));
propertyDefinitions.put("port", new PropertyDefinition("port", PropertyType.Integer, new Integer(5000), "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_PORT}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_PORT}", true, false));
List<LabeledValue> allowedModes = new ArrayList<LabeledValue>();
allowedModes.add(new LabeledValue("${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.ALLOWED_MODE_SERVER}", "SERVER"));
allowedModes.add(new LabeledValue("${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.ALLOWED_MODE_CLIENT}", "CLIENT"));
propertyDefinitions.put("mode", new PropertyDefinition("mode", PropertyType.String, "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.MODE_SERVER_LBL}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_MODE}", "${com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_MODE}", true, false, allowedModes));
propertyDefinitions.put("clientConnectionTimeout", new PropertyDefinition("clientConnectionTimeout", PropertyType.Integer, new Integer(60), "{com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.LBL_TIMEOUT}", "{com.esri.geoevent.solutions.transport.tcpsquirt.tcpsquirt-transport.DESC_TIMEOUT}", "mode=CLIENT", false, false));
}
catch (PropertyException e)
{
LOG.error("Failed to define properties of TCPSquirtOutboundTransportDefinition: ", e);
throw new RuntimeException(e);
}
}
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:20,代码来源:TcpSquirtOutboundTransportDefinition.java
示例14: KafkaInboundTransportDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
public KafkaInboundTransportDefinition()
{
super(TransportType.INBOUND);
try
{
propertyDefinitions.put("zkConnect", new PropertyDefinition("zkConnect", PropertyType.String, "localhost:2181", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_LBL}", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_DESC}", true, false));
propertyDefinitions.put("numThreads", new PropertyDefinition("numThreads", PropertyType.Integer, "1", "${com.esri.geoevent.transport.kafka-transport.NUM_THREADS_LBL}", "${com.esri.geoevent.transport.kafka-transport.NUM_THREADS_DESC}", true, false));
propertyDefinitions.put("topic", new PropertyDefinition("topic", PropertyType.String, "", "${com.esri.geoevent.transport.kafka-transport.TOPIC_LBL}", "${com.esri.geoevent.transport.kafka-transport.TOPIC_DESC}", true, false));
propertyDefinitions.put("groupId", new PropertyDefinition("groupId", PropertyType.String, "", "${com.esri.geoevent.transport.kafka-transport.GROUOP_ID_LBL}", "${com.esri.geoevent.transport.kafka-transport.GROUOP_ID_DESC}", true, false));
}
catch (PropertyException e)
{
String errorMsg = LOGGER.translate("TRANSPORT_IN_INIT_ERROR", e.getMessage());
LOGGER.error(errorMsg, e);
throw new RuntimeException(errorMsg, e);
}
}
示例15: KafkaOutboundTransportDefinition
import com.esri.ges.core.property.PropertyDefinition; //导入依赖的package包/类
KafkaOutboundTransportDefinition() {
super(TransportType.OUTBOUND);
try {
propertyDefinitions.put("zkConnect", new PropertyDefinition("zkConnect", PropertyType.String, "localhost:2181", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_LBL}", "${com.esri.geoevent.transport.kafka-transport.ZKCONNECT_DESC}", true, false));
propertyDefinitions.put("bootstrap", new PropertyDefinition("bootstrap", PropertyType.String, "localhost:9092", "${com.esri.geoevent.transport.kafka-transport.BOOTSTRAP_LBL}", "${com.esri.geoevent.transport.kafka-transport.BOOTSTRAP_DESC}", true, false));
propertyDefinitions.put("topic", new PropertyDefinition("topic", PropertyType.String, "", "${com.esri.geoevent.transport.kafka-transport.TOPIC_LBL}", "${com.esri.geoevent.transport.kafka-transport.TOPIC_DESC}", true, false));
propertyDefinitions.put("partitions", new PropertyDefinition("partitions", PropertyType.Integer, "1", "${com.esri.geoevent.transport.kafka-transport.PARTITIONS_LBL}", "${com.esri.geoevent.transport.kafka-transport.PARTITIONS_DESC}", true, false));
propertyDefinitions.put("replicas", new PropertyDefinition("replicas", PropertyType.Integer, "0", "${com.esri.geoevent.transport.kafka-transport.REPLICAS_LBL}", "${com.esri.geoevent.transport.kafka-transport.REPLICAS_DESC}", true, false));
}
catch (PropertyException e)
{
String errorMsg = LOGGER.translate("TRANSPORT_OUT_INIT_ERROR", e.getMessage());
LOGGER.error(errorMsg, e);
throw new RuntimeException(errorMsg, e);
}
}