SMART COSMOS Event Notification Listener

Default Listener that stores endpoints which should be triggered on certain events.

License

License

Categories

Categories

Net
GroupId

GroupId

net.smartcosmos
ArtifactId

ArtifactId

smartcosmos-event-listener
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

SMART COSMOS Event Notification Listener
Default Listener that stores endpoints which should be triggered on certain events.
Project URL

Project URL

http://smartcosmos.net/smartcosmos-event-listener
Project Organization

Project Organization

Smartrac Technology Fletcher, Inc.
Source Code Management

Source Code Management

https://github.com/SMARTRACTECHNOLOGY/smartcosmos-event-listener/tree/master/

Download smartcosmos-event-listener

How to add to project

<!-- https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-event-listener/ -->
<dependency>
    <groupId>net.smartcosmos</groupId>
    <artifactId>smartcosmos-event-listener</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-event-listener/
implementation 'net.smartcosmos:smartcosmos-event-listener:3.0.0'
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-event-listener/
implementation ("net.smartcosmos:smartcosmos-event-listener:3.0.0")
'net.smartcosmos:smartcosmos-event-listener:jar:3.0.0'
<dependency org="net.smartcosmos" name="smartcosmos-event-listener" rev="3.0.0">
  <artifact name="smartcosmos-event-listener" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.smartcosmos', module='smartcosmos-event-listener', version='3.0.0')
)
libraryDependencies += "net.smartcosmos" % "smartcosmos-event-listener" % "3.0.0"
[net.smartcosmos/smartcosmos-event-listener "3.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
net.smartcosmos : smartcosmos-framework jar 3.0.0
net.smartcosmos : smartcosmos-framework-messaging jar 3.0.0

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.6

test (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar
org.springframework.kafka : spring-kafka-test jar 1.0.0.RC1
com.jayway.restassured : spring-mock-mvc jar

Project Modules

There are no modules declared in this project.

SMART COSMOS Event Listener Service

Build Status

The Event Listener service is a service that listens to the incoming events from the event service and provides an outbound channel for events that do not implement a direct listener interface.

The configuration value smartcosmos.event-listener.topic which defaults to thing.read defines what event this service is listening for.

Events in Standard Services

While any service can create an event, or listen to any event, the system comes with several pre-existing events from many of the core metaphor services (Things, Relationships, Interactions, and Metadata). When listening to events it’s best to remember that every interaction is an event, but not every event is an interaction. Meaning that every interaction has a source and a target whereas events might merely be auditing or logging relevant information.

Things

THING_CREATED("thing.created"),
THING_READ("thing.read"),
THING_DELETED("thing.deleted"),
THING_NOT_FOUND("thing.notFound"),
THING_UPDATED("thing.updated"),
THING_DEACTIVATED("thing.deactivated"),
THING_CREATE_ALREADY_EXISTS("thing.createAlreadyExists"),
THING_CREATED_TRANSACTIONAL("thing.createdTransactional.transactionId."),
THING_TRANSACTIONAL_CREATE_FAILURE("thing.TransactionalCreateFailure.transactionId."),

Relationships

RELATIONSHIP_CREATED("relationship.created"),
RELATIONSHIP_READ("relationship.read"),
RELATIONSHIP_DELETED("relationship.deleted"),
RELATIONSHIP_NOT_FOUND("relationship.notFound"),
RELATIONSHIP_OWNER_NOT_FOUND("relationship.ownerNotFound"),
RELATIONSHIP_EMPTY_REQUEST("relationship.emptyRequest"),
RELATIONSHIP_CONSTRAINT_VIOLATION("relationship.constraintViolation"),
RELATIONSHIP_CREATE_ALREADY_EXISTS("relationship.createAlreadyExists"),

Interactions

Metadata

METADATA_CREATED("metadata.created"),
METADATA_UPDATED("metadata.updated"),
METADATA_UPSERTED("metadata.upserted"),
METADATA_READ("metadata.read"),
METADATA_DELETED("metadata.deleted"),
METADATA_NOT_FOUND("metadata.notFound"),
METADATA_OWNER_NOT_FOUND("metadata.ownerNotFound"),
METADATA_EMPTY_REQUEST("metadata.emptyRequest"),
METADATA_CONSTRAINT_VIOLATION("metadata.constraintViolation"),
METADATA_CREATE_KEY_ALREADY_EXISTS("metadata.createKeyAlreadyExists"),
METADATA_FORBIDDEN("metadata.forbidden"),
net.smartcosmos

Smart Cosmos Solutions Inc.

Versions

Version
3.0.0