1 7 8 package javax.management.relation; 9 10 import javax.management.ObjectName ; 11 import javax.management.InstanceNotFoundException ; 12 13 import java.util.List ; 14 import java.util.Map ; 15 16 23 public interface RelationServiceMBean { 24 25 33 public void isActive() 34 throws RelationServiceNotRegisteredException ; 35 36 40 52 public boolean getPurgeFlag(); 53 54 66 public void setPurgeFlag(boolean thePurgeFlg); 67 68 72 87 public void createRelationType(String theRelTypeName, 88 RoleInfo [] theRoleInfoArray) 89 throws IllegalArgumentException , 90 InvalidRelationTypeException ; 91 92 103 public void addRelationType(RelationType theRelTypeObj) 104 throws IllegalArgumentException , 105 InvalidRelationTypeException ; 106 107 112 public List getAllRelationTypeNames(); 113 114 126 public List getRoleInfos(String theRelTypeName) 127 throws IllegalArgumentException , 128 RelationTypeNotFoundException ; 129 130 144 public RoleInfo getRoleInfo(String theRelTypeName, 145 String theRoleInfoName) 146 throws IllegalArgumentException , 147 RelationTypeNotFoundException , 148 RoleInfoNotFoundException ; 149 150 163 public void removeRelationType(String theRelTypeName) 164 throws RelationServiceNotRegisteredException , 165 IllegalArgumentException , 166 RelationTypeNotFoundException ; 167 168 172 205 public void createRelation(String theRelId, 206 String theRelTypeName, 207 RoleList theRoleList) 208 throws RelationServiceNotRegisteredException , 209 IllegalArgumentException , 210 RoleNotFoundException , 211 InvalidRelationIdException , 212 RelationTypeNotFoundException , 213 InvalidRoleValueException ; 214 215 260 public void addRelation(ObjectName theRelObjectName) 261 throws IllegalArgumentException , 262 RelationServiceNotRegisteredException , 263 NoSuchMethodException , 264 InvalidRelationIdException , 265 InstanceNotFoundException , 266 InvalidRelationServiceException , 267 RelationTypeNotFoundException , 268 RoleNotFoundException , 269 InvalidRoleValueException ; 270 271 285 public ObjectName isRelationMBean(String theRelId) 286 throws IllegalArgumentException , 287 RelationNotFoundException ; 288 289 300 public String isRelation(ObjectName theObjName) 301 throws IllegalArgumentException ; 302 303 313 public Boolean hasRelation(String theRelId) 314 throws IllegalArgumentException ; 315 316 322 public List getAllRelationIds(); 323 324 340 public Integer checkRoleReading(String theRoleName, 341 String theRelTypeName) 342 throws IllegalArgumentException , 343 RelationTypeNotFoundException ; 344 345 366 public Integer checkRoleWriting(Role theRole, 367 String theRelTypeName, 368 Boolean theInitFlg) 369 throws IllegalArgumentException , 370 RelationTypeNotFoundException ; 371 372 389 public void sendRelationCreationNotification(String theRelId) 390 throws IllegalArgumentException , 391 RelationNotFoundException ; 392 393 415 public void sendRoleUpdateNotification(String theRelId, 416 Role theNewRole, 417 List theOldRoleValue) 418 throws IllegalArgumentException , 419 RelationNotFoundException ; 420 421 439 public void sendRelationRemovalNotification(String theRelId, 440 List theUnregMBeanList) 441 throws IllegalArgumentException , 442 RelationNotFoundException ; 443 444 465 public void updateRoleMap(String theRelId, 466 Role theNewRole, 467 List theOldRoleValue) 468 throws IllegalArgumentException , 469 RelationServiceNotRegisteredException , 470 RelationNotFoundException ; 471 472 489 public void removeRelation(String theRelId) 490 throws RelationServiceNotRegisteredException , 491 IllegalArgumentException , 492 RelationNotFoundException ; 493 494 520 public void purgeRelations() 521 throws RelationServiceNotRegisteredException ; 522 523 543 public Map findReferencingRelations(ObjectName theMBeanName, 544 String theRelTypeName, 545 String theRoleName) 546 throws IllegalArgumentException ; 547 548 568 public Map findAssociatedMBeans(ObjectName theMBeanName, 569 String theRelTypeName, 570 String theRoleName) 571 throws IllegalArgumentException ; 572 573 584 public List findRelationsOfType(String theRelTypeName) 585 throws IllegalArgumentException , 586 RelationTypeNotFoundException ; 587 588 607 public List getRole(String theRelId, 608 String theRoleName) 609 throws RelationServiceNotRegisteredException , 610 IllegalArgumentException , 611 RelationNotFoundException , 612 RoleNotFoundException ; 613 614 631 public RoleResult getRoles(String theRelId, 632 String [] theRoleNameArray) 633 throws RelationServiceNotRegisteredException , 634 IllegalArgumentException , 635 RelationNotFoundException ; 636 637 651 public RoleResult getAllRoles(String theRelId) 652 throws IllegalArgumentException , 653 RelationNotFoundException , 654 RelationServiceNotRegisteredException ; 655 656 669 public Integer getRoleCardinality(String theRelId, 670 String theRoleName) 671 throws IllegalArgumentException , 672 RelationNotFoundException , 673 RoleNotFoundException ; 674 675 709 public void setRole(String theRelId, 710 Role theRole) 711 throws RelationServiceNotRegisteredException , 712 IllegalArgumentException , 713 RelationNotFoundException , 714 RoleNotFoundException , 715 InvalidRoleValueException , 716 RelationTypeNotFoundException ; 717 718 739 public RoleResult setRoles(String theRelId, 740 RoleList theRoleList) 741 throws RelationServiceNotRegisteredException , 742 IllegalArgumentException , 743 RelationNotFoundException ; 744 745 758 public Map getReferencedMBeans(String theRelId) 759 throws IllegalArgumentException , 760 RelationNotFoundException ; 761 762 773 public String getRelationTypeName(String theRelId) 774 throws IllegalArgumentException , 775 RelationNotFoundException ; 776 } 777 | Popular Tags |