Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
9894a8d1
Commit
9894a8d1
authored
Jul 27, 2017
by
afreyssin
Browse files
Use DestinationConstants shared definition.
parent
2d76f66b
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/dest/DistributionModule.java
View file @
9894a8d1
...
...
@@ -24,6 +24,7 @@ package org.objectweb.joram.mom.dest;
import
java.util.Properties
;
import
org.objectweb.joram.shared.DestinationConstants
;
import
org.objectweb.joram.shared.excepts.MessageValueException
;
import
org.objectweb.joram.shared.messages.ConversionHelper
;
import
org.objectweb.joram.shared.messages.Message
;
...
...
@@ -35,9 +36,6 @@ import fr.dyade.aaa.common.Debug;
public
class
DistributionModule
{
public
static
Logger
logger
=
Debug
.
getLogger
(
DistributionModule
.
class
.
getName
());
/** The property name for the distribution handler class name. */
public
static
final
String
CLASS_NAME
=
"distribution.className"
;
/** Holds the distribution logic. */
private
DistributionHandler
distributionHandler
;
...
...
@@ -60,9 +58,9 @@ public class DistributionModule {
distributionHandler
.
init
(
properties
,
firstTime
);
}
if
(
properties
.
containsKey
(
D
i
st
ributionQueue
.
ASYNC_DISTRIBUTION_OPTION
))
{
if
(
properties
.
containsKey
(
D
e
st
inationConstants
.
ASYNC_DISTRIBUTION_OPTION
))
{
try
{
isAsyncDistribution
=
ConversionHelper
.
toBoolean
(
properties
.
get
(
D
i
st
ributionQueue
.
ASYNC_DISTRIBUTION_OPTION
));
isAsyncDistribution
=
ConversionHelper
.
toBoolean
(
properties
.
get
(
D
e
st
inationConstants
.
ASYNC_DISTRIBUTION_OPTION
));
}
catch
(
MessageValueException
exc
)
{
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment