Package mx4j.log

Examples of mx4j.log.Logger.debug()


      addRelationId(relationId, relationTypeName);
      addRelationTypeName(relationId, relationTypeName);
      updateRoles(roleList, relationId);
      try
      {
         if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("sending RelationCreation notification to all listeners");
         sendRelationCreationNotification(relationId);
      }
      catch (RelationNotFoundException ex)
      {
         throw new RuntimeOperationsException(null, "Unable to send notification as Relation not found");
View Full Code Here


   {
      if (roleName == null) throw new IllegalArgumentException("Null Role Name");
      if (roleValue == null) throw new IllegalArgumentException("Null roleValue List");
      if (roleInfo == null) throw new IllegalArgumentException("Null RoleInfo");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("checking role cardinality");

      if (!(roleName.equals(roleInfo.getName())))
      {
         logger.warn("Role does not have a valid roleName");
         return new Integer(RoleStatus.NO_ROLE_WITH_NAME);
View Full Code Here

                                                                      InvalidRelationServiceException, RelationTypeNotFoundException,
                                                                      RoleNotFoundException, InvalidRoleValueException
   {
      isActive();
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("adding a Relation with ObjectName: " + relationMBeanObjectName.toString());
      // checks through the MBeanServer that the class is an instance of the Relation interface which
      // RelationSupport implements
      checkValidRelation(relationMBeanObjectName);
      //create the proxy
View Full Code Here

                                                                                    RelationTypeNotFoundException
   {
      if (roleName == null) throw new IllegalArgumentException("Null RoleName");
      if (relationTypeName == null) throw new IllegalArgumentException("Null RelationType name.");
      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("checking if Role with RoleName: " + roleName + " is readable");
      RelationType relationType = getRelationType(relationTypeName);
      try
      {
         RoleInfo roleInfo = relationType.getRoleInfo(roleName);
         if (!(roleName.equals(roleInfo.getName()))) return (new Integer(RoleStatus.NO_ROLE_WITH_NAME));
View Full Code Here

      if (relationTypeName == null) throw new IllegalArgumentException("checkRoleWriting was given a null RelationTypeName");
      if (isInitialized == null) throw new IllegalArgumentException("checkRoleWriting was given a null Boolean");
      Logger logger = getLogger();
      RelationType relationType = getRelationType(relationTypeName);
      String roleName = role.getRoleName();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("checking if Role with RoleName: " + roleName + " is readable");
      ArrayList roleValue = (ArrayList)role.getRoleValue();
      boolean canWrite = true;
      if (isInitialized.booleanValue()) canWrite = false;
      RoleInfo roleInfo;
      try
View Full Code Here

      Logger logger = getLogger();
      String message = "Creation of relation " + relationId;
      String relationTypeName = getRelationTypeNameFromMap(relationId);

      if (logger.isEnabledFor(Logger.DEBUG))
         logger.debug("A relation has been created with ID: " + relationId +
                      " and relationTypeName: " + relationTypeName + " ..sending notification");

      ObjectName relationObjectName = isRelationMBean(relationId);
      String notificationType = getCreationNotificationType(relationObjectName);
      long sequenceNumber = getNotificationSequenceNumber().longValue();
View Full Code Here

      if (relationId == null) throw new IllegalArgumentException("Null RelationId");
      if (newRole == null) throw new IllegalArgumentException("Null Role");
      if (oldRoleValues == null) throw new IllegalArgumentException("Null List of role values");

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Sending a roleUpdateNotification of Relation with ID: " + relationId);
      String roleName = newRole.getRoleName();
      List newRoleValues = newRole.getRoleValue();
      String newRoleValueMessage = Role.roleValueToString(newRoleValues);
      String oldRoleValueMessage = Role.roleValueToString(oldRoleValues);
      StringBuffer message = new StringBuffer("Value of the role ");
View Full Code Here

      message.append(roleName);
      message.append(" has changed\nOld value:\n");
      message.append(oldRoleValueMessage);
      message.append("\nNew value:\n");
      message.append(newRoleValueMessage);
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Notification message: " + message.toString());
      String relationTypeName = getRelationTypeNameFromMap(relationId);

      // determine if this is a relation update or a relation mbean update
      ObjectName relationObjectName = isRelationMBean(relationId);
      String notificationType;
View Full Code Here

                                                                                                     RelationNotFoundException
   {
      if (relationId == null) throw new IllegalArgumentException("Null RelationId");

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("sending relationRemovalNotification of ID: " + relationId);
      StringBuffer message = new StringBuffer("Removal of relation ");
      message.append(relationId);
      String relationTypeName = getRelationTypeNameFromMap(relationId);
      ObjectName relationObjectName = isRelationMBean(relationId);
      String notificationType;
View Full Code Here

      if (relationId == null) throw new IllegalArgumentException("Null Relation Id");
      if (role == null) throw new IllegalArgumentException("Null Role");
      if (oldRoleValues == null) throw new IllegalArgumentException("Null Role value list.");

      Logger logger = getLogger();
      if (logger.isEnabledFor(Logger.DEBUG)) logger.debug("Updating the RelationService RoleMap");

      String roleName = role.getRoleName();
      List newRoleValue = role.getRoleValue();

      // clone as the list is to be modified later, cast to ArrayList as List does not define clone()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.