public RelationNotification(String notifType,Object sourceObj,long sequence,long timeStamp,String message,String id,String typeName,ObjectName objectName,List<ObjectName> unregMBeanList) throws IllegalArgumentException {
  super(notifType,sourceObj,sequence,timeStamp,message);
  if (!isValidBasicStrict(notifType,sourceObj,id,typeName) || !isValidCreate(notifType)) {
    throw new IllegalArgumentException("Invalid parameter.");
  }
  relationId=id;
  relationTypeName=typeName;
  relationObjName=safeGetObjectName(objectName);
  unregisterMBeanList=safeGetObjectNameList(unregMBeanList);
}

public RelationNotification ( String notifType , Object sourceObj , long sequence , long timeStamp , String message , String id , String typeName , ObjectName objectName , List < ObjectName > unregMBeanList ) throws IllegalArgumentException { super ( notifType , sourceObj , sequence , timeStamp , message ) ; if ( ! isValidBasicStrict ( notifType , sourceObj , id , typeName ) || ! isValidCreate ( notifType ) ) { throw new IllegalArgumentException ( "Invalid parameter." ) ; } relationId = id ; relationTypeName = typeName ; relationObjName = safeGetObjectName ( objectName ) ; unregisterMBeanList = safeGetObjectNameList ( unregMBeanList ) ; }
creates a notification for either a relation creation ( relationsupport object created internally in the relation service , or an mbean added as a relation ) or for a relation removal from the relation service .
