Skip to content

Commit

Permalink
SAFMonitor split into its own module
Browse files Browse the repository at this point in the history
People using just SAF without SAFMonitor doesn't need to carry all
SAFMonitor's dependencies.
  • Loading branch information
ar committed May 31, 2017
1 parent 2955613 commit 9aab10d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/saf-monitor/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description = 'jPOS-EE :: Store and Forward (SAF) Monitor Module'

dependencies {
compile project(':modules:saf')
compile project(':modules:status')
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<saf name='saf' logger='Q2' realm='saf' class='org.jpos.saf.SAF'>
<property name='space' value='jdbm:saf' />
<property name='mux' value='mux' />
<property name='flag-retransmissions' value='no'>
if MTI is in list, messages would be retransmitted as xxx1
</property>
<property name='initial-delay' value='60000' />
<property name='inter-message-delay' value='1000' />
<property name='wait-for-response' value='60000' />
<property name='max-retransmissions' value='1000' />
<property name='expire-after' value='86400'>
in seconds
</property>
<property name='valid-response-codes' value='*' />
<property name='retry-response-codes' value='91,ZZ' />
</saf>

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<saf-monitor class='org.jpos.ee.status.Monitor' logger='Q2'>
<monitor id="SAF" delay='10000' period='30000'>
<class>org.jpos.saf.SAFMonitor</class>
<property name='saf' value='saf' />
</monitor>
</saf-monitor>

2 changes: 1 addition & 1 deletion modules/saf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ description = 'jPOS-EE :: Store and Forward (SAF) Module'

dependencies {
compile project(':modules:core')
compile project(':modules:status')
}

1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ include ':modules:core',
':modules:mail',
':modules:jetty',
':modules:saf',
':modules:saf-monitor',
':modules:things',
':modules:server-simulator',
':modules:client-simulator',
Expand Down

0 comments on commit 9aab10d

Please # to comment.