本文整理了Java中javax.management.ObjectName.hashCode()
方法的一些代码示例,展示了ObjectName.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectName.hashCode()
方法的具体详情如下:
包路径:javax.management.ObjectName
类名称:ObjectName
方法名:hashCode
暂无
代码示例来源:origin: apache/geode
public int hashCode() {
return objectName.hashCode();
}
代码示例来源:origin: rhuss/jolokia
/** {@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;
}
代码示例来源:origin: glowroot/glowroot
/**
* 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;
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-mbeans
public Object perform(Object[] args) throws Throwable
{
return objectName.hashCode();
}
}
代码示例来源:origin: org.jboss.mx/jboss-mbeans
public Object perform(Object[] args) throws Throwable
{
return objectName.hashCode();
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-j2se
/**
* As with equals, use the MBeanServer + ObjectName to calculate the
* hashCode
*/
public int hashCode()
{
return name.hashCode() * 31 + server.hashCode();
}
代码示例来源:origin: io.fabric8.insight/insight-metrics-model
@Override
public int hashCode() {
int result = objectName != null ? objectName.hashCode() : 0;
result = 31 * result + (attrs != null ? attrs.hashCode() : 0);
return result;
}
}
代码示例来源:origin: com.github.veithen.visualwas/connector
public int notificationInfoHashCode() {
int result = 17;
if (name != null) {
result = 37 * result + name.hashCode();
}
if (filter != null) {
result = 57 * result + filter.hashCode();
}
return result;
}
}
代码示例来源:origin: com.github.dimovelev/metrics-sampler-extension-jmx
@Override
public int hashCode() {
// TODO do something better
return objectName.hashCode() + attributeName.hashCode();
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-cluster
public void unregisterBean(ObjectName beanName) throws Exception
{
Integer hash = new Integer(beanName.hashCode());
beanMap.remove(hash);
}
代码示例来源:origin: org.echocat.jemoni/carbon
@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;
}
代码示例来源:origin: apache/felix
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;
}
代码示例来源:origin: org.jolokia/jolokia-service-history
/** {@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;
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-cluster
public void unregisterBean(ObjectName targetName) throws Exception
{
Integer hash = new Integer(targetName.hashCode());
targetMap.remove(hash);
log.debug("Unregistered targetName("+targetName+"), hash="+hash);
}
代码示例来源:origin: org.wildfly/wildfly-jmx
@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;
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-cluster
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);
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-cluster
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);
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-connector
/**
* Destroy the proxy
*/
protected void destroyProxy() throws Exception
{
ObjectName name = getServiceName();
Integer nameHash = new Integer(name.hashCode());
Registry.unbind(nameHash);
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
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);
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
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 ();
}
内容来源于网络,如有侵权,请联系作者删除!