jdk/src/share/classes/javax/management/relation/Relation.java
author rriggs
Tue, 12 Nov 2013 14:03:28 -0500
changeset 21656 d4c777ccb1db
parent 5506 202f599c92aa
child 23010 6dadb192ad81
permissions -rw-r--r--
8028014: Doclint warning/error cleanup in javax.management Summary: Improve generated html by fixing doclint warnings Reviewed-by: sla, jbachorik
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.management.relation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.List;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.Map;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import javax.management.ObjectName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * This interface has to be implemented by any MBean class expected to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * represent a relation managed using the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * <P>Simple relations, i.e. having only roles, no properties or methods, can
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * be created directly by the Relation Service (represented as RelationSupport
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * objects, internally handled by the Relation Service).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <P>If the user wants to represent more complex relations, involving
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * properties and/or methods, he has to provide his own class implementing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * Relation interface. This can be achieved either by inheriting from
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * RelationSupport class, or by implementing the interface (fully or delegation to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * a RelationSupport object member).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <P>Specifying such user relation class is to introduce properties and/or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * methods. Those have to be exposed for remote management. So this means that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * any user relation class must be a MBean class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
public interface Relation {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * Retrieves role value for given role name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     * <P>Checks if the role exists and is readable according to the relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     * type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     * @param roleName  name of role
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * @return the ArrayList of ObjectName objects being the role value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * @exception IllegalArgumentException  if null role name
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * @exception RoleNotFoundException  if:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * <P>- there is no role with given name
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * <P>- the role is not readable.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * @exception RelationServiceNotRegisteredException  if the Relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * Service is not registered in the MBean Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * @see #setRole
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    public List<ObjectName> getRole(String roleName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        throws IllegalArgumentException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
               RoleNotFoundException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
               RelationServiceNotRegisteredException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * Retrieves values of roles with given names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * <P>Checks for each role if it exists and is readable according to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * relation type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * @param roleNameArray  array of names of roles to be retrieved
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * @return a RoleResult object, including a RoleList (for roles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * successfully retrieved) and a RoleUnresolvedList (for roles not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * retrieved).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * @exception IllegalArgumentException  if null role name
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * @exception RelationServiceNotRegisteredException  if the Relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * Service is not registered in the MBean Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * @see #setRoles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    public RoleResult getRoles(String[] roleNameArray)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        throws IllegalArgumentException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
               RelationServiceNotRegisteredException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * Returns the number of MBeans currently referenced in the given role.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * @param roleName  name of role
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * @return the number of currently referenced MBeans in that role
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * @exception IllegalArgumentException  if null role name
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * @exception RoleNotFoundException  if there is no role with given name
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    public Integer getRoleCardinality(String roleName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        throws IllegalArgumentException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
               RoleNotFoundException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * Returns all roles present in the relation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * @return a RoleResult object, including a RoleList (for roles
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * successfully retrieved) and a RoleUnresolvedList (for roles not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * readable).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * @exception RelationServiceNotRegisteredException  if the Relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * Service is not registered in the MBean Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    public RoleResult getAllRoles()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        throws RelationServiceNotRegisteredException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * Returns all roles in the relation without checking read mode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * @return a RoleList.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    public RoleList retrieveAllRoles();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * Sets the given role.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * <P>Will check the role according to its corresponding role definition
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * provided in relation's relation type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * <P>Will send a notification (RelationNotification with type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * RELATION_BASIC_UPDATE or RELATION_MBEAN_UPDATE, depending if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * relation is a MBean or not).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * @param role  role to be set (name and new value)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * @exception IllegalArgumentException  if null role
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * @exception RoleNotFoundException  if there is no role with the supplied
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * role's name or if the role is not writable (no test on the write access
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * mode performed when initializing the role)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * @exception InvalidRoleValueException  if value provided for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * role is not valid, i.e.:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * <P>- the number of referenced MBeans in given value is less than
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * expected minimum degree
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * <P>- the number of referenced MBeans in provided value exceeds expected
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * maximum degree
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * <P>- one referenced MBean in the value is not an Object of the MBean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * class expected for that role
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * <P>- a MBean provided for that role does not exist.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * @exception RelationServiceNotRegisteredException  if the Relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * Service is not registered in the MBean Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * @exception RelationTypeNotFoundException  if the relation type has not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * been declared in the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * @exception RelationNotFoundException  if the relation has not been
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * added in the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @see #getRole
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public void setRole(Role role)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        throws IllegalArgumentException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
               RoleNotFoundException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
               RelationTypeNotFoundException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
               InvalidRoleValueException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
               RelationServiceNotRegisteredException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
               RelationNotFoundException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * Sets the given roles.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * <P>Will check the role according to its corresponding role definition
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * provided in relation's relation type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * <P>Will send one notification (RelationNotification with type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * RELATION_BASIC_UPDATE or RELATION_MBEAN_UPDATE, depending if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * relation is a MBean or not) per updated role.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * @param roleList  list of roles to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @return a RoleResult object, including a RoleList (for roles
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * successfully set) and a RoleUnresolvedList (for roles not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * set).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * @exception IllegalArgumentException  if null role list
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * @exception RelationServiceNotRegisteredException  if the Relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * Service is not registered in the MBean Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * @exception RelationTypeNotFoundException  if the relation type has not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * been declared in the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * @exception RelationNotFoundException  if the relation MBean has not been
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * added in the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * @see #getRoles
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    public RoleResult setRoles(RoleList roleList)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        throws IllegalArgumentException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
               RelationServiceNotRegisteredException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
               RelationTypeNotFoundException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
               RelationNotFoundException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * Callback used by the Relation Service when a MBean referenced in a role
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * is unregistered.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * <P>The Relation Service will call this method to let the relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * take action to reflect the impact of such unregistration.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * <P>BEWARE. the user is not expected to call this method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * <P>Current implementation is to set the role with its current value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * (list of ObjectNames of referenced MBeans) without the unregistered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * one.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * @param objectName  ObjectName of unregistered MBean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @param roleName  name of role where the MBean is referenced
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * @exception IllegalArgumentException  if null parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * @exception RoleNotFoundException  if role does not exist in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * relation or is not writable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * @exception InvalidRoleValueException  if role value does not conform to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * the associated role info (this will never happen when called from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * Relation Service)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @exception RelationServiceNotRegisteredException  if the Relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * Service is not registered in the MBean Server
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * @exception RelationTypeNotFoundException  if the relation type has not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * been declared in the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * @exception RelationNotFoundException  if this method is called for a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * relation MBean not added in the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    public void handleMBeanUnregistration(ObjectName objectName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                                          String roleName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        throws IllegalArgumentException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
               RoleNotFoundException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
               InvalidRoleValueException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
               RelationServiceNotRegisteredException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
               RelationTypeNotFoundException,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
               RelationNotFoundException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * Retrieves MBeans referenced in the various roles of the relation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * @return a HashMap mapping:
21656
d4c777ccb1db 8028014: Doclint warning/error cleanup in javax.management
rriggs
parents: 5506
diff changeset
   239
     * <P> ObjectName {@literal ->} ArrayList of String (role names)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
    public Map<ObjectName,List<String>> getReferencedMBeans();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * Returns name of associated relation type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * @return the name of the relation type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    public String getRelationTypeName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     * Returns ObjectName of the Relation Service handling the relation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * @return the ObjectName of the Relation Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    public ObjectName getRelationServiceName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * Returns relation identifier (used to uniquely identify the relation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     * inside the Relation Service).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     * @return the relation id.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    public String getRelationId();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
}