Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/QueueWorker/ConfigurationSamples"

(Replacing page with '{{note|This has been removed in SMILA 0.9 by the JobManager framework}}')
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Configuration Samples ==
+
{{note|This has been removed in SMILA 0.9 by the [[SMILA/Documentation/JobManager|JobManager framework]]}}
=== Default Settings ===
+
 
+
Shortly, the default behavior is
+
# Router put record into queue
+
# Listener get record from queue and start AddPipeline or DeletePipeline
+
 
+
==== ConnectionConfig.xml  ====
+
<source lang="xml">
+
<ConnectionsConfig xmlns="http://www.eclipse.org/smila/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
>
+
 
+
  <ConnectionConfig Id="broker1">
+
    <URL>tcp://localhost:61616</URL>
+
    <User>any</User>
+
    <Password>any</Password>
+
    <ConnectionFactory>org.apache.activemq.ActiveMQConnectionFactory</ConnectionFactory>
+
  </ConnectionConfig>
+
 
+
</ConnectionsConfig>
+
</source>
+
==== RouterConfig.xml  ====
+
<source lang="xml">
+
<RouterConfig xmlns="http://www.eclipse.org/smila/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
>
+
  <Rule Name="Default ADD Rule">
+
    <Condition>Operation='ADD'</Condition>
+
    <Task>
+
      <Send BrokerId="broker1" Queue="SMILA.connectivity" RecordFilter="nothing"/>
+
    </Task>
+
  </Rule>
+
 
+
  <Rule Name="Default DELETE Rule">
+
    <Condition>Operation='DELETE'</Condition>
+
    <Task>
+
      <Send BrokerId="broker1" Queue="SMILA.connectivity"  RecordFilter="nothing"/>
+
    </Task>
+
  </Rule>
+
 
+
</RouterConfig>
+
</source>
+
==== ListenerConfig.xml  ====
+
<source lang="xml">
+
<ListenerConfig xmlns="http://www.eclipse.org/smila/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
>
+
 
+
  <Rule Name="Default ADD Rule" WaitMessageTimeout="10" Workers="2">
+
    <Source BrokerId="broker1" Queue="SMILA.connectivity"/>
+
    <Condition>Operation='ADD'</Condition>
+
    <Task>
+
      <Process Workflow="AddPipeline"/>
+
    </Task>
+
  </Rule>
+
 
+
  <Rule Name="Default Delete Rule" WaitMessageTimeout="10" Workers="2">
+
    <Source BrokerId="broker1" Queue="SMILA.connectivity"/>
+
    <Condition>Operation='DELETE'</Condition>
+
    <Task>
+
      <Process Workflow="DeletePipeline"/>
+
    </Task>
+
  </Rule>
+
   
+
</ListenerConfig>
+
</source>
+
 
+
=== Settings for direct processing without queue  ===
+
 
+
Shortly, the behavior is: Router executes AddPipeline or DeletePipeline immediately.
+
 
+
 
+
==== ConnectionConfig.xml  ====
+
<source lang="xml">
+
<ConnectionsConfig xmlns="http://www.eclipse.org/smila/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
/>
+
</source>
+
==== RouterConfig.xml  ====
+
<source lang="xml">
+
<RouterConfig xmlns="http://www.eclipse.org/smila/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
>
+
  <Rule Name="Default ADD Rule">
+
    <Condition>Operation='ADD'</Condition>
+
    <Task>
+
      <Process Workflow="AddPipeline"/>
+
    </Task>
+
  </Rule>
+
 
+
  <Rule Name="Default DELETE Rule">
+
    <Condition>Operation='DELETE'</Condition>
+
    <Task>
+
      <Process Workflow="DeletePipeline"/>
+
    </Task>
+
  </Rule>
+
 
+
</RouterConfig>
+
</source>
+
==== ListenerConfig.xml  ====
+
<source lang="xml">
+
<ListenerConfig xmlns="http://www.eclipse.org/smila/queue"
+
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
  xsi:noNamespaceSchemaLocation="schemas/QueueWorkerConfig.xsd"
+
/>
+
</source>
+
 
+
 
+
[[Category:SMILA]]
+

Latest revision as of 05:59, 24 January 2012

Note.png
This has been removed in SMILA 0.9 by the JobManager framework

Back to the top