MessageProcessor.getInstance().pipeMsgEvent(event, null);
return;
}
// get the message element named InstanceNameMessage
MessageElement instanceNameMsgElement =
msg.getMessageElement(InstanceNameMessage, InstanceNameMessage);
//ignore broadcasts from yourself
String returnInstance = null;
if(instanceNameMsgElement != null) {
returnInstance = instanceNameMsgElement.toString();
if (_logger.isLoggable(Level.FINE)) {
_logger.fine("InputPipeWrapper:incoming propagated msg from: " + returnInstance);
}
}
if(returnInstance.equalsIgnoreCase(getInstanceName())) {
return;
}
MessageElement readyMsgElement = msg.getMessageElement(ReadyMessage, ReadyMessage);
if(readyMsgElement != null) {
try {
Thread.currentThread().sleep(2000L);
} catch(InterruptedException ex) {}
if (_pipelogger.isLoggable(Level.FINE)) {
_pipelogger.fine("readyMsgElement=" + readyMsgElement.toString() + " from: " + returnInstance);
}
JoinNotificationEventHandler.checkAndDoJoinFor(returnInstance);
}
MessageElement bulkMsgElement = msg.getMessageElement(BULK_MESSAGE_MODE, BULK_MESSAGE_MODE);
if (bulkMsgElement != null) {
processBulkMessage(msg, bulkMsgElement);
return;
}
MessageElement idMsgElement = msg.getMessageElement(MESSAGE_ID, MESSAGE_ID);
if(idMsgElement != null) {
if (_logger.isLoggable(Level.FINE)) {
_logger.fine("idMsgElement=" + idMsgElement.toString());
}
}
MessageElement commandMsgElement =
msg.getMessageElement(MESSAGE_COMMAND, MESSAGE_COMMAND);
if(commandMsgElement != null) {
String theCommand = commandMsgElement.toString();
if(isBroadcastMethod(theCommand)) {
//processQueryMessage(msg, idMsgElement, returnInstance);
ReplicationMessageRouter receiver = getRouter();
ReplicationState state = createReplicationState(msg);
processQueryState(state, receiver);