equal
deleted
inserted
replaced
130 |
130 |
131 // MBean Server where the Relation Service is registered |
131 // MBean Server where the Relation Service is registered |
132 private MBeanServer myMBeanServer = null; |
132 private MBeanServer myMBeanServer = null; |
133 |
133 |
134 // Filter registered in the MBean Server with the Relation Service to be |
134 // Filter registered in the MBean Server with the Relation Service to be |
135 // informed of referenced MBean unregistrations |
135 // informed of referenced MBean deregistrations |
136 private MBeanServerNotificationFilter myUnregNtfFilter = null; |
136 private MBeanServerNotificationFilter myUnregNtfFilter = null; |
137 |
137 |
138 // List of unregistration notifications received (storage used if purge |
138 // List of unregistration notifications received (storage used if purge |
139 // of relations when unregistering a referenced MBean is not immediate but |
139 // of relations when unregistering a referenced MBean is not immediate but |
140 // on user request) |
140 // on user request) |
2106 /** |
2106 /** |
2107 * Sets the given role in given relation. |
2107 * Sets the given role in given relation. |
2108 * <P>Will check the role according to its corresponding role definition |
2108 * <P>Will check the role according to its corresponding role definition |
2109 * provided in relation's relation type |
2109 * provided in relation's relation type |
2110 * <P>The Relation Service will keep track of the change to keep the |
2110 * <P>The Relation Service will keep track of the change to keep the |
2111 * consistency of relations by handling referenced MBean unregistrations. |
2111 * consistency of relations by handling referenced MBean deregistrations. |
2112 * |
2112 * |
2113 * @param relationId relation id |
2113 * @param relationId relation id |
2114 * @param role role to be set (name and new value) |
2114 * @param role role to be set (name and new value) |
2115 * |
2115 * |
2116 * @exception RelationServiceNotRegisteredException if the Relation |
2116 * @exception RelationServiceNotRegisteredException if the Relation |
2218 /** |
2218 /** |
2219 * Sets the given roles in given relation. |
2219 * Sets the given roles in given relation. |
2220 * <P>Will check the role according to its corresponding role definition |
2220 * <P>Will check the role according to its corresponding role definition |
2221 * provided in relation's relation type |
2221 * provided in relation's relation type |
2222 * <P>The Relation Service keeps track of the changes to keep the |
2222 * <P>The Relation Service keeps track of the changes to keep the |
2223 * consistency of relations by handling referenced MBean unregistrations. |
2223 * consistency of relations by handling referenced MBean deregistrations. |
2224 * |
2224 * |
2225 * @param relationId relation id |
2225 * @param relationId relation id |
2226 * @param roleList list of roles to be set |
2226 * @param roleList list of roles to be set |
2227 * |
2227 * |
2228 * @return a RoleResult object, including a RoleList (for roles |
2228 * @return a RoleResult object, including a RoleList (for roles |
2829 "removeMBeanReference"); |
2829 "removeMBeanReference"); |
2830 return noLongerRefFlag; |
2830 return noLongerRefFlag; |
2831 } |
2831 } |
2832 |
2832 |
2833 // Updates the listener registered to the MBean Server to be informed of |
2833 // Updates the listener registered to the MBean Server to be informed of |
2834 // referenced MBean unregistrations |
2834 // referenced MBean deregistrations |
2835 // |
2835 // |
2836 // -param newRefList ArrayList of ObjectNames for new references done |
2836 // -param newRefList ArrayList of ObjectNames for new references done |
2837 // to MBeans (can be null) |
2837 // to MBeans (can be null) |
2838 // -param obsoleteRefList ArrayList of ObjectNames for obsolete references |
2838 // -param obsoleteRefList ArrayList of ObjectNames for obsolete references |
2839 // to MBeans (can be null) |
2839 // to MBeans (can be null) |