* clusterNodeIdToTransfer, queueName,
* limitPositivePubToOneDigit); refEntry.setStorageId(new
* StorageId(serverScopeThree, clusterNodeIdToTransfer,
* relating, sn)); }
*/
XBStore xbStore = getXBStore(dbAccessorServerThree, serverScopeThree, refEntry.getStorageId());
dbAccessorServerThree.addEntry(xbStore, refEntry);
} else if (relating.equals(Constants.RELATING_HISTORY)) {
MsgQueueHistoryEntry entry = (MsgQueueHistoryEntry) ent;
entry.getStorageId().getXBStore().setPostfix(entry.getKeyOid());
if (!entry.getStorageId().getPostfix1().startsWith(relating + "_" + clusterNodeIdToTransfer)) {
logToFile(relating + ": Ignoring wrong cluster node "
+ entry.getStorageId().getPostfix1()
+ ": " + entry.getStorageId().getId());
return null;
}
XBStore xbStore = getXBStore(dbAccessorServerThree, serverScopeThree, entry.getStorageId());
dbAccessorServerThree.addEntry(xbStore, entry);
} else if (ent instanceof ReferenceEntry) {
ReferenceEntry refEntry = (ReferenceEntry) ent;
XBStore xbStore = getXBStore(dbAccessorServerThree, serverScopeThree, refEntry.getStorageId());
dbAccessorServerThree.addEntry(xbStore, refEntry);
} else {
I_MapEntry entry = (I_MapEntry) ent;
if (relating.equals(Constants.RELATING_MSGUNITSTORE)) {
if (!entry.getStorageId().getPostfix1().startsWith(
relating + "_" + clusterNodeIdToTransfer)) {
logToFile(relating + ": Ignoring wrong cluster node "
+ entry.getStorageId().getPostfix1()
+ ": " + entry.getStorageId().getId());
return null;
}
MsgUnitWrapper msgUnitWrapper = (MsgUnitWrapper) entry;
entry.getStorageId().getXBStore().setPostfix(msgUnitWrapper.getKeyOid());
} else if (relating.equals(Constants.RELATING_SESSION)
|| relating.equals(Constants.RELATING_SUBSCRIBE)) {
// "subPersistence,1_0" to "subPersistence,1.0"
// "topicStore_heron"
if (!entry.getStorageId().getPostfix1().startsWith(
relating + "_" + clusterNodeIdToTransfer)) {
logToFile(relating + ": Ignoring wrong cluster node "
+ entry.getStorageId().getPostfix1()
+ ": " + entry.getStorageId().getId());
return null;
}
entry.getStorageId().getXBStore().setPostfix(
ReplaceVariable.replaceAll(entry.getStorageId().getXBStore().getPostfix(), "1_0", "1.0"));
}
//else if (relating.equals(Constants.RELATING_TOPICSTORE)) {
// TopicEntry topicEntry = (TopicEntry)entry;
// logToFile(queueNamePattern + " [processed=" + counter +
// "] processing topicStore " + entry.getLogId());
//}
XBStore xbStore = getXBStore(dbAccessorServerThree, serverScopeThree, entry.getStorageId());
dbAccessorServerThree.addEntry(xbStore, entry);
}
processed++;
if ((processed % 1000) == 0)
logToFile(queueNamePattern + " [processed=" + processed + "] processing ...");