Skip to content
GitLab
Menu
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
9d9f837c
Commit
9d9f837c
authored
Jul 27, 2017
by
afreyssin
Browse files
Use DestinationConstants shared definition.
parent
d8057502
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/dest/Destination.java
View file @
9d9f837c
...
...
@@ -53,6 +53,7 @@ import org.objectweb.joram.mom.proxies.SendReplyNot;
import
org.objectweb.joram.mom.util.DMQManager
;
import
org.objectweb.joram.mom.util.InterceptorsHelper
;
import
org.objectweb.joram.mom.util.MessageInterceptor
;
import
org.objectweb.joram.shared.DestinationConstants
;
import
org.objectweb.joram.shared.MessageErrorConstants
;
import
org.objectweb.joram.shared.admin.AdminCommandConstant
;
import
org.objectweb.joram.shared.admin.AdminCommandReply
;
...
...
@@ -98,11 +99,8 @@ import fr.dyade.aaa.util.management.MXWrapper;
* MOM destinations.
*/
public
abstract
class
Destination
extends
Agent
implements
DestinationMBean
{
public
static
Logger
logger
=
Debug
.
getLogger
(
Destination
.
class
.
getName
());
public
static
final
String
WAKEUP_PERIOD
=
"period"
;
/**
* <code>true</code> if the destination successfully processed a deletion
* request.
...
...
@@ -366,9 +364,9 @@ public abstract class Destination extends Agent implements DestinationMBean {
}
long
newPeriod
=
-
1
;
if
(
prop
!=
null
&&
prop
.
containsKey
(
WAKEUP_PERIOD
))
{
if
(
prop
!=
null
&&
prop
.
containsKey
(
DestinationConstants
.
WAKEUP_PERIOD
))
{
try
{
newPeriod
=
ConversionHelper
.
toLong
(
prop
.
get
(
WAKEUP_PERIOD
));
newPeriod
=
ConversionHelper
.
toLong
(
prop
.
get
(
DestinationConstants
.
WAKEUP_PERIOD
));
}
catch
(
Exception
e
)
{
logger
.
log
(
BasicLevel
.
ERROR
,
this
+
": error setting destination period"
,
e
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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