@Test public void getDerivedDomainName() { JmxDefinitionDataIdent dataIdent = new JmxDefinitionDataIdent(); dataIdent.setmBeanObjectName("java.lang:type=GarbageCollector"); assertThat(dataIdent.getDerivedDomainName(), is(equalTo("java.lang"))); }
public String getDerivedDomainName() { Pattern pattern = Pattern.compile("([^:]+):[\\w\\s]+=([\\w\\s]+),[\\w\\s]+=([\\w\\s]+)"); Matcher matcher = pattern.matcher(mBeanObjectName); if (matcher.find()) { String g1 = matcher.group(1); String g2 = matcher.group(2); return g1 + "." + g2; } else { return mBeanObjectName.split(":")[0].trim(); } }
JmxDefinitionDataIdent implements Serializable { public String getDerivedDomainName() { Pattern pattern = Pattern.compile("([^:]+):[\\w\\s]+=([\\w\\s]+),[\\w\\s]+=([\\w\\s]+)"); Matcher matcher = pattern.matcher(mBeanObjectName); if (matcher.find()) { String g1 = matcher.group(1); String g2 = matcher.group(2); return g1 + "." + g2; } else { return mBeanObjectName.split(":")[0].trim(); } } }
JmxDefinitionDataIdent implements Serializable { public String getDerivedDomainName() { Pattern pattern = Pattern.compile("([^:]+):[\\w\\s]+=([\\w\\s]+),[\\w\\s]+=([\\w\\s]+)"); Matcher matcher = pattern.matcher(mBeanObjectName); if (matcher.find()) { String g1 = matcher.group(1); String g2 = matcher.group(2); return g1 + "." + g2; } else { return mBeanObjectName.split(":")[0].trim(); } }  }
JmxDefinitionDataIdent implements Serializable { public String getDerivedDomainName() { Pattern pattern = Pattern.compile("([^:]+):[\\w\\s]+=([\\w\\s]+),[\\w\\s]+=([\\w\\s]+)"); Matcher matcher = pattern.matcher(mBeanObjectName); if (matcher.find()) { String g1 = matcher.group(1); String g2 = matcher.group(2); return g1 + "." + g2; } else { return mBeanObjectName.split(":")[0].trim(); } }  String getDerivedDomainName(); String getDerivedTypeName(); String getDerivedFullName(); long getId(); void setId(long id); String getmBeanObjectName(); void setmBeanObjectName(String mBeanObjectName); Timestamp getTimeStamp(); void setTimeStamp(Timestamp timeStamp); PlatformIdent getPlatformIdent(); void setPlatformIdent(PlatformIdent platformIdent); String getmBeanAttributeName(); void setmBeanAttributeName(String mBeanAttributeName); String getmBeanAttributeDescription(); void setmBeanAttributeDescription(String mBeanAttributeDescription); String getmBeanAttributeType(); void setmBeanAttributeType(String mBeanAttributeType); Boolean getmBeanAttributeIsIs(); void setmBeanAttributeIsIs(Boolean mBeanAttributeIsIs); Boolean getmBeanAttributeIsReadable(); void setmBeanAttributeIsReadable(Boolean mBeanAttributeIsReadable); Boolean getmBeanAttributeIsWritable(); void setmBeanAttributeIsWritable(Boolean mBeanAttributeIsWritable); @Override int hashCode(); @Override boolean equals(Object obj); }
JmxDefinitionDataIdent implements Serializable { public String getDerivedDomainName() { Pattern pattern = Pattern.compile("([^:]+):[\\w\\s]+=([\\w\\s]+),[\\w\\s]+=([\\w\\s]+)"); Matcher matcher = pattern.matcher(mBeanObjectName); if (matcher.find()) { String g1 = matcher.group(1); String g2 = matcher.group(2); return g1 + "." + g2; } else { return mBeanObjectName.split(":")[0].trim(); } }  String getDerivedDomainName(); String getDerivedTypeName(); String getDerivedFullName(); long getId(); void setId(long id); String getmBeanObjectName(); void setmBeanObjectName(String mBeanObjectName); Timestamp getTimeStamp(); void setTimeStamp(Timestamp timeStamp); PlatformIdent getPlatformIdent(); void setPlatformIdent(PlatformIdent platformIdent); String getmBeanAttributeName(); void setmBeanAttributeName(String mBeanAttributeName); String getmBeanAttributeDescription(); void setmBeanAttributeDescription(String mBeanAttributeDescription); String getmBeanAttributeType(); void setmBeanAttributeType(String mBeanAttributeType); Boolean getmBeanAttributeIsIs(); void setmBeanAttributeIsIs(Boolean mBeanAttributeIsIs); Boolean getmBeanAttributeIsReadable(); void setmBeanAttributeIsReadable(Boolean mBeanAttributeIsReadable); Boolean getmBeanAttributeIsWritable(); void setmBeanAttributeIsWritable(Boolean mBeanAttributeIsWritable); @Override int hashCode(); @Override boolean equals(Object obj); static final String FIND_ID_BY_PLATFORM_AND_EXAMPLE; static final String UPDATE_TIMESTAMP; }