Package net.sf.joafip.meminspector.entity

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


          objectInputStream.close();
          add(map, nodeForObjectTO);
        }
      }
      bufferedInputStream.close();
      return createNodeForObjectModel(map, new NodeIdentifier(rootNodeId),readProgressFrame);
    } catch (FileNotFoundException exception) {
      throw new MemInspectorException(exception);
    } catch (IOException exception) {
      throw new MemInspectorException(exception);
    } catch (ClassNotFoundException exception) {
View Full Code Here


    final NodeInfo nodeInfo = new NodeInfo();
    nodeInfo.nodeForObjectTO = nodeForObjectTO;
    nodeInfo.nodeForObject = null;
    nodeInfo.childIdSet = nodeForObjectTO.getChildNodeSet();
    nodeInfo.fatherIdSet = nodeForObjectTO.getFatherNodeIdSet();
    final NodeIdentifier nodeId = nodeForObjectTO.getId();
    if (map.put(nodeId, nodeInfo) != null) {
      throw new MemInspectorException("duplicate id #" + nodeId);
    }
  }
View Full Code Here

    // create NodeForObject for each NodeInfo
    for (NodeInfo nodeInfo : map.values()) {
      NodeForObject nodeForObject = nodeInfo.nodeForObject;
      if (nodeForObject == null) {
        final NodeForObjectTO nodeForObjectTO = nodeInfo.nodeForObjectTO;
        final NodeIdentifier identifier = nodeForObjectTO.getId();
        nodeForObject = new NodeForObject(null, identifier,
            nodeForObjectTO.getIdentityHashCode(),
            nodeForObjectTO.getObjectClassName(),
            nodeForObjectTO.isMarkedNew(),
            nodeForObjectTO.isMarkedNewSon(),
            nodeForObjectTO.getFieldByChildNodeIdMap(),
            nodeForObjectTO.getFieldIsStaticMap(),
            nodeForObjectTO.getObjectSize());
        nodeInfo.nodeForObject = nodeForObject;
        nodeForObjectModel.add(nodeForObject);
      } else {
        throw new MemInspectorException("node object must not be set");
      }
    }

    // create father link
    for (NodeInfo nodeInfo : map.values()) {

      NodeForObject nodeForObject = nodeInfo.nodeForObject;
      if (nodeForObject == null) {
        throw new MemInspectorException("node object must be set");
      }
      final NodeForObjectTO nodeForObjectTO = nodeInfo.nodeForObjectTO;
      final NodeIdentifier mainFatherId = nodeForObjectTO
          .getMainFatherNodeId();
      final NodeForObject mainFatherNode;
      if (mainFatherId == null) {
        mainFatherNode = null;
      } else {
View Full Code Here

    for (NodeIdentifier childId : nodeForObject.getFieldByChildNodeIdMap()
        .keySet()) {
      childNodeIdSet.add(childId);
    }
    final NodeForObject mainFatherNode = nodeForObject.getMainFatherNode();
    final NodeIdentifier mainFatherNodeid;
    if (mainFatherNode == null) {
      mainFatherNodeid = new NodeIdentifier(-1);
    } else {
      mainFatherNodeid = mainFatherNode.getId();
    }
    return new NodeForObjectTO(nodeForObject.getId(),
        nodeForObject.getObjectClassName(),
View Full Code Here

TOP

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

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.