Gcmmessenger.GydF4y2Ba
使用Google Cloud Messaging(GCM)向Android设备发送消息。GydF4y2Ba
使用说明GydF4y2Ba
The performance of this transformer is dependent on the amount of memory allocated to the Java Virtual Machine (JVM). The following environment variables allow you to specify memory available to Java Plugins:
- fme_jvm_min_heap_size:初始化JVM的初始堆大小。如果未设置,默认值为1024k。GydF4y2Ba
- fme32_jvm_min_heap_size:与fme_jvm_min_heap_size相同,但适用于Windows上的32位FME桌面,如果设置,则优先于fme_jvm_min_heap_size。GydF4y2Ba
These variables must be set in multiples of 1024 and greater than 1 MB. To indicate kilobytes, megabytes, or gigabytes, appendK.GydF4y2BaorK.GydF4y2Ba那GydF4y2BamGydF4y2BaormGydF4y2Ba, 或者GydF4y2BaGGydF4y2BaorGGydF4y2Barespectively. For example, any of these values is acceptable:
6291456.GydF4y2Ba
6144K.GydF4y2Ba
6m
- fme_jvm_max_heap_size:初始化JVM的最大堆大小。如果未设置,则默认值为16384K。GydF4y2Ba
- FME32_JVM_MAX_HEAP_SIZE: Same as FME_JVM_MAX_HEAP_SIZE, but applies to 32-bit FME Desktop on Windows, and if set, takes precedence over FME_JVM_MAX_HEAP_SIZE.
必须在1024的倍数和大于2 MB的倍数中设置这些变量。表示千字节,兆字节或千兆字节,附录GydF4y2BaK.GydF4y2BaorK.GydF4y2Ba那GydF4y2BamGydF4y2BaormGydF4y2Ba, 或者GydF4y2BaGGydF4y2BaorGGydF4y2Barespectively. For example, any of these values is acceptable:
83886080GydF4y2Ba
81920k
80M.GydF4y2Ba
Note: ">笔记:GydF4y2BaTo pass additional parameters used by FME to the Java Virtual Machine, use the JAVA_TOOL_OPTIONS environment variable.
输入Ports
此变形器接受任何功能。GydF4y2Ba
输出端口GydF4y2Ba
输入功能通过此端口输出,附加属性(GydF4y2Ba_gcm_response.GydF4y2Ba) that contains the raw response from GCM. If more than one call was made to GCM then this will be a JSON Array of all the responses.
GCM在其数据库中具有新值的任何注册ID将通过此处输出作为其中的一部分GydF4y2Ba_old_id属性。新的“规范ID”将包含在GydF4y2Ba_new_id属性。It is recommended that you replace the old ID with the new one as it will eventually get deleted from GCM storage.
不再安装应用程序(已发出的设备)的注册ID将通过此处作为一部分输出GydF4y2Ba_unregistered_id属性。These should be removed from your database.
如果发生任何其他错误,则会通过此端口输出错误代码和相应的注册ID。GydF4y2Ba
参数GydF4y2Ba
GCM Request
The source of the message. To build a message from parameters, useFrom Parameters。To manually build a message from raw JSON, use来自自定义json.GydF4y2Ba。GydF4y2Ba
The final destination of the message. To deliver the message to Android devices, useGCM服务器GydF4y2Ba。To output the message to an attribute, use输出属性GydF4y2Ba。GydF4y2Ba
什么时候GydF4y2Ba发送消息GydF4y2Ba是GydF4y2Ba输出属性GydF4y2Ba,包含该消息的输出属性的名称。GydF4y2Ba
什么时候GydF4y2Ba发送消息GydF4y2Ba是GydF4y2BaGCM服务器GydF4y2Ba那the API key. The GCM developer API key is used for authorizing the transformer to the Google Cloud Messaging service. The API key is associated with the Android application developer, and generating it is a one-time process. To do so, follow the instructions inObtaining an API Key。GydF4y2Ba
消息内容参数GydF4y2Ba
以下部分可用GydF4y2Ba消息内容GydF4y2Ba是GydF4y2BaFrom Parameters。GydF4y2Ba
接收通知的目标Android设备列表。每个Android设备都可以将自身注册到Google Cloud Messaging Service,并且在此操作时,获取唯一标识设备的注册ID。GydF4y2Ba
登记每一个独特的ID是不同的ndroid device/application pair, so it cannot be shared between different applications. When configuring the GCMMessenger to work with a new application, new registration IDs must be acquired.
To register an Android application to the Google Cloud Messaging service, send acom.google.android.c2dm.intent.REGISTERintent. The registration ID is returned to the application in an intent extended string fieldregistrign_id.GydF4y2Ba。这个过程详述了GydF4y2Ba编写使用GCM的Android应用程序GydF4y2Ba。GydF4y2Ba
Additional data to send with the message.
高级消息内容选项GydF4y2Ba
An arbitrary string that is used to collapse multiple, similar messages when a device is offline, so that only the last message is sent. For example, if 100 messages with the same折叠钥匙GydF4y2Ba在关闭时发送到设备,设备仅接收最后一条消息。GydF4y2Ba
设置到GydF4y2Ba真的GydF4y2Ba当空闲时,消息将不会立即传送到Android设备,但是当它们变得活跃时。GydF4y2Ba
在丢弃它之前要存储在GCM服务器上的消息的时间量。左侧未指定时,默认时间为4周。GydF4y2Ba
应用程序包名称。此名称将消息传递限制为符合包名称的Android设备上的应用程序。GydF4y2Ba
设置到GydF4y2Ba真的GydF4y2Ba,测试而不实际向目标Android设备发送消息。GydF4y2Ba
Custom JSON Message Content
以下部分可用GydF4y2Ba消息内容GydF4y2Ba是GydF4y2Ba来自自定义json.GydF4y2Ba。GydF4y2Ba
The JSON message to send.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变换器参数菜单选项GydF4y2Ba。GydF4y2Ba
Defining Values
There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.
Using the Text Editor
文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。GydF4y2Ba
使用算术编辑器GydF4y2Ba
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。GydF4y2Ba
条件值GydF4y2Ba
根据通过或失败的一个或多个测试条件设置值。GydF4y2Ba
Parameter Condition Definition Dialog
Content
表达式和字符串可以包括许多函数,字符,参数等。GydF4y2Ba
什么时候setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated. Therefore, the names of these functions (in the form @<function_name>)不应用作文字字符串值。GydF4y2Ba
这些功能操纵和格式化字符串。GydF4y2Ba | |
特殊的角色GydF4y2Ba |
文本编辑器中提供了一组控制字符。GydF4y2Ba |
math functions are available in both editors. | |
日期/时间函数GydF4y2Ba | 文本编辑器中提供日期和时间函数。GydF4y2Ba |
这些运算符可在算术编辑器中使用。GydF4y2Ba | |
这些主要是特定于特征的值。GydF4y2Ba | |
FME and workspace-specific parameters may be used. | |
Creating and Modifying User Parameters | Create your own editable parameters. |
Dialog Options - Tables
Transformers with table-style parameters have additional tools for populating and manipulating values.
行重新排序GydF4y2Ba |
启用后,单击行项目后。选择包括:GydF4y2Ba
|
剪裁,复制和粘贴GydF4y2Ba |
启用后,单击行项目后。选择包括:GydF4y2Ba
切割,复制和粘贴可以在变压器或变压器之间使用。GydF4y2Ba |
Filter |
Start typing a string, and the matrix will only display rows matching those characters. Searches all columns. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
进口GydF4y2Ba |
导入使用从数据集读取的一组新属性填充表。特定应用在变压器之间变化。GydF4y2Ba |
Reset/Refresh |
通常将表重置为其初始状态,并且可以提供其他选项以删除无效条目。行为在变压器之间变化。GydF4y2Ba |
笔记:GydF4y2Ba并非所有变压器都提供所有工具。GydF4y2Ba
FME Community
FME社区是演示亚搏国际在线官网,TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。GydF4y2Ba
Search for samples and information about this transformer on theFME Community。GydF4y2Ba