• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PropertyException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.esri.ges.core.property.PropertyException的典型用法代码示例。如果您正苦于以下问题:Java PropertyException类的具体用法?Java PropertyException怎么用?Java PropertyException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PropertyException类属于com.esri.ges.core.property包,在下文中一共展示了PropertyException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setManager

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例2: setManager

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例3: UpdateOnlyProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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)
	{
		;
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:24,代码来源:UpdateOnlyProcessorDefinition.java


示例4: setManager

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例5: setManager

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例6: EVCProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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();
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:23,代码来源:EVCProcessorDefinition.java


示例7: AddXYZProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:17,代码来源:AddXYZProcessorDefinition.java


示例8: EventJoinerProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例9: IncrementalPointProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例10: TcpSquirtOutboundTransportDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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


示例11: KafkaInboundTransportDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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);
  }
}
 
开发者ID:Esri,项目名称:kafka-for-geoevent,代码行数:18,代码来源:KafkaInboundTransportDefinition.java


示例12: KafkaOutboundTransportDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的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);
  }
}
 
开发者ID:Esri,项目名称:kafka-for-geoevent,代码行数:17,代码来源:KafkaOutboundTransportDefinition.java


示例13: ReverseGeocoderProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public ReverseGeocoderProcessorDefinition()
{
	try
	{
		PropertyDefinition agolSearchDistanceProperty = new PropertyDefinition(AGOL_SEARCHDISTANCE_PROPERTY, PropertyType.Integer, 100, "ArcGIS Online Reverse Geocoder Search Radius (m)", "The distance from the geoevent's location within which a matching address should be searched.", true, false);
		propertyDefinitions.put(AGOL_SEARCHDISTANCE_PROPERTY, agolSearchDistanceProperty);

		PropertyDefinition newGeoEventDefinitionNameProperty = new PropertyDefinition(NEWGEOEVENTDEFINITION_PROPERTY, PropertyType.String, "NewGeoEventDefinition", "Resulting GeoEvent Definition", "The incoming GeoEvent will be augmented with the address fields from the reverse geocode and a new GeoEvent Definition will be created.", true, false);
		propertyDefinitions.put(NEWGEOEVENTDEFINITION_PROPERTY, newGeoEventDefinitionNameProperty);
	}
	catch (PropertyException ex)
	{
		;
	}
	catch (Exception error)
	{
		LOGGER.error("INIT_ERROR", error.getMessage());
		LOGGER.info(error.getMessage(), error);
	}

}
 
开发者ID:Esri,项目名称:reverse-geocoder-for-geoevent,代码行数:22,代码来源:ReverseGeocoderProcessorDefinition.java


示例14: ActiveMQOutboundTransportDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public ActiveMQOutboundTransportDefinition() {
  super(TransportType.OUTBOUND);
  try {
    propertyDefinitions.put("providerUrl", new PropertyDefinition("providerUrl", PropertyType.String, "tcp://localhost:61616", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PROVIDER_URL_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PROVIDER_URL_DESC}", true, false));
    List<LabeledValue> allowedValues = new ArrayList<>(2);
    allowedValues.add(new LabeledValue("Queue", "Queue"));
    allowedValues.add(new LabeledValue("Topic", "Topic"));
    propertyDefinitions.put("destinationType", new PropertyDefinition("destinationType", PropertyType.String, "Queue", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_TYPE_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_TYPE_DESC}", true, false, allowedValues));
    propertyDefinitions.put("destinationName", new PropertyDefinition("destinationName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_NAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_JMS_DESTINATION_NAME_DESC}", true, false));
    propertyDefinitions.put("userName", new PropertyDefinition("userName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_USERNAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_USERNAME_DESC}", false, false));
    propertyDefinitions.put("password", new PropertyDefinition("password", PropertyType.Password, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PASSWORD_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_OUT_PASSWORD_DESC}", false, false));
  } catch (PropertyException error) {
    String errorMsg = LOGGER.translate("OUT_INIT_ERROR", error.getMessage());
    LOGGER.error(errorMsg, error);
    throw new RuntimeException(errorMsg, error);
  }
}
 
开发者ID:Esri,项目名称:activemq-for-geoevent,代码行数:18,代码来源:ActiveMQOutboundTransportDefinition.java


示例15: ActiveMQInboundTransportDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public ActiveMQInboundTransportDefinition() {
  super(TransportType.INBOUND);
  try {
    propertyDefinitions.put("providerUrl", new PropertyDefinition("providerUrl", PropertyType.String, "tcp://localhost:61616", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PROVIDER_URL_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PROVIDER_URL_DESC}", true, false));
    List<LabeledValue> allowedValues = new ArrayList<>(2);
    allowedValues.add(new LabeledValue("Queue", "Queue"));
    allowedValues.add(new LabeledValue("Topic", "Topic"));
    propertyDefinitions.put("destinationType", new PropertyDefinition("destinationType", PropertyType.String, "Queue", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_TYPE_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_TYPE_DESC}", true, false, allowedValues));
    propertyDefinitions.put("destinationName", new PropertyDefinition("destinationName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_NAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_JMS_DESTINATION_NAME_DESC}", true, false));
    propertyDefinitions.put("userName", new PropertyDefinition("userName", PropertyType.String, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_USERNAME_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_USERNAME_DESC}", false, false));
    propertyDefinitions.put("password", new PropertyDefinition("password", PropertyType.Password, null, "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PASSWORD_LBL}", "${com.esri.geoevent.transport.activemq-transport.TRANSPORT_IN_PASSWORD_DESC}", false, false));
  } catch (PropertyException error) {
    String errorMsg = LOGGER.translate("IN_INIT_ERROR", error.getMessage());
    LOGGER.error(errorMsg, error);
    throw new RuntimeException(errorMsg, error);
  }
}
 
开发者ID:Esri,项目名称:activemq-for-geoevent,代码行数:18,代码来源:ActiveMQInboundTransportDefinition.java


示例16: TcpSquirtOutboundTransportDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public TcpSquirtOutboundTransportDefinition()
{
	super(TransportType.OUTBOUND);
	try
	{
		propertyDefinitions.put("host", new PropertyDefinition("host", PropertyType.String, "localhost", "Host (Client Mode)", "In TCP Client Mode, this is the name or IP address of the host server that GeoEvent Server will connect to. In TCP Server Mode, this parameter should be left blank.", "mode=CLIENT", false, false));
		propertyDefinitions.put("port", new PropertyDefinition("port", PropertyType.Integer, new Integer(5000), "Server Port", "In TCP Server Mode, this is the local port number that GeoEvent Server is accepting client connections on. In TCP Client Mode, this is the remote port number that GeoEvent Server will establish a connection to.", true, false));
		propertyDefinitions.put("mode", new PropertyDefinition("mode", PropertyType.String, "SERVER", "Mode", "This parameter should be set to SERVER for GeoEvent Server to run in TCP Server Mode (accepts socket connections) and CLIENT for TCP Client Mode (initiates socket connections).", true, false, "SERVER", "CLIENT"));
	}
	catch (PropertyException e)
	{
		LOG.error("Failed to define properties of TCPSquirtOutboundTransportDefinition: ", e);
		throw new RuntimeException(e);
	}
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:16,代码来源:TcpSquirtOutboundTransportDefinition.java


示例17: Line2PtProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public Line2PtProcessorDefinition() throws PropertyException {
	List<LabeledValue> allowedIn = new ArrayList<LabeledValue>();
	allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.STARTPOINT_LBL}","start"));
	allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.ENDPOINT_LBL}","end"));
	allowedIn.add(new LabeledValue("${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.MIDPOINT_LBL}","mid"));
	
	PropertyDefinition pdPoint = new PropertyDefinition("pointType", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.LBL_POINT_TYPE}", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.DESC_POINT_TYPE}",true, false, allowedIn);
	propertyDefinitions.put(pdPoint.getPropertyName(), pdPoint);
	PropertyDefinition pdwkid = new PropertyDefinition("wkid", PropertyType.Integer, "", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.LBL_PROCESS_WKID}", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.DESC_PROCESS_WKID}",true, false);
	propertyDefinitions.put(pdwkid.getPropertyName(), pdwkid);
	PropertyDefinition pdOutDef = new PropertyDefinition("outdefname", PropertyType.String, "", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.LBL_OUTDEFNAME}", "${com.esri.geoevent.solutions.processor.line2pt.line2pt-processor.DESC_OUTDEFNAME}", true, false);
	propertyDefinitions.put(pdOutDef.getPropertyName(), pdOutDef);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:14,代码来源:Line2PtProcessorDefinition.java


示例18: MGRSProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public MGRSProcessorDefinition() {
	try {
		propertyDefinitions.put("geofld", new PropertyDefinition("geofld", PropertyType.String, "GEOMETRY", lblGeoField, descGeoField, true, false));
		propertyDefinitions.put("eventdef", new PropertyDefinition("eventdef", PropertyType.String, "", lblNewDef, descNewDef, true, false));
		propertyDefinitions.put("accuracy", new PropertyDefinition("accuracy", PropertyType.Integer, 5, lblAccuracy, descAccuracy, true, false));
	} catch (PropertyException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:12,代码来源:MGRSProcessorDefinition.java


示例19: LatLongProcessorDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public LatLongProcessorDefinition() throws PropertyException
{
	propertyDefinitions.put("mgrs", new PropertyDefinition("mgrs", PropertyType.String, "", lblMGRS, descMGRS, true, false));
	propertyDefinitions.put("overwrite", new PropertyDefinition("overwrite", PropertyType.Boolean, true, lblOverwrite, descOverwrite, true, false));
	propertyDefinitions.put("eventdef", new PropertyDefinition("eventdef", PropertyType.String, "", lblNewDef, descNewDef, "overwrite=false", false, false));
	propertyDefinitions.put("geofld", new PropertyDefinition("geofld", PropertyType.String, "", lblGeoField, descGeoField, "overwrite=false", false, false));
	propertyDefinitions.put("returnbb", new PropertyDefinition("returnbb", PropertyType.Boolean, false, lblReturnBB, descReturnBB, true, false));
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:9,代码来源:LatLongProcessorDefinition.java


示例20: TimeToLongDefinition

import com.esri.ges.core.property.PropertyException; //导入依赖的package包/类
public TimeToLongDefinition() throws PropertyException
{
	List<LabeledValue> allowedValues = new ArrayList<LabeledValue>();
	allowedValues.add(new LabeledValue(lvlong, "long"));
	allowedValues.add(new LabeledValue(lvfloat, "float"));
	allowedValues.add(new LabeledValue(lvdouble, "double"));
	allowedValues.add(new LabeledValue(lvstring, "string"));
	
	propertyDefinitions.put("timefld", new PropertyDefinition("timefld", PropertyType.String, "", timefldlbl, timeflddesc, true, false));
	propertyDefinitions.put("outputtype", new PropertyDefinition("outputtype", PropertyType.String, "", converttolbl, converttodesc, true, false, allowedValues));
	propertyDefinitions.put("useexisting", new PropertyDefinition("useexisting", PropertyType.Boolean, true, useexistinglbl, useexistingdesc, true, false));
	propertyDefinitions.put("newdef", new PropertyDefinition("newdef", PropertyType.String, "DateTimeToNumber", newdeflbl, newdefdesc, "useexisting=false",true, false));
	propertyDefinitions.put("longfld", new PropertyDefinition("longfld", PropertyType.String, "", longfldlbl, longflddesc, true, false));
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:15,代码来源:TimeToLongDefinition.java



注:本文中的com.esri.ges.core.property.PropertyException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SAXParseException2类代码示例发布时间:2022-05-23
下一篇:
Java SilentChemObjectBuilder类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap