Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Python Container
    • For instance aragornContainer with the demo CDB
  • Component configuration:
Code Block
languagexml
titleCDB/MACI/Components/Components.xmltitleComponent Caller API
linenumberstrue
collapsetrue
...
<e
    Name="ComponentCallerAPI"
    Code="acs.ComponentCallerAPI"
    Type="IDL:alma/ACS/ACSComponent:1.0"
    Container="<container>aragornContainer"
    ImplLang="py"
    Autostart="true"/>
...

...

Deployment / Configuration

  • Install redis

    Code Block
    languagebash
    > sudo yum install redis
  • Python Container
    • For instance aragornContainer with the demo CDB
  • Component Configuration
Code Block
languagexml
titleCDB/MACI/Components/Components.xmltitleComponent Caller API
linenumberstrue
collapsetrue
...
<e
    Name="EventConverter"
    Code="acs.EventConverter"
    Type="IDL:alma/ACS/ACSComponent:1.0"
    Container="<container>aragornContainer"
    ImplLang="py"
    Autostart="true"/>
...
  • XMLDoc
Code Block
languagexml
titleCDB/alma/EventConverter/EventConverter.xmltitleComponent Caller API
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="ISO-8859-1"?>
<EventConverter xmlns="urn:schemas-cosylab-com:EventConverter:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RedisConn host="localhost" port="6379"/>
  <PubSub>
    <Channel name="TESTLoggingChannel">
      <EventType type="TestLogging.EventXmlLogRecord"/>
    </Channel>
  </PubSub>
  <ReliableSubscribers>
    <Subscriber name="test_eventslogging" queueLimit="20">
      <Channel name="TESTLoggingChannel">
        <EventType type="TestLogging.EventXmlLogRecord"/>
      </Channel>
    </Subscriber>
  </ReliableSubscribers>
</EventConverter>

Interaction

Code Block
> redis-cli
#Get all queues
127.0.0.1:6379> keys *


#Check elements of 'test_events' queue
LRANGE logging 0 -1


Discussion

  • Limitations: Callbacks
  • Improvements
  • New Ideas