Package net.sf.joafip.meminspector.entity

Examples of net.sf.joafip.meminspector.entity.NodeForObject


    if (childObject != null) {
      final WeakObjectIdentityKey weakChildObjectIdentityKey = new WeakObjectIdentityKey(
          childObject/* , referenceQueue */);

      final NodeForObject nodeForChildObject;
      if (nodeForObjectByWeakMap.containsKey(weakChildObjectIdentityKey)) {
        /* existing object */
        nodeForChildObject = nodeForObjectByWeakMap
            .get(weakChildObjectIdentityKey);
        nodeForChildObject.addFather(fatherNode);
      } else {
        /* new object */
        nodeForChildObject = new NodeForObject(fatherNode,
            weakChildObjectIdentityKey);
        memorizeNewObject(weakChildObjectIdentityKey,
            nodeForChildObject);
        // referenceMap.put(weakChildObjectIdentityKey.getReference(),
        // weakChildObjectIdentityKey);
        // weakList.put(weakChildObjectIdentityKey,
        // weakChildObjectIdentityKey);
      }
      fatherNode.addChild(declaringClass, fieldName, staticField,
          nodeForChildObject);
      nodeForChildObject.addFather(fatherNode);
    }
  }
View Full Code Here


      }
      LOGGER.debug(builder.toString());
    }
    assertEquals("bad number of added", 1, list.size());
    final Iterator<NodeForObject> iterator = list.iterator();
    final NodeForObject added = iterator.next();
    assertEquals("bad object class of added", Bob3.class.getName(),
        added.getObjectClassName());
    assertEquals("bad object identity of added",
        System.identityHashCode(bob3), added.getIdentityHashCode());

    // /*
    // * output in text file
    // */
    // final PrintStream stream = new PrintStream(new
View Full Code Here

TOP

Related Classes of net.sf.joafip.meminspector.entity.NodeForObject

Copyright © 2018 www.massapicom. 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.