private String extractIndexName(ObjectMessage objectMessage) throws JMSException { String name = objectMessage.getStringProperty( Environment.INDEX_NAME_JMS_PROPERTY ); if ( name == null ) { //Fall back to try the property name we used before HSEARCH-1922 name = objectMessage.getStringProperty( "HSearchIndexName" ); } return name; }
private String extractIndexName(ObjectMessage objectMessage) throws JMSException { String name = objectMessage.getStringProperty( Environment.INDEX_NAME_JMS_PROPERTY ); if ( name == null ) { //Fall back to try the property name we used before HSEARCH-1922 name = objectMessage.getStringProperty( "HSearchIndexName" ); } return name; }
private String extractIndexName(ObjectMessage objectMessage) throws JMSException { String name = objectMessage.getStringProperty( Environment.INDEX_NAME_JMS_PROPERTY ); if ( name == null ) { //Fall back to try the property name we used before HSEARCH-1922 name = objectMessage.getStringProperty( "HSearchIndexName" ); } return name; }
private String extractIndexName(ObjectMessage objectMessage) throws JMSException { String name = objectMessage.getStringProperty( Environment.INDEX_NAME_JMS_PROPERTY ); if ( name == null ) { //Fall back to try the property name we used before HSEARCH-1922 name = objectMessage.getStringProperty( "HSearchIndexName" ); } return name; }
private void logMessageDetails(ObjectMessage objectMessage, String indexName) throws JMSException { String id = objectMessage.getStringProperty( "HSearchMsgId" ); log.debug( "Message Received for index '" + indexName + "': " + id ); }
private void logMessageDetails(ObjectMessage objectMessage, String indexName) throws JMSException { String id = objectMessage.getStringProperty( "HSearchMsgId" ); log.debug( "Message Received for index '" + indexName + "': " + id ); }
private void logMessageDetails(ObjectMessage objectMessage, String indexName) throws JMSException { String id = objectMessage.getStringProperty( "HSearchMsgId" ); log.debug( "Message Received for index '" + indexName + "': " + id ); }
private void logMessageDetails(ObjectMessage objectMessage, String indexName) throws JMSException { String id = objectMessage.getStringProperty( "HSearchMsgId" ); log.debug( "Message Received for index '" + indexName + "': " + id ); }
public void onMessage(Message message) { try { //check the message type ObjectMessage objectMessage = null; if (!(message instanceof ObjectMessage)) { log.error("Cannot handle message of type (class=" + message.getClass().getName() + "). Notification ignored."); return; } objectMessage = (ObjectMessage) message; //check the message content if (!(objectMessage.getObject() instanceof ClusterNotification)) { log.error("An unknown cluster notification message received (class=" + objectMessage.getObject().getClass().getName() + "). Notification ignored."); return; } if (log.isDebugEnabled()) { log.debug(objectMessage.getObject()); } // This prevents the notification sent by this node from being handled by itself if (!objectMessage.getStringProperty("nodeName").equals(clusterNode)) { //now handle the message ClusterNotification notification = (ClusterNotification) objectMessage.getObject(); handleClusterNotification(notification); } } catch (JMSException jmsEx) { log.error("Cannot handle cluster Notification", jmsEx); } } });
public void onMessage(Message message) { try { //check the message type ObjectMessage objectMessage = null; if (!(message instanceof ObjectMessage)) { log.error("Cannot handle message of type (class=" + message.getClass().getName() + "). Notification ignored."); return; } objectMessage = (ObjectMessage) message; //check the message content if (!(objectMessage.getObject() instanceof ClusterNotification)) { log.error("An unknown cluster notification message received (class=" + objectMessage.getObject().getClass().getName() + "). Notification ignored."); return; } if (log.isDebugEnabled()) { log.debug(objectMessage.getObject()); } // This prevents the notification sent by this node from being handled by itself if (!objectMessage.getStringProperty("nodeName").equals(clusterNode)) { //now handle the message ClusterNotification notification = (ClusterNotification) objectMessage.getObject(); handleClusterNotification(notification); } } catch (JMSException jmsEx) { log.error("Cannot handle cluster Notification", jmsEx); } } });
IdentifierList d = StructureHelper.stringToDomain(objMsg.getStringProperty(JMSEndpoint.DOM_PROPERTY)); Identifier n = new Identifier(objMsg.getStringProperty(JMSEndpoint.NET_PROPERTY)); UShort a = new UShort(objMsg.getIntProperty(JMSEndpoint.ARR_PROPERTY)); UShort s = new UShort(objMsg.getIntProperty(JMSEndpoint.SVC_PROPERTY));
@Override public void onMessage(Message message) { if ( !( message instanceof ObjectMessage ) ) { return; } ObjectMessage objectMessage = (ObjectMessage) message; List<LuceneWork> queue; try { String indexName = objectMessage.getStringProperty( Environment.INDEX_NAME_JMS_PROPERTY ); IndexManager indexManager = searchIntegrator.getIndexManager( indexName ); queue = indexManager.getSerializer().toLuceneWorks( (byte[]) objectMessage.getObject() ); } catch (JMSException e) { return; } catch (ClassCastException e) { return; } queues++; works += queue.size(); } }
String responder = reply.getStringProperty("responder"); if (LOG.isLoggable(Level.FINE)) { LOG.fine("Responder: " + responder);
String responder = reply.getStringProperty("responder"); if (LOG.isLoggable(Level.FINE)) { LOG.fine("Responder: " + responder);
String messageId = msg.getStringProperty(Constants.OriginalMessageID); if (!(msg.getObject() instanceof StorableMessage)) { logger.warn("JMS Consumer " + getId() + " did not receive a valid message.");