@Override public boolean equals(final Object other) { if (this == other) { return true; } if (!(other instanceof QueueImpl)) return false; QueueImpl qother = (QueueImpl)other; return name.equals(qother.name); }
@Override public boolean equals(final Object other) { if (this == other) { return true; } if (!(other instanceof QueueImpl)) return false; QueueImpl qother = (QueueImpl) other; return name.equals(qother.name); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof Identifier)) { return false; } if (obj.hashCode() != hash) { return false; } return ((Identifier)obj).name.equals(name); }
@Override public boolean equals(final Object obj) { if (!(obj instanceof Identifier)) { return false; } if (obj.hashCode() != hash) { return false; } return ((Identifier)obj).name.equals(name); }
@Override public boolean equals(final Object other) { if (other instanceof CreateQueueMessage == false) { return false; } CreateQueueMessage r = (CreateQueueMessage)other; return super.equals(other) && r.address.equals(address) && r.queueName.equals(queueName) && (r.filterString == null ? filterString == null : r.filterString.equals(filterString)) && r.durable == durable && r.temporary == temporary; }
@Override public boolean equals(final Object other) { if (other instanceof SessionCreateConsumerMessage == false) { return false; } SessionCreateConsumerMessage r = (SessionCreateConsumerMessage)other; return super.equals(other) && queueName.equals(r.queueName) && filterString == null ? r.filterString == null : filterString.equals(r.filterString); }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AddressImpl address1 = (AddressImpl) o; if (!address.equals(address1.address)) { return false; } return true; }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AddressImpl address1 = (AddressImpl)o; if (!address.equals(address1.address)) { return false; } return true; }
@Override public boolean equals(final Object other) { if (other instanceof SessionQueueQueryResponseMessage == false) { return false; } SessionQueueQueryResponseMessage r = (SessionQueueQueryResponseMessage)other; return super.equals(other) && exists == r.exists && durable == r.durable && consumerCount == r.consumerCount && messageCount == r.messageCount && filterString == null ? r.filterString == null : filterString.equals(r.filterString) && address == null ? r.address == null : address.equals(r.address); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FilterImpl other = (FilterImpl)obj; if (sfilterString == null) { if (other.sfilterString != null) return false; } else if (!sfilterString.equals(other.sfilterString)) return false; return true; }
@Override public boolean equals(final Object other) { if (other instanceof DisconnectMessage == false) { return false; } DisconnectMessage r = (DisconnectMessage)other; return super.equals(other) && nodeID.equals(r.nodeID); }
@Override public boolean equals(final Object other) { if (other instanceof SessionBindingQueryMessage == false) { return false; } SessionBindingQueryMessage r = (SessionBindingQueryMessage)other; return super.equals(other) && address.equals(r.address); }
private Binding locateBinding(SimpleString clusterName, List<Binding> bindings) { for (Binding binding : bindings) { if (binding.getClusterName().equals(clusterName)) { return binding; } } return null; }
@Override public boolean equals(final Object other) { if (other instanceof SessionQueueQueryMessage == false) { return false; } SessionQueueQueryMessage r = (SessionQueueQueryMessage)other; return super.equals(other) && r.queueName.equals(queueName); }
@Override public boolean equals(final Object other) { if (other instanceof SessionDeleteQueueMessage == false) { return false; } SessionDeleteQueueMessage r = (SessionDeleteQueueMessage)other; return super.equals(other) && r.queueName.equals(queueName); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (!(obj instanceof SessionQueueQueryMessage)) return false; SessionQueueQueryMessage other = (SessionQueueQueryMessage)obj; if (queueName == null) { if (other.queueName != null) return false; } else if (!queueName.equals(other.queueName)) return false; return true; } }
public void expireReferences() { if (expiryAddress != null && expiryAddress.equals(this.address)) { // check expire with itself would be silly (waste of time) if (HornetQServerLogger.LOGGER.isDebugEnabled()) HornetQServerLogger.LOGGER.debug("Cannot expire from " + address + " into " + expiryAddress); return; } if (!queueDestroyed && expiryScanner.scannerRunning.get() == 0) { expiryScanner.scannerRunning.incrementAndGet(); getExecutor().execute(expiryScanner); } }
protected Binding removeMapping(final SimpleString bindableName, final Bindings bindings) { Binding theBinding = null; for (Binding binding : bindings.getBindings()) { if (binding.getUniqueName().equals(bindableName)) { theBinding = binding; break; } } if (theBinding == null) { throw new IllegalStateException("Cannot find binding " + bindableName); } bindings.removeBinding(theBinding); return theBinding; }
public void setAddress(final Message message, final SimpleString address) { if (defaultAddress == null) { defaultAddress = address; message.setAddress(address); } else { if (!address.equals(defaultAddress)) { message.setAddress(address); } else { message.setAddress(null); } } }
/** * @param address * @throws Exception * @throws HornetQException */ private void validateDestination(SimpleString address) throws Exception, HornetQException { if ((address.startsWith(JMS_QUEUE_PREFIX) || address.startsWith(JMS_TOPIC_PREFIX)) && !address.equals(managementAddress)) { Bindings binding = server.getPostOffice().lookupBindingsForAddress(address); if (binding == null || binding.getBindings().size() == 0) { throw new HornetQException(HornetQException.ADDRESS_DOES_NOT_EXIST, "Address " + address + " has not been deployed"); } } }