[hornetq-commits] JBoss hornetq SVN: r10943 - branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Jul 7 06:21:53 EDT 2011
Author: borges
Date: 2011-07-07 06:21:52 -0400 (Thu, 07 Jul 2011)
New Revision: 10943
Modified:
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationEndpointImpl.java
Log:
Clean up
Modified: branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationEndpointImpl.java
===================================================================
--- branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationEndpointImpl.java 2011-07-07 05:33:22 UTC (rev 10942)
+++ branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/replication/impl/ReplicationEndpointImpl.java 2011-07-07 10:21:52 UTC (rev 10943)
@@ -66,13 +66,8 @@
// Attributes ----------------------------------------------------
- private static final boolean trace = ReplicationEndpointImpl.log.isTraceEnabled();
+ private static final boolean trace = log.isTraceEnabled();
- private static void trace(final String msg)
- {
- ReplicationEndpointImpl.log.trace(msg);
- }
-
private final HornetQServer server;
private Channel channel;
@@ -181,7 +176,7 @@
}
else
{
- ReplicationEndpointImpl.log.warn("Packet " + packet + " can't be processed by the ReplicationEndpoint");
+ log.warn("Packet " + packet + " can't be processed by the ReplicationEndpoint");
}
}
catch (HornetQException e)
@@ -259,7 +254,7 @@
}
catch (Exception e)
{
- ReplicationEndpointImpl.log.warn("Error while closing the page on backup", e);
+ log.warn("Error while closing the page on backup", e);
}
}
}
@@ -304,7 +299,7 @@
{
if (!journalInformation[i].equals(journalLoadInformation[i]))
{
- ReplicationEndpointImpl.log.warn("Journal comparisson mismatch:\n" + journalParametersToString(journalInformation));
+ log.warn("Journal comparisson mismatch:\n" + journalParametersToString(journalInformation));
throw new HornetQException(HornetQException.ILLEGAL_STATE,
"Backup node can't connect to the live node as the data differs");
}
@@ -363,7 +358,7 @@
}
catch (Exception e)
{
- ReplicationEndpointImpl.log.warn("Error deleting large message ID = " + packet.getMessageId(), e);
+ log.warn("Error deleting large message ID = " + packet.getMessageId(), e);
}
}
}
@@ -403,7 +398,7 @@
if (message == null)
{
- ReplicationEndpointImpl.log.warn("Large MessageID " + messageId +
+ log.warn("Large MessageID " + messageId +
" is not available on backup server. Ignoring replication message");
}
@@ -419,7 +414,7 @@
LargeServerMessage largeMessage = storage.createLargeMessage();
largeMessage.setDurable(true);
largeMessage.setMessageID(packet.getMessageId());
- ReplicationEndpointImpl.trace("Receiving Large Message " + largeMessage.getMessageID() + " on backup");
+ log.trace("Receiving Large Message " + largeMessage.getMessageID() + " on backup");
largeMessages.put(largeMessage.getMessageID(), largeMessage);
}
@@ -505,7 +500,7 @@
{
if (ReplicationEndpointImpl.trace)
{
- ReplicationEndpointImpl.trace("Endpoint appendUpdate id = " + packet.getId());
+ log.trace("Endpoint appendUpdate id = " + packet.getId());
}
journalToUse.appendUpdateRecord(packet.getId(), packet.getRecordType(), packet.getRecordData(), false);
}
@@ -513,7 +508,7 @@
{
if (ReplicationEndpointImpl.trace)
{
- ReplicationEndpointImpl.trace("Endpoint append id = " + packet.getId());
+ log.trace("Endpoint append id = " + packet.getId());
}
journalToUse.appendAddRecord(packet.getId(), packet.getRecordType(), packet.getRecordData(), false);
}
@@ -620,6 +615,6 @@
*/
private Journal getJournal(final byte journalID)
{
- return this.journals[journalID];
+ return journals[journalID];
}
}
More information about the hornetq-commits
mailing list