understanding the fme server notification service

Post on 14-Apr-2017

172 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

FME Server Notification ServiceJim O’LearyCity of Vancouver

Publish-Subscribe Design Pattern

FME Server Notification Service

How We Use It

Job Failure Notification

Directory Watcher Notification

Publications

Topics

Subscriptions

Subscriptions

Subscriptions

Subscriptions<font face='sans-serif' size='3'><fmeblock type="optional">FME Server Job <b>{id}</b> failed.</fmeblock><br>&nbsp;<fmeblock type="optional">To access the log file for this job in the FME Server web interface:<ol> <li>Select <b>Manage->Jobs</b></li> <li>Select the job with Id <b>{id}</b> to open it</li> <li>Select the <b>Log</b> tab</li></ol></fmeblock><br><fmeblock type="optional"><b>Time started:</b> {timeStarted}</fmeblock><br>&nbsp;<br><fmeblock type="optional"><b>Time finished:</b> {timeFinished}</fmeblock></font>

Subscriptions

Demo: Job Failure Notification

Job Failure Notification

Job Failure Notification

Job Failure Notification

Demo: Directory Watch Notification

Directory Watch Notification

Directory Watch Notification

Directory Watch Notification

Directory Watch Notification

Directory Watch Notification

Directory Watch Notification

• Notification data reader• Parse notification JSON• Has my file changed?• Do something :)

Test_DirWatch_Topic arrived at 10:57:34{ "ws_topic": "Test_DirWatch_Topic", "dirwatch_publisher_path": "C:\\ProgramData\\Safe Software\\FME Server\\Data\txt\\New Text Document.txt", "dirwatch_publisher_content": "ENTRY_MODIFY C:\\ProgramData\\Safe Software\\FME Server\\Data\\txt\\New Text Document.txt", "dirwatch_publisher_action": "MODIFY", "fns_type": "dirwatch_publisher" }

Questions?Thank you!“Live long and prosper”-jim.oleary@vancouver.ca

top related