Package javax.management.relation

Examples of javax.management.relation.RoleInfo


      if (!r1.getRoleValue().equals(r2.getRoleValue())) throw new RuntimeException();
   }

   public void compareRoleInfo(Object o1, Object o2)
   {
      RoleInfo r1 = (RoleInfo)o1;
      RoleInfo r2 = (RoleInfo)o2;

      if (!r1.getDescription().equals(r2.getDescription())) throw new RuntimeException();
      if (r1.getMaxDegree() != r2.getMaxDegree()) throw new RuntimeException();
      if (r1.getMinDegree() != r2.getMinDegree()) throw new RuntimeException();
      if (!r1.getName().equals(r2.getName())) throw new RuntimeException();
      if (!r1.getRefMBeanClassName().equals(r2.getRefMBeanClassName())) throw new RuntimeException();
      if (!r1.isReadable() || !r2.isReadable()) throw new RuntimeException();
      if (!r1.isWritable() || !r2.isWritable()) throw new RuntimeException();
   }
View Full Code Here

TOP

Related Classes of javax.management.relation.RoleInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.