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

Java AdapterDefinition类代码示例

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

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



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

示例1: DefenseInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public DefenseInboundAdapter(AdapterDefinition definition) throws ComponentException, ParserConfigurationException, SAXException, IOException
{
	super(definition);
	messageParser = new MessageParser(this);
	saxFactory = SAXParserFactory.newInstance();
	saxParser = saxFactory.newSAXParser();
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:8,代码来源:DefenseInboundAdapter.java


示例2: createAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
@Override
public Adapter createAdapter() throws ComponentException
{
  List<AdapterService> adapterServices = adapterRegistry.findOutboundAdapters(null);
  
  for (AdapterService adapterService : adapterServices)
  {
    if (adapterService.getAdapterDefinition().getName().equalsIgnoreCase(featureAdapterName))
    {
      featureAdapter = (OutboundAdapter) adapterService.createAdapter();
    }
  }
  AdapterDefinition basedef = featureAdapter.getDefinition();
  definition.getPropertyDefinitions().putAll(basedef.getPropertyDefinitions());
  return new MultiFeatureJsonOutboundAdapter(definition, featureAdapter, geoEventCreator);
}
 
开发者ID:Esri,项目名称:route-monitor-for-geoevent,代码行数:17,代码来源:MultiFeatureJsonOutboundAdapterService.java


示例3: CAPInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public CAPInboundAdapter(AdapterDefinition definition) throws ComponentException
{
	super(definition);
	 MAP = new LinkedHashMap(MAX_ENTRIES + 1, 1.1f, false){protected boolean removeEldestEntry(Map.Entry eldest){return size() > MAX_ENTRIES;}};
	 arcgisWGS = com.esri.core.geometry.SpatialReference.create(4326);
	 arcgisKmUnit = com.esri.core.geometry.Unit.create(9036);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:8,代码来源:CAPInboundAdapter.java


示例4: parseEvent

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
private GeoEvent parseEvent(String data)
{
	// Create an instance of the message using the guid that we generated when
	// we started up.
	GeoEvent msg;
	try
	{
		msg = geoEventCreator.create(((AdapterDefinition)definition).getGeoEventDefinition("CAPAlert").getGuid());
	}
	catch (MessagingException e)
	{
		return null;
	}
	return msg;
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:16,代码来源:CAPInboundAdapter.java


示例5: getDefinition

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
@Override
  public AdapterDefinition getDefinition()
  {
//    AdapterDefinition basedef = featureAdapter.getDefinition();
//    definition.getPropertyDefinitions().putAll(basedef.getPropertyDefinitions());
    return definition;
  }
 
开发者ID:Esri,项目名称:route-monitor-for-geoevent,代码行数:8,代码来源:MultiFeatureJsonOutboundAdapter.java


示例6: TweetStatusAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public TweetStatusAdapter(AdapterDefinition definition) throws ComponentException
{
	super(definition);
	LOGGER.debug("CREATED_MSG");
	charset = Charset.forName("UTF-8");
	decoder = charset.newDecoder();
}
 
开发者ID:Esri,项目名称:twitter-for-geoevent,代码行数:8,代码来源:TweetStatusAdapter.java


示例7: NmeaInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public NmeaInboundAdapter(AdapterDefinition definition) throws ComponentException
{
	super(definition);
	translators.put("NMEAGPGGA", new NMEAGPGGAMessageTranslator());
	translators.put("NMEAGPGLL", new NMEAGPGLLMessageTranslator());
	translators.put("NMEAGPRMC", new NMEAGPRMCMessageTranslator());
}
 
开发者ID:Esri,项目名称:nmea-for-geoevent,代码行数:8,代码来源:NmeaInboundAdapter.java


示例8: run

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
@Override
public void run()
{
	while (!messages.isEmpty())
	{
		String[] data = new String(messages.remove(0)).split(",");
		if (data.length > 0)
		{
			String gedName = "NMEA" + data[0];
			if (translators.containsKey(gedName))
			{
				try
				{
					NMEAMessageTranslator translator = translators.get(gedName);
					translator.validate(data);
					GeoEvent geoEvent = geoEventCreator.create(((AdapterDefinition) definition).getGeoEventDefinition(gedName).getGuid());
					geoEvent.setField(0, channelId);
					translator.translate(geoEvent, data);
					geoEventListener.receive(geoEvent);
				}
				catch (Exception error)
				{
					LOGGER.error("TRANSLATION_ERROR", error.getMessage());
					LOGGER.info(error.getMessage(), error);
				}
			}
		}
	}
}
 
开发者ID:Esri,项目名称:nmea-for-geoevent,代码行数:30,代码来源:NmeaInboundAdapter.java


示例9: TaipInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public TaipInboundAdapter(AdapterDefinition definition) throws ComponentException
{
  super(definition);
  lookup.put("RPV", "TAIP0xF0");
  lookup.put("RCP", "TAIP0xF1");
  lookup.put("RLN", "TAIP0xF2");
  lookup.put("RAM", "TAIPRAM");
  translators.put("RPV", new TAIP0xF0MessageTranslator());
  translators.put("RCP", new TAIP0xF1MessageTranslator());
  translators.put("RLN", new TAIP0xF2MessageTranslator());
  translators.put("RAM", new TAIPRAMMessageTranslator());    
}
 
开发者ID:Esri,项目名称:trimble-for-geoevent,代码行数:13,代码来源:TaipInboundAdapter.java


示例10: run

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
@Override
public void run()
{
  while (!messages.isEmpty())
  {
    ByteBuffer message = ByteBuffer.wrap(messages.remove(0));
    if (message.remaining() >= 3)
    {
      byte[] chars = new byte[3];
      message.get(chars);
      String taipFormat = new String(chars);
      if (lookup.containsKey(taipFormat))
      {
        try
        {
          GeoEvent geoEvent = geoEventCreator.create(((AdapterDefinition) definition).getGeoEventDefinition(lookup.get(taipFormat)).getGuid());
          translators.get(taipFormat).translate(channelId, message, geoEvent);
          geoEventListener.receive(geoEvent);
        }
        catch (Throwable error)
        {
        	LOGGER.error("TRANSLATION_ERROR", error.getMessage());
        	LOGGER.info(error.getMessage(), error);
        }
      }
      else
      	LOGGER.error("TRANSLATION_ERROR_FORMAT_NOT_SUPPORTED", taipFormat);
    }
  }
}
 
开发者ID:Esri,项目名称:trimble-for-geoevent,代码行数:31,代码来源:TaipInboundAdapter.java


示例11: GtfsRealtimeInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public GtfsRealtimeInboundAdapter(AdapterDefinition definition) throws ComponentException
{
  super(definition);
}
 
开发者ID:Esri,项目名称:gtfsrealtime-for-geoevent,代码行数:5,代码来源:GtfsRealtimeInboundAdapter.java


示例12: RegexTextInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public RegexTextInboundAdapter(AdapterDefinition adapterDefinition)
		throws ComponentException
{
	super(adapterDefinition);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:6,代码来源:RegexTextInboundAdapter.java


示例13: getAdapterDefinition

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
@Override
public AdapterDefinition getAdapterDefinition() {
	return this;
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:5,代码来源:CoTAdapterService.java


示例14: CoTAdapterOutbound

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
/**
 * @param definition
 * @throws ComponentException
 */
public CoTAdapterOutbound(AdapterDefinition definition)
		throws ComponentException {
	super(definition);
	// TODO Auto-generated constructor stub
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:10,代码来源:CoTAdapterOutbound.java


示例15: DefenseOutboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public DefenseOutboundAdapter(AdapterDefinition definition) throws ComponentException
{
  super(definition);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:5,代码来源:DefenseOutboundAdapter.java


示例16: ESDInboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public ESDInboundAdapter(AdapterDefinition definition) throws ComponentException
{
  super(definition);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:5,代码来源:ESDInboundAdapter.java


示例17: DefenseOutboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public DefenseOutboundAdapter(AdapterDefinition definition)
		throws ComponentException {
	super(definition);
}
 
开发者ID:Esri,项目名称:defense-solutions-proofs-of-concept,代码行数:5,代码来源:DefenseOutboundAdapter.java


示例18: AwsAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public AwsAdapter(AdapterDefinition definition) throws ComponentException
{
  super(definition);
  LOGGER.debug("AWS Adapter created");
}
 
开发者ID:Esri,项目名称:aws-for-geoevent,代码行数:6,代码来源:AwsAdapter.java


示例19: KmlOutboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public KmlOutboundAdapter(AdapterDefinition definition) throws ComponentException
{
  super(definition);
}
 
开发者ID:Esri,项目名称:kml-for-geoevent,代码行数:5,代码来源:KmlOutboundAdapter.java


示例20: MultiFeatureJsonOutboundAdapter

import com.esri.ges.adapter.AdapterDefinition; //导入依赖的package包/类
public MultiFeatureJsonOutboundAdapter(AdapterDefinition definition, OutboundAdapter featureAdapter, GeoEventCreator geoEventCreator)
{
  this.definition = definition;
  this.featureAdapter = featureAdapter;
  this.geoEventCreator = geoEventCreator;
}
 
开发者ID:Esri,项目名称:route-monitor-for-geoevent,代码行数:7,代码来源:MultiFeatureJsonOutboundAdapter.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java SyslogAppender类代码示例发布时间:2022-05-22
下一篇:
Java ModelSilverfish类代码示例发布时间: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