public int hashCode() { return objectName.hashCode(); }
/** {@inheritDoc} */ @Override public int hashCode() { int result = type.hashCode(); result = 31 * result + mBean.hashCode(); result = 31 * result + secondary.hashCode(); result = 31 * result + (path != null ? path.hashCode() : 0); result = 31 * result + (target != null ? target.hashCode() : 0); return result; }
/** * Computes a hash code from attributes: {@code object}, {@code name}. * @return hashCode value */ @Override public int hashCode() { @Var int h = 5381; h += (h << 5) + object.hashCode(); h += (h << 5) + name.hashCode(); return h; }
public Object perform(Object[] args) throws Throwable { return objectName.hashCode(); } }
public Object perform(Object[] args) throws Throwable { return objectName.hashCode(); } }
/** * As with equals, use the MBeanServer + ObjectName to calculate the * hashCode */ public int hashCode() { return name.hashCode() * 31 + server.hashCode(); }
@Override public int hashCode() { int result = objectName != null ? objectName.hashCode() : 0; result = 31 * result + (attrs != null ? attrs.hashCode() : 0); return result; } }
public int notificationInfoHashCode() { int result = 17; if (name != null) { result = 37 * result + name.hashCode(); } if (filter != null) { result = 57 * result + filter.hashCode(); } return result; } }
@Override public int hashCode() { // TODO do something better return objectName.hashCode() + attributeName.hashCode(); }
public void unregisterBean(ObjectName beanName) throws Exception { Integer hash = new Integer(beanName.hashCode()); beanMap.remove(hash); }
@Override public int hashCode() { int result = (_objectName != null ? _objectName.hashCode() : 0); result = 31 * result + _name.hashCode(); result = 31 * result + (_children != null ? _children.hashCode() : 0); return result; }
public int hashCode() { int result; result = observed.hashCode(); result = 29 * result + listener.hashCode(); result = 29 * result + (filter != null ? filter.hashCode() : 0); result = 29 * result + (handback != null ? handback.hashCode() : 0); return result; }
/** {@inheritDoc} */ @Override public int hashCode() { int result = type.hashCode(); result = 31 * result + mBean.hashCode(); result = 31 * result + secondary.hashCode(); result = 31 * result + (path != null ? path.hashCode() : 0); result = 31 * result + (target != null ? target.hashCode() : 0); return result; }
public void unregisterBean(ObjectName targetName) throws Exception { Integer hash = new Integer(targetName.hashCode()); targetMap.remove(hash); log.debug("Unregistered targetName("+targetName+"), hash="+hash); }
@Override public int hashCode() { int result = name.hashCode(); result = 31 * result + listener.hashCode(); result = 31 * result + (filter != null ? filter.hashCode() : 0); result = 31 * result + (handback != null ? handback.hashCode() : 0); return result; } }
public void registerBean(ObjectName targetName, HATarget target) throws Exception { Integer hash = new Integer(targetName.hashCode()); log.debug("Registered targetName("+targetName+"), hash="+hash + ", target="+target); if (targetMap.containsKey(hash)) { throw new IllegalStateException("Duplicate targetName("+targetName + ") hashCode: "+hash); } targetMap.put(hash, target); }
public void registerBean(ObjectName beanName, HATarget target) throws Exception { Integer hash = new Integer(beanName.hashCode()); if(beanMap.containsKey(hash)) { log.debug("Trying to register target " + target + " using an existing hashCode. Already registered: " + hash + "=" + beanMap.get(hash)); throw new IllegalStateException("Trying to register target using an existing hashCode."); } beanMap.put(hash, target); }
/** * Destroy the proxy */ protected void destroyProxy() throws Exception { ObjectName name = getServiceName(); Integer nameHash = new Integer(name.hashCode()); Registry.unbind(nameHash); }
protected void stopService() throws Exception { Integer nameHash = new Integer(jmxInvokerName.hashCode()); Registry.unbind(jmxInvokerName); Registry.unbind(nameHash); if( jndiName != null ) { InitialContext iniCtx = new InitialContext(); Util.unbind(iniCtx, jndiName); } }
public void startService () throws Exception { // bind us in system registry // log.debug ("Starting Invalidation Manager " + this.getServiceName ().toString ()); org.jboss.system.Registry.bind (this.getServiceName ().toString (), this); this.hashcode = this.getServiceName ().hashCode (); }