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

Java PropertyType类代码示例

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

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



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

示例1: setManager

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

import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public ServiceAreaCalculatorDefinition()
{
	try
	{
		propertyDefinitions.put("inputGeometryField", new PropertyDefinition("inputGeometryField", PropertyType.GeoEventField_Geometry, "GEOMETRY", "${com.esri.geoevent.processor.service-area-calculator-processor.INPUTGEOMETRYFIELD_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.INPUTGEOMETRYFIELD_DESC}", true, false));
		propertyDefinitions.put("replaceGeometry", new PropertyDefinition("replaceGeometry", PropertyType.Boolean, "true", "${com.esri.geoevent.processor.service-area-calculator-processor.REPLACEGEOMETRY_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.REPLACEGEOMETRY_DESC}", true, false));
		propertyDefinitions.put("outputGeometryField", new PropertyDefinition("outputGeometryField", PropertyType.String, "", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEOMETRYFIELD_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEOMETRYFIELD_DESC}", "replaceGeometry=false", false, false));
		propertyDefinitions.put("outputGEDName", new PropertyDefinition("outputGEDName", PropertyType.String, "", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEDNAME_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUTGEDNAME_DESC}", "replaceGeometry=false", false, false));
		propertyDefinitions.put(NA_CONNECTION_PROPERTY, new PropertyDefinition(NA_CONNECTION_PROPERTY, PropertyType.ArcGISConnection, "", "${com.esri.geoevent.processor.service-area-calculator-processor.AGS_CONNECTION_NAME_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.AGS_CONNECTION_NAME_DESC}", true, false));

		propertyDefinitions.put(NA_PATH_PROPERTY, new PropertyDefinition(NA_PATH_PROPERTY, PropertyType.String, "rest/services/Network/USA/NAServer/Service%20Area/solveServiceArea", "${com.esri.geoevent.processor.service-area-calculator-processor.NA_SOLVER_PATH_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.NA_SOLVER_PATH_DESC}", false, false));
		propertyDefinitions.put(DRIVE_TIME_PROPERTY, new PropertyDefinition(DRIVE_TIME_PROPERTY, PropertyType.Integer, 2, "${com.esri.geoevent.processor.service-area-calculator-processor.DRIVE_TIME_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.DRIVE_TIME_DESC}", false, false));

		List<LabeledValue> outputPolygonType = new ArrayList<LabeledValue>(2);
		outputPolygonType.add(new LabeledValue("${com.esri.geoevent.processor.service-area-calculator-processor.POLYGON_TYPE_DETAILED_LBL}", "esriNAOutputPolygonDetailed"));
		outputPolygonType.add(new LabeledValue("${com.esri.geoevent.processor.service-area-calculator-processor.POLYGON_TYPE_SIMPLIFIED_LBL}", "esriNAOutputPolygonSimplified"));
		propertyDefinitions.put(OUTPUT_POLYGON_TYPE_PROPERTY, new PropertyDefinition(OUTPUT_POLYGON_TYPE_PROPERTY, PropertyType.String, "esriNAOutputPolygonSimplified", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUT_POLYGON_TYPE_LABEL}", "${com.esri.geoevent.processor.service-area-calculator-processor.OUTPUT_POLYGON_TYPE_DESC}", false, false, outputPolygonType));

	}
	catch (Exception e)
	{
		;
	}
}
 
开发者ID:Esri,项目名称:service-area-calculator-for-geoevent,代码行数:25,代码来源:ServiceAreaCalculatorDefinition.java


示例15: ServiceAreaCalculatorDefinition

import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public ServiceAreaCalculatorDefinition()
{
   try
   {
     
     propertyDefinitions.put(SERVICE_AREA_TYPE_PROPERTY, new PropertyDefinition(SERVICE_AREA_TYPE_PROPERTY, PropertyType.String, SERVICE_AREA_TYPE_BUFFER, "Service Area Type", "Create service area either by buffer with a distance or by drive time.", true, false, SERVICE_AREA_TYPE_BUFFER, SERVICE_AREA_TYPE_DRIVE_TIME));
     propertyDefinitions.put(BUFFER_DISTANCE_PROPERTY, new PropertyDefinition(BUFFER_DISTANCE_PROPERTY, PropertyType.Double, 500, "Buffer Distance (feet)", "Radius of a buffer around a point.", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_BUFFER, false, false));
     propertyDefinitions.put(NA_CONNECTION_PROPERTY, new PropertyDefinition(NA_CONNECTION_PROPERTY, PropertyType.ArcGISConnection, null, "ArcGIS ServerConnection Name", "The ArcGIS Server Connection to use when contacing Network Analyst", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_DRIVE_TIME, false, false));
     propertyDefinitions.put(NA_PATH_PROPERTY, new PropertyDefinition(NA_PATH_PROPERTY, PropertyType.String, "rest/services/Network/USA/NAServer/Route/solve", "Path to Network Analyst Route solver", "Path to Network Analyst Route solver relative to AGS Connection", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_DRIVE_TIME, false, false));
     propertyDefinitions.put(DRIVE_TIME_PROPERTY, new PropertyDefinition(DRIVE_TIME_PROPERTY, PropertyType.Integer, 2, "Drive Time Limit (minutes)", "Drive time limit of the service area", SERVICE_AREA_TYPE_PROPERTY + "=" + SERVICE_AREA_TYPE_DRIVE_TIME, false, false));
   }
   catch(Exception e)
   {
     ;
   }
}
 
开发者ID:Esri,项目名称:route-monitor-for-geoevent,代码行数:17,代码来源:ServiceAreaCalculatorDefinition.java


示例16: PlanDefinition

import com.esri.ges.core.property.PropertyType; //导入依赖的package包/类
public PlanDefinition()
{
  try
  {
    propertyDefinitions.put(AGS_CONNECTION_PROPERTY, new PropertyDefinition(AGS_CONNECTION_PROPERTY, PropertyType.ArcGISConnection, null, "ArcGIS Server Connection", "ArcGIS Server Connection.", true, false));
    propertyDefinitions.put(AGS_PATH_PROPERTY, new PropertyDefinition(AGS_PATH_PROPERTY, PropertyType.ArcGISFolder, "/", "Folder", "Path to the feature service.", true, false));
    propertyDefinitions.put(FEATURE_SERVICE_PROPERTY, new PropertyDefinition(FEATURE_SERVICE_PROPERTY, PropertyType.ArcGISFeatureService, null, "Feature Service", "Feature Service.", true, false));
    propertyDefinitions.put(STOP_LAYER_INDEX_PROPERTY, new PropertyDefinition(STOP_LAYER_INDEX_PROPERTY, PropertyType.ArcGISLayer, null, "Stop Layer", "Stop Layer.", true, false));
    propertyDefinitions.put(ROUTE_LAYER_INDEX_PROPERTY, new PropertyDefinition(ROUTE_LAYER_INDEX_PROPERTY, PropertyType.ArcGISLayer, null, "Route Layer", "Route Layer.", true, false));
    propertyDefinitions.put(VEHICLE_LAYER_INDEX_PROPERTY, new PropertyDefinition(VEHICLE_LAYER_INDEX_PROPERTY, PropertyType.ArcGISLayer, null, "Vehicle Layer", "Vehicle Layer.", true, false));
    propertyDefinitions.put(ALERT_LAYER_INDEX_PROPERTY, new PropertyDefinition(ALERT_LAYER_INDEX_PROPERTY, PropertyType.ArcGISLayer, null, "Alert Layer", "Alert Layer.", true, false));
    propertyDefinitions.put(GEOFENCE_LAYER_INDEX_PROPERTY, new PropertyDefinition(GEOFENCE_LAYER_INDEX_PROPERTY, PropertyType.ArcGISLayer, null, "GeoFence Layer", "GeoFence Layer.", true, false));
  }
  catch (Exception e)
  {
    LOG.error("Error setting up Plan Definition.", e);
  }
}
 
开发者ID:Esri,项目名称:route-monitor-for-geoevent,代码行数:19,代码来源:PlanDefinition.java


示例17: ActiveMQOutboundTransportDefinition

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


示例18: ActiveMQInboundTransportDefinition

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


示例19: TcpSquirtOutboundTransportDefinition

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

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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