arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Core Layer

The Core layer of the Open Source Grid Platform is responsible for Validation, Translation, Authorisation and Routing of request messages. It also contains all the Domain Objects.

The core layer consists of two components:

  • osgp-domain-core: Shared Domain objects, services, repositories, etc. These classes are used through the entire platform.

  • osgp-core: Logic for routing domain requests, scheduling, retrying, etc.

hashtag
General Package structure: osgp-domain-core

  • entities: Defines the entities used for persistence.

  • exceptions: Domain specific exceptions reside here.

  • repositories: Repositories that contain logic for persisting entities.

hashtag
General Package structure: osgp-core

hashtag
application

  • config: Contains the configuration files for the Component. Uses the property files in /etc/osp/.

    -- ApplicationContext

    -- OsgpCoreInitializer

    -- DomainMessagingConfig

    -- PersistenceConfig

    -- ProtocolMessagingConfig

hashtag
domain.model

These packages contain interfaces for the Services.

  • domain: Interfaces for the Domain services.

  • protocol: Interfaces for the Protocol services.

hashtag
infra.jms

  • domain: Contains Messages, MessageListeners and MessageProcessors for Domain related messaging.

  • protocol: Contains Messages, MessageListeners and MessageProcessors for Protocol related messaging.

services: Domain services that reference a repository.
  • specifications: Interfaces that define specifications for Devices and Events.

  • validations: Validators and constraints.

  • valueobjects: Definitions of the Domain Objects.

  • -- SchedulingConfig
  • services: Services that process device requests/ responses. Checks for authorization, and if the request is supported by the platform, it will be routed to the appropriate protocol adapter.

  • tasks: Contains task scheduler logic.