📄 relationservicembean.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/relation/RelationServiceMBean.html#sendRoleUpdateNotification(java.lang.String, javax.management.relation.Role, java.util.List)">sendRoleUpdateNotification</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> theRelId, <A HREF="../../../javax/management/relation/Role.html" title="class in javax.management.relation">Role</A> theNewRole, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> theOldRoleValue)</CODE><BR> Sends a notification (RelationNotification) for a role update in the given relation. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/relation/RelationServiceMBean.html#setPurgeFlag(boolean)">setPurgeFlag</A></B>(boolean thePurgeFlg)</CODE><BR> Sets the flag to indicate if when a notification is received for the unregistration of an MBean referenced in a relation, if an immediate "purge" of the relations (look for the relations no longer valid) has to be performed, or if that will be performed only when the purgeRelations method is explicitly called. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/relation/RelationServiceMBean.html#setRole(java.lang.String, javax.management.relation.Role)">setRole</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> theRelId, <A HREF="../../../javax/management/relation/Role.html" title="class in javax.management.relation">Role</A> theRole)</CODE><BR> Sets the given role in given relation. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/management/relation/RoleResult.html" title="class in javax.management.relation">RoleResult</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/relation/RelationServiceMBean.html#setRoles(java.lang.String, javax.management.relation.RoleList)">setRoles</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> theRelId, <A HREF="../../../javax/management/relation/RoleList.html" title="class in javax.management.relation">RoleList</A> theRoleList)</CODE><BR> Sets the given roles in given relation. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/relation/RelationServiceMBean.html#updateRoleMap(java.lang.String, javax.management.relation.Role, java.util.List)">updateRoleMap</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> theRelId, <A HREF="../../../javax/management/relation/Role.html" title="class in javax.management.relation">Role</A> theNewRole, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> theOldRoleValue)</CODE><BR> Handles update of the Relation Service role map for the update of given role in given relation. </TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="isActive()"><!-- --></A><H3>isActive</H3><PRE>public void <B>isActive</B>() throws <A HREF="../../../javax/management/relation/RelationServiceNotRegisteredException.html" title="class in javax.management.relation">RelationServiceNotRegisteredException</A></PRE><DL><DD>Checks if the Relation Service is active. Current condition is that the Relation Service must be registered in the MBean Server<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/relation/RelationServiceNotRegisteredException.html" title="class in javax.management.relation">RelationServiceNotRegisteredException</A></CODE> - if it is not registered</DL></DD></DL><HR><A NAME="getPurgeFlag()"><!-- --></A><H3>getPurgeFlag</H3><PRE>public boolean <B>getPurgeFlag</B>()</PRE><DL><DD>Returns the flag to indicate if when a notification is received for the unregistration of an MBean referenced in a relation, if an immediate "purge" of the relations (look for the relations no longer valid) has to be performed, or if that will be performed only when the purgeRelations method is explicitly called. <P>true is immediate purge.<P><DD><DL><DT><B>Returns:</B><DD>true if purges are immediate.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/relation/RelationServiceMBean.html#setPurgeFlag(boolean)"><CODE>setPurgeFlag(boolean)</CODE></A></DL></DD></DL><HR><A NAME="setPurgeFlag(boolean)"><!-- --></A><H3>setPurgeFlag</H3><PRE>public void <B>setPurgeFlag</B>(boolean thePurgeFlg)</PRE><DL><DD>Sets the flag to indicate if when a notification is received for the unregistration of an MBean referenced in a relation, if an immediate "purge" of the relations (look for the relations no longer valid) has to be performed, or if that will be performed only when the purgeRelations method is explicitly called. <P>true is immediate purge.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>thePurgeFlg</CODE> - flag<DT><B>See Also:</B><DD><A HREF="../../../javax/management/relation/RelationServiceMBean.html#getPurgeFlag()"><CODE>getPurgeFlag()</CODE></A></DL></DD></DL><HR><A NAME="createRelationType(java.lang.String, javax.management.relation.RoleInfo[])"><!-- --></A><H3>createRelationType</H3><PRE>public void <B>createRelationType</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> theRelTypeName, <A HREF="../../../javax/management/relation/RoleInfo.html" title="class in javax.management.relation">RoleInfo</A>[] theRoleInfoArray) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>, <A HREF="../../../javax/management/relation/InvalidRelationTypeException.html" title="class in javax.management.relation">InvalidRelationTypeException</A></PRE><DL><DD>Creates a relation type (RelationTypeSupport object) with given role infos (provided by the RoleInfo objects), and adds it in the Relation Service.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>theRelTypeName</CODE> - name of the relation type<DD><CODE>theRoleInfoArray</CODE> - array of role infos<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if null parameter<DD><CODE><A HREF="../../../javax/management/relation/InvalidRelationTypeException.html" title="class in javax.management.relation">InvalidRelationTypeException</A></CODE> - If: <P>- there is already a relation type with that name <P>- the same name has been used for two different role infos <P>- no role info provided <P>- one null role info provided</DL></DD></DL><HR><A NAME="addRelationType(javax.management.relation.RelationType)"><!-- --></A><H3>addRelationType</H3><PRE>public void <B>addRelationType</B>(<A HREF="../../../javax/management/relation/RelationType.html" title="interface in javax.management.relation">RelationType</A> theRelTypeObj) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>, <A HREF="../../../javax/management/relation/InvalidRelationTypeException.html" title="class in javax.management.relation">InvalidRelationTypeException</A></PRE><DL><DD>Adds given object as a relation type. The object is expected to implement the RelationType interface.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>theRelTypeObj</CODE> - relation type object (implementing the RelationType interface)<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if null parameter<DD><CODE><A HREF="../../../javax/management/relation/InvalidRelationTypeException.html" title="class in javax.management.relation">InvalidRelationTypeException</A></CODE> - if there is already a relation type with that name</DL></DD></DL><HR><A NAME="getAllRelationTypeNames()"><!-- --></A><H3>getAllRelationTypeNames</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getAllRelationTypeNames</B>()</PRE><DL><DD>Retrieves names of all known relation types.<P><DD><DL><DT><B>Returns:</B><DD>ArrayList of relation type names (Strings)</DL></DD></DL><HR><A NAME="getRoleInfos(java.lang.String)"><!-- --></A><H3>getRoleInfos</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getRoleInfos</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> theRelTypeName) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>, <A HREF="../../../javax/management/relation/RelationTypeNotFoundException.html" title="class in javax.management.relation">RelationTypeNotFoundException</A></PRE><DL><DD>Retrieves list of role infos (RoleInfo objects) of a given relation
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -