| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
javax.management.Notification
javax.management.relation.RelationNotification
public class RelationNotification
Relation Service(关系服务)中的更改通知。当通过 Relation Service 创建关系时,或者在 Relation Service 中作为关系添加 MBean 时,或者在关系中更新角色时,或者从 Relation Service 移除关系时,将发送 RelationNotification 通知。
| 字段摘要 | |
|---|---|
| static String | RELATION_BASIC_CREATION内部关系的创建类型。 | 
| static String | RELATION_BASIC_REMOVAL从内部关系的 Relation Service 中移除的类型。 | 
| static String | RELATION_BASIC_UPDATE内部关系的更新类型。 | 
| static String | RELATION_MBEAN_CREATION添加到 Relation Service 中的关系 MBean 的类型。 | 
| static String | RELATION_MBEAN_REMOVAL从关系 MBean 的 Relation Service 中移除的类型。 | 
| static String | RELATION_MBEAN_UPDATE关系 MBean 的更新类型。 | 
| 从类 javax.management.Notification 继承的字段 | 
|---|
| source | 
| 构造方法摘要 | |
|---|---|
| RelationNotification(String theNtfType,
                     Object theSrcObj,
                     long TheSeqNbr,
                     long theTimeStamp,
                     String theMsg,
                     String theRelId,
                     String theRelTypeName,
                     ObjectName theRelObjName,
                     List theUnregMBeanList)创建一个关系创建(在 Relation Service 中内部创建的 RelationSupport 对象,或者作为关系添加的 MBean)通知,或创建一个从 Relation Service 进行关系移除的通知。 | |
| RelationNotification(String theNtfType,
                     Object theSrcObj,
                     long TheSeqNbr,
                     long theTimeStamp,
                     String theMsg,
                     String theRelId,
                     String theRelTypeName,
                     ObjectName theRelObjName,
                     String theRoleName,
                     List theNewRoleValue,
                     List theOldRoleValue)为关系中的角色更新创建通知。 | |
| 方法摘要 | |
|---|---|
|  List | getMBeansToUnregister()返回因为关系移除而需要注销的 MBean 的 ObjectName 列表(仅限于关系移除)。 | 
|  List | getNewRoleValue()返回更新的角色的新值(仅限于角色更新)。 | 
|  ObjectName | getObjectName()返回创建/移除/更新的关系的 ObjectName。 | 
|  List | getOldRoleValue()返回更新的角色的旧值(仅限于角色更新)。 | 
|  String | getRelationId()返回创建/移除/更新的关系的关系标识符。 | 
|  String | getRelationTypeName()返回创建/移除/更新的关系的关系类型名称。 | 
|  String | getRoleName()返回更新关系的更新角色的名称(仅限于角色更新)。 | 
| 从类 javax.management.Notification 继承的方法 | 
|---|
| getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString | 
| 从类 java.util.EventObject 继承的方法 | 
|---|
| getSource | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 字段详细信息 | 
|---|
public static final String RELATION_BASIC_CREATION
public static final String RELATION_MBEAN_CREATION
public static final String RELATION_BASIC_UPDATE
public static final String RELATION_MBEAN_UPDATE
public static final String RELATION_BASIC_REMOVAL
public static final String RELATION_MBEAN_REMOVAL
| 构造方法详细信息 | 
|---|
public RelationNotification(String theNtfType, Object theSrcObj, long TheSeqNbr, long theTimeStamp, String theMsg, String theRelId, String theRelTypeName, ObjectName theRelObjName, List theUnregMBeanList) throws IllegalArgumentException
theNtfType - 通知的类型;以下几种皆可:
- RELATION_BASIC_CREATION
- RELATION_MBEAN_CREATION
- RELATION_BASIC_REMOVAL
- RELATION_MBEAN_REMOVAL
theSrcObj - 发送通知的源对象。将始终为 RelationService 对象。TheSeqNbr - 要标识通知的序列号theTimeStamp - 时间戳theMsg - 描述通知的可读消息theRelId - 在 Relation Service 中标识关系的关系 idtheRelTypeName - 关系类型的名称theRelObjName - 如果它是 MBean,则是该关系对象的 ObjectName(对于由 Relation Service 内部处理的关系,则为 null)theUnregMBeanList - 因为关系移除而需要注销的引用 MBean 的 ObjectName 列表(仅限于因 CIM 限定符进行的移除,可以为 null)
IllegalArgumentException - 如果:
- 通知类型没有值
- 通知类型不是 RELATION_BASIC_CREATION、RELATION_MBEAN_CREATION、RELATION_BASIC_REMOVAL 或 RELATION_MBEAN_REMOVAL
- 没有源对象
- 源对象不是 Relation Service
- 没有关系 id
- 没有关系类型名称
public RelationNotification(String theNtfType, Object theSrcObj, long TheSeqNbr, long theTimeStamp, String theMsg, String theRelId, String theRelTypeName, ObjectName theRelObjName, String theRoleName, List theNewRoleValue, List theOldRoleValue) throws IllegalArgumentException
theNtfType - 通知的类型;以下几种皆可:
 - RELATION_BASIC_UPDATE
- RELATION_MBEAN_UPDATE
theSrcObj - 发送通知的源对象。将始终为 RelationService 对象。TheSeqNbr - 要标识通知的序列号theTimeStamp - 时间戳theMsg - 描述通知的可读消息theRelId - 在 Relation Service 中标识关系的关系 idtheRelTypeName - 关系类型的名称theRelObjName - 如果它是 MBean,则是该关系对象的 ObjectName(对于由 Relation Service 内部处理的关系,则为 null)theRoleName - 更新的角色名称theNewRoleValue - 新值(ObjectName 对象的列表)theOldRoleValue - 旧值(ObjectName 对象的列表)
IllegalArgumentException - 如果是 null 参数| 方法详细信息 | 
|---|
public String getRelationId()
public String getRelationTypeName()
public ObjectName getObjectName()
public List getMBeansToUnregister()
ObjectName 的 List。public String getRoleName()
public List getOldRoleValue()
public List getNewRoleValue()
| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。