Project

General

Profile

Story #655

Metacat notification system

Added by Chad Berkley almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
Chad Berkley
Category:
Metacat
Target version:
Start date:
Due date:
% Done:

100%

Story Points:
Sprint:

Description

As an administrator and developer, I want to see a message when metacat creates or changes and object in the object store.

History

#1 Updated by Chad Berkley almost 14 years ago

From the notes:
Story: (5, Sprint 8, Chad) Metacat notification of downstream services that content has changed.
- metacat will generate log messages. (task-chad)Create a separate log file using Log4J ('RollingFileAppender' for ResourceHandler...add log statements with localIds of SM and metadata doc.) Create separate logs for replication and create().
- task: (Robert) implement a watcher for the log that will trigger the packager to generate packages for new content and store the state of operations against the log file (time, offset)

#2 Updated by Chad Berkley almost 14 years ago

  • Status changed from New to In Progress

Added a new logger "DataOneLogger" to the CrudService and the ReplicationHandler. Events on this log are of the form: [localId:] [guid:]. The localId and guid are included only on appropriate events. Replication events include only localId. An example is:

knb 20100615-16:16:24: [INFO]: getSystemMetadata localId: autogen.2010166161624233.1 guid:test.2010166161624120 [DataOneLogger]

or

knb 20100615-16:16:25: [INFO]: create localId:autogen.2010166161625471.1 guid:test.2010166161625469 [DataOneLogger]

Robert now just needs to connect to this logger on the CN to handle the messages.

#3 Updated by Chad Berkley over 13 years ago

  • Status changed from In Progress to Closed

Event and replication logs are now functional. The messages are of the format:

D1GUID::D1SCIMETADATA::D1SYSMETA::

where method is 'create', 'update', 'get', etc.
guid is the guid assigned to the object
scienceMetadataLocalId is the localId (metacat docid) of the metadata or data object stored in metacat
systemMetadataLocalId is the localId (metacat docid) of the system metadata object stored in metacat

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)