Whatever message this page gives is out now! Go check it out!
port=portNumber |
directory=C:/temp |
Property | Req/Opt | Description |
directory | Required | Path to the directory to watch. |
recurse | Optional | Whether to check subdirectories. The default value is no. |
extensions | Optional | Comma-delimited list of extensions to watch. The event gateway logs only changed files with these extensions. An asterisk (*) indicates all files. The default value is all files. |
interval | Optional | Number of milliseconds between the times that the event gateway checks the directory. The default value is 60 seconds. |
addFunction | Optional | Name of the function to call when a file is added. The default value is onAdd. |
changeFunction | Optional | Name of the function to call when a file is changed. The default value is onChange. |
deleteFunction | Optional | Name of the function to call when a file is deleted. The default value is onDelete. |
Field | Description |
TYPE | Event type, one of ADD, CHANGE, DELETE. |
FILENAME | Absolute path from the system directory root to the file that was added, deleted, or changed. |
LASTMODIFIED | The date and time that the file was created or modified. This field is not included if the file was deleted. |
<cfcomponent>
<cffunction name="onAdd" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<cfset data=CFEvent.data>
<cflog file="MydirWatcher" application="No"
text="ACTION: #data.type#;FILE: #data.filename#;
TIME: #timeFormat(data.lastmodified)#">
</cffunction>
<cffunction name="onDelete" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<cfset data=CFEvent.data>
<cflog file="MydirWatcher" application="No"
text=" ACTION: #data.type#;FILE: #data.filename#">
</cffunction>
<cffunction name="onChange" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<cfset data=CFEvent.data>
<cflog file="MydirWatcher" application="No"
text=" ACTION: #data.type#;FILE: #data.filename#;
TIME: #timeFormat(data.lastmodified)#">
</cffunction>
</cfcomponent>Field | Contents |
data.id | Message correlation ID |
data.msg | Text of the message |
gatewayType | Gateway type: JMS |
originatorID | Topic name from which the message was consumed |
Field | Contents |
status | Must be SEND. |
topic | Name of the topic to publish the message to. |
id | (Optional) The JMS correlation ID to associate with the message. The default is null. |
message | Text of the message to publish. |
asBytes | (Optional) How to publish the message:
|